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.