From 645da3317636d2bf4d1b35059f6cb6fc35c60812 Mon Sep 17 00:00:00 2001 From: Kareem Date: Thu, 17 Apr 2025 14:33:44 -0700 Subject: [PATCH] Fix unused function warning for wc_AesDecrypt when building with STM32. This function is not needed for AES-CCM, as the AES-CCM decrypt function only calls wc_AesEncrypt. --- wolfcrypt/src/aes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index 86e7be9dc..6e7f104dd 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -233,7 +233,7 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits #endif /* WOLFSSL_AES_DIRECT || HAVE_AESGCM || HAVE_AESCCM */ #ifdef HAVE_AES_DECRYPT - #if defined(WOLFSSL_AES_DIRECT) || defined(HAVE_AESCCM) + #if defined(WOLFSSL_AES_DIRECT) static WARN_UNUSED_RESULT int wc_AesDecrypt( Aes* aes, const byte* inBlock, byte* outBlock) { @@ -340,7 +340,7 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits return ret; } - #endif /* WOLFSSL_AES_DIRECT || HAVE_AESCCM */ + #endif /* WOLFSSL_AES_DIRECT */ #endif /* HAVE_AES_DECRYPT */ #elif defined(HAVE_COLDFIRE_SEC)