diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index b2ba63829..941a30adb 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -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. */