bitwarden_crypto::aes

Function decrypt_aes128_hmac

Source
pub(crate) fn decrypt_aes128_hmac(
    iv: &[u8; 16],
    mac: &[u8; 32],
    data: Vec<u8>,
    mac_key: &GenericArray<u8, U16>,
    key: &GenericArray<u8, U16>,
) -> Result<Vec<u8>, CryptoError>
Expand description

Decrypt using AES-128 in CBC mode with MAC.

Behaves similar to decrypt_aes128, but also validates the MAC.