@@ -1111,6 +1111,9 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(Aes* aes, const byte* inBlock,
11111111#elif defined(WOLFSSL_RISCV_ASM)
11121112/* implemented in wolfcrypt/src/port/risc-v/riscv-64-aes.c */
11131113
1114+ #elif defined(WOLFSSL_SILABS_SE_ACCEL)
1115+ /* implemented in wolfcrypt/src/port/silabs/silabs_aes.c */
1116+
11141117#else
11151118
11161119 /* using wolfCrypt software implementation */
@@ -1127,8 +1130,7 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(Aes* aes, const byte* inBlock,
11271130
11281131#ifndef WC_AES_BITSLICED
11291132#if defined(__aarch64__) || !defined(WOLFSSL_ARMASM)
1130- #if !defined(WOLFSSL_SILABS_SE_ACCEL) || \
1131- defined(NO_ESP32_CRYPT) || defined(NO_WOLFSSL_ESP32_CRYPT_AES) || \
1133+ #if defined(NO_ESP32_CRYPT) || defined(NO_WOLFSSL_ESP32_CRYPT_AES) || \
11321134 defined(NEED_AES_HW_FALLBACK)
11331135static const FLASH_QUALIFIER word32 rcon[] = {
11341136 0x01000000, 0x02000000, 0x04000000, 0x08000000,
@@ -1410,7 +1412,7 @@ static const FLASH_QUALIFIER word32 Te[4][256] = {
14101412}
14111413};
14121414
1413- #if defined( HAVE_AES_DECRYPT) && !defined(WOLFSSL_SILABS_SE_ACCEL)
1415+ #ifdef HAVE_AES_DECRYPT
14141416#if defined(__aarch64__) || !defined(WOLFSSL_ARMASM)
14151417static const FLASH_QUALIFIER word32 Td[4][256] = {
14161418{
@@ -1679,14 +1681,13 @@ static const FLASH_QUALIFIER word32 Td[4][256] = {
16791681 0xcb84617bU, 0x32b670d5U, 0x6c5c7448U, 0xb85742d0U,
16801682}
16811683};
1682- #endif
1684+ #endif /* __aarch64__ || !WOLFSSL_ARMASM */
16831685#endif /* HAVE_AES_DECRYPT */
16841686#endif /* WOLFSSL_AES_SMALL_TABLES */
16851687
16861688#ifdef HAVE_AES_DECRYPT
1687- #if (defined(HAVE_AES_CBC) && !defined(WOLFSSL_DEVCRYPTO_CBC) && \
1688- !defined(WOLFSSL_SILABS_SE_ACCEL)) || \
1689- defined(HAVE_AES_ECB) || defined(WOLFSSL_AES_DIRECT)
1689+ #if (defined(HAVE_AES_CBC) && !defined(WOLFSSL_DEVCRYPTO_CBC)) || \
1690+ defined(HAVE_AES_ECB) || defined(WOLFSSL_AES_DIRECT)
16901691#if defined(__aarch64__) || !defined(WOLFSSL_ARMASM)
16911692static const FLASH_QUALIFIER byte Td4[256] =
16921693{
@@ -3091,8 +3092,7 @@ static WARN_UNUSED_RESULT int wc_AesEncrypt(
30913092#endif /* HAVE_AES_CBC || WOLFSSL_AES_DIRECT || HAVE_AESGCM */
30923093
30933094#if defined(HAVE_AES_DECRYPT)
3094- #if ((defined(HAVE_AES_CBC) && !defined(WOLFSSL_DEVCRYPTO_CBC) && \
3095- !defined(WOLFSSL_SILABS_SE_ACCEL)) || \
3095+ #if ((defined(HAVE_AES_CBC) && !defined(WOLFSSL_DEVCRYPTO_CBC)) || \
30963096 defined(HAVE_AES_ECB) || defined(WOLFSSL_AES_DIRECT)) && \
30973097 (defined(__aarch64__) || !defined(WOLFSSL_ARMASM))
30983098
@@ -3731,8 +3731,7 @@ static void AesDecryptBlocks_C(Aes* aes, const byte* in, byte* out, word32 sz)
37313731#endif /* !WC_AES_BITSLICED */
37323732#endif
37333733
3734- #if (defined(HAVE_AES_CBC) && !defined(WOLFSSL_DEVCRYPTO_CBC) && \
3735- !defined(WOLFSSL_SILABS_SE_ACCEL)) || \
3734+ #if (defined(HAVE_AES_CBC) && !defined(WOLFSSL_DEVCRYPTO_CBC)) || \
37363735 defined(WOLFSSL_AES_DIRECT)
37373736#if defined(__aarch64__) || !defined(WOLFSSL_ARMASM)
37383737#if !defined(WC_AES_BITSLICED) || defined(WOLFSSL_AES_DIRECT)
0 commit comments