bitwarden_crypto::aes

Function encrypt_aes256_hmac

Source
pub(crate) fn encrypt_aes256_hmac(
    data_dec: &[u8],
    mac_key: &GenericArray<u8, U32>,
    key: &GenericArray<u8, U32>,
) -> Result<([u8; 16], [u8; 32], Vec<u8>), CryptoError>
Expand description

Encrypt using AES-256 in CBC mode with MAC.

Behaves similar to encrypt_aes256, but also generate a MAC.

ยงReturns

A AesCbc256_HmacSha256_B64 EncString