Skip to content

Commit 645da33

Browse files
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.
1 parent 5e1f713 commit 645da33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/aes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits
233233
#endif /* WOLFSSL_AES_DIRECT || HAVE_AESGCM || HAVE_AESCCM */
234234

235235
#ifdef HAVE_AES_DECRYPT
236-
#if defined(WOLFSSL_AES_DIRECT) || defined(HAVE_AESCCM)
236+
#if defined(WOLFSSL_AES_DIRECT)
237237
static WARN_UNUSED_RESULT int wc_AesDecrypt(
238238
Aes* aes, const byte* inBlock, byte* outBlock)
239239
{
@@ -340,7 +340,7 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits
340340

341341
return ret;
342342
}
343-
#endif /* WOLFSSL_AES_DIRECT || HAVE_AESCCM */
343+
#endif /* WOLFSSL_AES_DIRECT */
344344
#endif /* HAVE_AES_DECRYPT */
345345

346346
#elif defined(HAVE_COLDFIRE_SEC)

0 commit comments

Comments
 (0)