forked from wolfSSL/wolfssl
Fix for AES GCM with hardware crypto and missing wc_AesSetKeyLocal
. Broken in PR #3388.
This commit is contained in:
@ -4331,7 +4331,7 @@ int wc_AesGcmSetKey(Aes* aes, const byte* key, word32 len)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
XMEMSET(iv, 0, AES_BLOCK_SIZE);
|
XMEMSET(iv, 0, AES_BLOCK_SIZE);
|
||||||
ret = wc_AesSetKeyLocal(aes, key, len, iv, AES_ENCRYPTION, 0);
|
ret = wc_AesSetKey(aes, key, len, iv, AES_ENCRYPTION);
|
||||||
|
|
||||||
#ifdef WOLFSSL_AESNI
|
#ifdef WOLFSSL_AESNI
|
||||||
/* AES-NI code generates its own H value. */
|
/* AES-NI code generates its own H value. */
|
||||||
|
Reference in New Issue
Block a user