Skip to content

Commit 3e7f4c5

Browse files
committed
wolfcrypt/test/test.c: in aes_xts_128_test(), fix gate on LARGE_XTS_SZ test added in 3ea0fb3 (disable for AF_ALG and pre-5.3 FIPS).
1 parent 369db53 commit 3e7f4c5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9501,7 +9501,9 @@ static wc_test_ret_t aes_xts_128_test(void)
95019501

95029502
#endif /* !HAVE_FIPS || FIPS_VERSION_GE(5,3) */
95039503

9504-
#if !defined(BENCH_EMBEDDED) && !defined(HAVE_CAVIUM)
9504+
#if !defined(BENCH_EMBEDDED) && !defined(HAVE_CAVIUM) && \
9505+
(!defined(HAVE_FIPS) || FIPS_VERSION_GE(5,3)) && \
9506+
!defined(WOLFSSL_AFALG)
95059507
{
95069508
#define LARGE_XTS_SZ 1024
95079509
#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC)
@@ -9554,7 +9556,10 @@ static wc_test_ret_t aes_xts_128_test(void)
95549556
XFREE(large_input, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
95559557
#endif
95569558
}
9557-
#endif
9559+
#endif /* !BENCH_EMBEDDED && !HAVE_CAVIUM &&
9560+
* (!HAVE_FIPS || FIPS_VERSION_GE(5,3)) &&
9561+
* !WOLFSSL_AFALG
9562+
*/
95589563

95599564
out:
95609565

0 commit comments

Comments
 (0)