pub fn aead_encrypt( key: AEADKey, iv: AEADIV, aad: &[u8], plain: &[u8], ) -> (Vec<u8>, Vec<u8>)
Abstract AEAD encryption using algorithm. Returns a pair of byte vectors (ciphertext, tag).
algorithm
(ciphertext, tag)