Fix for AES GCM with hardware crypto and missing wc_AesSetKeyLocal. Broken in PR #3388.

This commit is contained in:
David Garske 2020-12-13 13:55:13 -08:00
parent 757c07801a
commit 337e95e52b

View File

@ -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. */