Skip to main content

decrypt_with_aad

Function decrypt_with_aad 

Source
pub fn decrypt_with_aad(
    encrypted: &EncryptedData,
    aad: &[u8],
    key: &SecretKey,
) -> Result<SecretVec>
Expand description

Decrypt ciphertext using XChaCha20-Poly1305 with additional authenticated data.

Passing an empty aad slice is byte-identical to decrypt.