Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher interface { Scheme() Scheme // Seal encrypts and authenticates plaintext and // appends the result to dst, returning the updated slice. // The nonce must be Scheme().NonceSize() bytes long. Seal(dst, nonce, plaintext []byte) []byte // Open decrypts and authenticates ciphertext and, if successful, // appends the resulting plaintext to dst, returning the updated slice. // The nonce must be Scheme().NonceSize() bytes long. Open(dst, nonce, ciphertext []byte) ([]byte, error) }
Cipher represents an authenticated cipher.
Click to show internal directories.
Click to hide internal directories.