pub fn encrypt(
key: &[u8; 32],
nonce: &[u8; 24],
aad: &[u8],
plaintext: &[u8],
) -> Vec<u8> ⓘExpand description
Encrypts plaintext and authenticates it with aad. Returns ciphertext || tag.
The caller must never reuse a nonce under the same key.