From 3e7f4c5f2d176569186e22f14bcdd534e3141922 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Sat, 30 Sep 2023 12:07:56 -0500 Subject: [PATCH] wolfcrypt/test/test.c: in aes_xts_128_test(), fix gate on LARGE_XTS_SZ test added in 3ea0fb30dd (disable for AF_ALG and pre-5.3 FIPS). --- wolfcrypt/test/test.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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: