AES CCM: use AESNI in CBC-MAC computation when possible

This commit is contained in:
Olivier Chéron 2019-06-03 06:40:49 +02:00
parent 4df2a95276
commit 2cf3b75636

View File

@ -515,7 +515,7 @@ static void ccm_encode_ctr(block128* out, aes_ccm* ccm, unsigned int cnt)
static void ccm_cbcmac_add(aes_ccm* ccm, aes_key* key, block128* bi)
{
block128_xor_aligned(&ccm->xi, bi);
cryptonite_aes_generic_encrypt_block(&ccm->xi, key, &ccm->xi);
cryptonite_aes_encrypt_block(&ccm->xi, key, &ccm->xi);
}
/* even though it is possible to support message size as large as 2^64, we support up to 2^32 only */