diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index c3dc1e26f..0d9536c09 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -9501,7 +9501,9 @@ static wc_test_ret_t aes_xts_128_test(void) #endif /* !HAVE_FIPS || FIPS_VERSION_GE(5,3) */ -#if !defined(BENCH_EMBEDDED) && !defined(HAVE_CAVIUM) +#if !defined(BENCH_EMBEDDED) && !defined(HAVE_CAVIUM) && \ + (!defined(HAVE_FIPS) || FIPS_VERSION_GE(5,3)) && \ + !defined(WOLFSSL_AFALG) { #define LARGE_XTS_SZ 1024 #if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC) @@ -9554,7 +9556,10 @@ static wc_test_ret_t aes_xts_128_test(void) XFREE(large_input, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER); #endif } -#endif +#endif /* !BENCH_EMBEDDED && !HAVE_CAVIUM && + * (!HAVE_FIPS || FIPS_VERSION_GE(5,3)) && + * !WOLFSSL_AFALG + */ out: