seal_bytes

Function seal_bytes 

Source
pub fn seal_bytes(key: &[u8], aad: &[u8], plaintext: &[u8]) -> Result<Vec<u8>>
Expand description

Seal bytes (encrypt and authenticate) using AES-256-GCM. Returns the nonce (12 bytes) prepended to the ciphertext.