mirror of https://github.com/wolfSSL/wolfssl.git
FIPS Revalidation (acceptance fixes)
1. Backed out some changes to AES-GCM with respect PIC32 only code. (This change will not be in the FIPS boundary.)pull/1424/head
parent
df6fe0b07c
commit
10070bb5fd
|
@ -8427,10 +8427,10 @@ int AES_GCM_encrypt_C(Aes* aes, byte* out, const byte* in, word32 sz,
|
|||
#ifdef WOLFSSL_PIC32MZ_CRYPT
|
||||
if (blocks) {
|
||||
/* use intitial IV for PIC32 HW, but don't use it below */
|
||||
XMEMCPY(aes->tmp, ctr, AES_BLOCK_SIZE);
|
||||
XMEMCPY(aes->reg, ctr, AES_BLOCK_SIZE);
|
||||
|
||||
ret = wc_Pic32AesCrypt(
|
||||
aes->key, aes->keylen, aes->tmp, AES_BLOCK_SIZE,
|
||||
aes->key, aes->keylen, aes->reg, AES_BLOCK_SIZE,
|
||||
out, in, (blocks * AES_BLOCK_SIZE),
|
||||
PIC32_ENCRYPTION, PIC32_ALGO_AES, PIC32_CRYPTOALGO_AES_GCM);
|
||||
if (ret != 0)
|
||||
|
@ -8805,10 +8805,10 @@ int AES_GCM_decrypt_C(Aes* aes, byte* out, const byte* in, word32 sz,
|
|||
#ifdef WOLFSSL_PIC32MZ_CRYPT
|
||||
if (blocks) {
|
||||
/* use intitial IV for PIC32 HW, but don't use it below */
|
||||
XMEMCPY(aes->tmp, ctr, AES_BLOCK_SIZE);
|
||||
XMEMCPY(aes->reg, ctr, AES_BLOCK_SIZE);
|
||||
|
||||
ret = wc_Pic32AesCrypt(
|
||||
aes->key, aes->keylen, aes->tmp, AES_BLOCK_SIZE,
|
||||
aes->key, aes->keylen, aes->reg, AES_BLOCK_SIZE,
|
||||
out, in, (blocks * AES_BLOCK_SIZE),
|
||||
PIC32_DECRYPTION, PIC32_ALGO_AES, PIC32_CRYPTOALGO_AES_GCM);
|
||||
if (ret != 0)
|
||||
|
|
Loading…
Reference in New Issue