pub fn decrypt_to_vec(
key: &[u8; 32],
ciphertext: &[u8],
aad: &[u8],
) -> Result<Vec<u8>, CryptoError>Expand description
Decrypts ciphertext into a byte buffer.
Functionally identical to decrypt() but uses in-place decryption
(avoids an extra allocation for the tag-stripped copy).