Function openssl::symm::encrypt_aead [] [src]

pub fn encrypt_aead(t: Cipher,
                    key: &[u8],
                    iv: Option<&[u8]>,
                    aad: &[u8],
                    data: &[u8],
                    tag: &mut [u8])
                    -> Result<Vec<u8>, ErrorStack>

Like encrypt, but for AEAD ciphers such as AES GCM.

Additional Authenticated Data can be provided in the aad field, and the authentication tag will be copied into the tag field.