Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecryptionKey ¶
type DecryptionKey interface { EncryptionKey // Decrypt bytes. Decrypt([]byte) ([]byte, error) }
EncryptionKey represents a key that can be used for decryption.
func DecryptionKeyFromBytes ¶
func DecryptionKeyFromBytes(k []byte) (DecryptionKey, error)
DecryptionKeyFromBytes returns a DecryptionKey from k.
type EncryptionKey ¶
type EncryptionKey interface { // Encrypt bytes. Encrypt([]byte) ([]byte, error) // Marshal to bytes. MarshalBinary() ([]byte, error) }
EncryptionKey represents a key that can be used for encryption.
func EncryptionKeyFromBytes ¶
func EncryptionKeyFromBytes(k []byte) (EncryptionKey, error)
EncryptionKeyFromBytes returns an EncryptionKey from k.
Click to show internal directories.
Click to hide internal directories.