Versions in this module Expand all Collapse all v1 v1.0.1 Oct 17, 2020 Changes in this version + const EphemeralPublicKeyBytes + const NonceBytes + var BoxDecryptionError = fmt.Errorf("failed to decrypt curve25519") + type DecryptionKey struct + func FromPrivKey(sk crypto.PrivKey) (*DecryptionKey, error) + func (k *DecryptionKey) Decrypt(ciphertext []byte) ([]byte, error) + func (k *DecryptionKey) Encrypt(plaintext []byte) ([]byte, error) + func (k *DecryptionKey) MarshalBinary() ([]byte, error) + type EncryptionKey struct + func FromPubKey(pk crypto.PubKey) (*EncryptionKey, error) + func (k *EncryptionKey) Encrypt(plaintext []byte) ([]byte, error) + func (k *EncryptionKey) MarshalBinary() ([]byte, error)