pub fn aead_decrypt(
key: &[u8; 32],
size: usize,
ciphertext: &[u8],
) -> Result<Vec<u8>, Error>Expand description
decrypt[key](ciphertext) - decrypts a message of an expected fixed size.
ChaCha20-Poly1305 from RFC 7539 with a zero nonce.
The message size is limited to mitigate multi-key attacks, where a ciphertext can be crafted that decrypts successfully under multiple keys. Short ciphertexts can only target two keys, which has limited impact.