We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 393dab2 + af2c6cc commit 16e035dCopy full SHA for 16e035d
wolfcrypt/src/aes.c
@@ -10561,9 +10561,18 @@ int wc_AesGcmDecrypt(Aes* aes, byte* out, const byte* in, word32 sz,
10561
#if defined(WOLFSSL_ARMASM)
10562
#ifndef WOLFSSL_ARMASM_NO_HW_CRYPTO
10563
#ifndef __aarch64__
10564
- ret = AES_GCM_decrypt_AARCH32(in, out, sz, iv, ivSz, authTag, authTagSz,
10565
- authIn, authInSz, (byte*)aes->key, aes->gcm.H, (byte*)aes->tmp,
10566
- (byte*)aes->reg, aes->rounds);
+ {
+ #ifdef OPENSSL_EXTRA
+ word32 reg[WC_AES_BLOCK_SIZE / sizeof(word32)];
10567
+ XMEMCPY(reg, aes->reg, sizeof(reg));
10568
+ #endif
10569
+ ret = AES_GCM_decrypt_AARCH32(in, out, sz, iv, ivSz, authTag, authTagSz,
10570
+ authIn, authInSz, (byte*)aes->key, aes->gcm.H, (byte*)aes->tmp,
10571
+ (byte*)aes->reg, aes->rounds);
10572
10573
+ XMEMCPY(aes->reg, reg, sizeof(reg));
10574
10575
+ }
10576
#else
10577
if (aes->use_aes_hw_crypto && aes->use_pmull_hw_crypto) {
10578
#ifdef WOLFSSL_ARMASM_CRYPTO_SHA3
0 commit comments