Skip to main content

ccm_encrypt

Function ccm_encrypt 

Source
pub fn ccm_encrypt(
    key: &[u8; 16],
    nonce: &[u8; 13],
    aad: &[u8],
    plaintext: &[u8],
) -> Vec<u8> ⓘ
Expand description

AES-128-CCM encryption: returns ciphertext followed by the 8-byte tag.