Function hacl::aead::encrypt

source ยท
pub fn encrypt(
    alg: Algorithm,
    k: &[u8],
    msg: &[u8],
    iv: &[u8],
    aad: &Aad,
) -> Result<(Ciphertext, Vec<u8>), Error>
Expand description

Single-shot API for AEAD encryption.