Function sodiumoxide::crypto::aead::chacha20poly1305::seal
[−]
[src]
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
.