mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Fix build warning about unused static functions wc_AesEncrypt and wc_AesDecrypt with STM32.
This commit is contained in:
@@ -204,8 +204,7 @@ void wc_AesAsyncFree(Aes* aes)
|
|||||||
#if defined(STM32F2_CRYPTO) || defined(STM32F4_CRYPTO)
|
#if defined(STM32F2_CRYPTO) || defined(STM32F4_CRYPTO)
|
||||||
/* STM32F2/F4 hardware AES support for CBC, CTR modes */
|
/* STM32F2/F4 hardware AES support for CBC, CTR modes */
|
||||||
|
|
||||||
#if defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_DIRECT) ||\
|
#if defined(WOLFSSL_AES_DIRECT) || defined(HAVE_AESGCM) || defined(HAVE_AESCCM)
|
||||||
defined(HAVE_AESGCM)
|
|
||||||
static int wc_AesEncrypt(Aes* aes, const byte* inBlock, byte* outBlock)
|
static int wc_AesEncrypt(Aes* aes, const byte* inBlock, byte* outBlock)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
@@ -322,10 +321,10 @@ void wc_AesAsyncFree(Aes* aes)
|
|||||||
#endif /* WOLFSSL_STM32_CUBEMX */
|
#endif /* WOLFSSL_STM32_CUBEMX */
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif /* AES_CBC or AES_DIRECT or AESGCM */
|
#endif /* WOLFSSL_AES_DIRECT || HAVE_AESGCM || HAVE_AESCCM */
|
||||||
|
|
||||||
#ifdef HAVE_AES_DECRYPT
|
#ifdef HAVE_AES_DECRYPT
|
||||||
#if defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_DIRECT)
|
#if defined(WOLFSSL_AES_DIRECT) || defined(HAVE_AESGCM)
|
||||||
static int wc_AesDecrypt(Aes* aes, const byte* inBlock, byte* outBlock)
|
static int wc_AesDecrypt(Aes* aes, const byte* inBlock, byte* outBlock)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
@@ -365,7 +364,7 @@ void wc_AesAsyncFree(Aes* aes)
|
|||||||
#endif /* WOLFSSL_STM32_CUBEMX */
|
#endif /* WOLFSSL_STM32_CUBEMX */
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif /* AES_CBC or AES_DIRECT */
|
#endif /* WOLFSSL_AES_DIRECT || HAVE_AESGCM */
|
||||||
#endif /* HAVE_AES_DECRYPT */
|
#endif /* HAVE_AES_DECRYPT */
|
||||||
|
|
||||||
#elif defined(HAVE_COLDFIRE_SEC)
|
#elif defined(HAVE_COLDFIRE_SEC)
|
||||||
|
Reference in New Issue
Block a user