pub fn AeadOpen(
aead_id: AEAD,
key: &Key,
nonce: &Nonce,
aad: &[u8],
ct: &[u8],
) -> HpkeBytesResult
Expand description
Decrypt ciphertext and tag ct
using
associated data aad
with symmetric key key
and nonce nonce
,
returning plaintext message pt
. This function can raise an
OpenError
or MessageLimitReachedError
upon failure.