pub fn AeadSeal(
aead_id: AEAD,
key: &Key,
nonce: &Nonce,
aad: &[u8],
pt: &[u8],
) -> HpkeBytesResult
Expand description
Encrypt and authenticate plaintext pt
with associated data aad
using
symmetric key key
and nonce nonce
, yielding ciphertext and tag ct
.
This function can raise a MessageLimitReachedError
upon failure.