Encrypt encrypts the plaintext, computes the tag (if any) of dst and plaintext, and appends the result to dst, returning the updated slice. dst and plaintext may fully overlap or not at all.
(dst, plaintext []byte)
| 38 | // plaintext, and appends the result to dst, returning the updated slice. |
| 39 | // dst and plaintext may fully overlap or not at all. |
| 40 | Encrypt(dst, plaintext []byte) ([]byte, error) |
| 41 | // EncryptionOverhead returns the tag size (if any) in bytes. |
| 42 | EncryptionOverhead() int |
| 43 | // Decrypt decrypts ciphertext and verifies the tag (if any). If successful, |
no outgoing calls