bitwarden_crypto::aes

Function decrypt_aes256_hmac

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

Decrypt using AES-256 in CBC mode with MAC.

Behaves similar to decrypt_aes256, but also validates the MAC.