pub fn seal(
    secret_key: &SecretKey,
    nonce: &Nonce,
    plaintext: &[u8],
    ad: Option<&[u8]>,
    dst_out: &mut [u8]
) -> Result<(), UnknownCryptoError>
Expand description

AEAD ChaCha20Poly1305 encryption and authentication as specified in the RFC 8439.