Skip to content

Commit 1b240e2

Browse files
authored
Merge pull request #8693 from kareem-wolfssl/forum8313
Fix unused function warning for wc_AesDecrypt when building with STM32.
2 parents 5e1f713 + 645da33 commit 1b240e2

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)