Function seal
pub fn seal(
secret_key: &SecretKey,
nonce: &Nonce,
plaintext: &[u8],
ad: Option<&[u8]>,
dst_out: &mut [u8],
) -> Result<(), UnknownCryptoError> ⓘ
Available on crate feature
dep_orion
only.Expand description
AEAD XChaCha20Poly1305 encryption as specified in the draft RFC.