[][src]Function sodiumoxide::crypto::aead::xchacha20poly1305_ietf::seal

pub fn seal(m: &[u8], ad: Option<&[u8]>, n: &Nonce, k: &Key) -> Vec<u8>

seal() encrypts and authenticates a message m together with optional plaintext data ad using a secret key k and a nonce n. It returns a ciphertext c.