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

pull/3561/head
David Garske 2020-12-13 13:55:13 -08:00
parent 757c07801a
commit 337e95e52b
1 changed files with 1 additions and 1 deletions

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