# openssl::symm::decrypt_aead - Rust
API documentation for the Rust `decrypt_aead` fn in crate `openssl`.
Keywords: rust, rustlang, rust-lang, decrypt_aead

# [−] [src] Function openssl::symm::decrypt_aead

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

Like `decrypt`, but for AEAD ciphers such as AES GCM.

Additional Authenticated Data can be provided in the `aad` field, and the authentication tag should be provided in the `tag` field.