From 9bc0e31a322bb332f991ede428f06281a4611807 Mon Sep 17 00:00:00 2001 From: Lealem Amedie Date: Fri, 19 Apr 2024 12:35:33 -0600 Subject: [PATCH] Fix for AES CTR on STM32 --- wolfcrypt/src/aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index c24b3c953..9c5bd0824 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -6151,7 +6151,7 @@ int wc_AesCbcEncrypt(Aes* aes, byte* out, const byte* in, word32 sz) return BAD_FUNC_ARG; } - return wc_AesSetKeyLocal(aes, key, len, iv, dir, 0); + return wc_AesSetKey(aes, key, len, iv, dir); } #endif /* NEED_AES_CTR_SOFT */