mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
build fix for aesccm + devcrypto=cbc + wpas and afalg
This commit is contained in:
@ -1045,6 +1045,10 @@ AC_ARG_ENABLE([afalg],
|
||||
|
||||
if test "$ENABLED_AFALG" = "yes"
|
||||
then
|
||||
if test "$ENABLED_AESCCM" = "yes"
|
||||
then
|
||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AES_DIRECT"
|
||||
fi
|
||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AFALG"
|
||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AFALG_HASH"
|
||||
fi
|
||||
|
@ -759,7 +759,9 @@
|
||||
}
|
||||
#endif /* HAVE_AES_DECRYPT */
|
||||
|
||||
#elif defined(WOLFSSL_IMX6_CAAM) && !defined(NO_IMX6_CAAM_AES)
|
||||
#elif (defined(WOLFSSL_IMX6_CAAM) && !defined(NO_IMX6_CAAM_AES)) || \
|
||||
((defined(WOLFSSL_AFALG) || defined(WOLFSSL_DEVCRYPTO_AES)) && \
|
||||
defined(HAVE_AESCCM))
|
||||
static int wc_AesEncrypt(Aes* aes, const byte* inBlock, byte* outBlock)
|
||||
{
|
||||
wc_AesEncryptDirect(aes, outBlock, inBlock);
|
||||
@ -768,16 +770,6 @@
|
||||
|
||||
#elif defined(WOLFSSL_AFALG)
|
||||
#elif defined(WOLFSSL_DEVCRYPTO_AES)
|
||||
/* if all AES is enabled with devcrypto then tables are not needed */
|
||||
|
||||
#if defined(HAVE_AESCCM)
|
||||
static int wc_AesEncrypt(Aes* aes, const byte* inBlock, byte* outBlock)
|
||||
{
|
||||
wc_AesEncryptDirect(aes, outBlock, inBlock);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
/* using wolfCrypt software implementation */
|
||||
@ -1593,8 +1585,8 @@ static void wc_AesEncrypt(Aes* aes, const byte* inBlock, byte* outBlock)
|
||||
#endif /* HAVE_AES_CBC || WOLFSSL_AES_DIRECT || HAVE_AESGCM */
|
||||
|
||||
#if defined(HAVE_AES_DECRYPT)
|
||||
#if (defined(HAVE_AES_CBC) || defined(WOLFSSL_AES_DIRECT)) && \
|
||||
!defined(WOLFSSL_DEVCRYPTO_CBC)
|
||||
#if (defined(HAVE_AES_CBC) && !defined(WOLFSSL_DEVCRYPTO_CBC)) || \
|
||||
defined(WOLFSSL_AES_DIRECT)
|
||||
|
||||
/* load 4 Td Tables into cache by cache line stride */
|
||||
static WC_INLINE word32 PreFetchTd(void)
|
||||
|
Reference in New Issue
Block a user