Fix for AES GCM with hardware crypto and missing wc_AesSetKeyLocal
. Broken in PR #3388.
This commit is contained in:
parent
757c07801a
commit
337e95e52b
@ -4331,7 +4331,7 @@ int wc_AesGcmSetKey(Aes* aes, const byte* key, word32 len)
|
||||
}
|
||||
#endif
|
||||
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
|
||||
/* AES-NI code generates its own H value. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user