pub fn encrypt_detached(
key: &Key,
msg: impl AsRef<[u8]>,
iv: Iv,
aad: impl AsRef<[u8]>,
) -> Result<(Tag, Vec<u8>), Error>
Expand description
AEAD encrypt the message in msg
with the key
, iv
and aad
.
Returns the Tag
and the ciphertext tuple.