From 4cd71260921ab0fc85880c6c1de081ea7aa73cc1 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 15 Apr 2026 21:29:17 -0500 Subject: [PATCH] tests/api/test_aes.c: fix gating for test_wc_AesGcm_MonteCarlo() to exclude WOLFSSL_AFALG and WOLFSSL_DEVCRYPTO. --- tests/api/test_aes.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/api/test_aes.c b/tests/api/test_aes.c index eed9001962..3d4eda1eec 100644 --- a/tests/api/test_aes.c +++ b/tests/api/test_aes.c @@ -8754,7 +8754,8 @@ int test_wc_AesCtr_MonteCarlo(void) int test_wc_AesGcm_MonteCarlo(void) { EXPECT_DECLS; -#if !defined(NO_AES) && defined(HAVE_AESGCM) && defined(HAVE_AES_DECRYPT) +#if !defined(NO_AES) && defined(HAVE_AESGCM) && defined(HAVE_AES_DECRYPT) && \ + !defined(WOLFSSL_AFALG) && !defined(WOLFSSL_DEVCRYPTO) static const word32 keySizes[] = { #ifdef WOLFSSL_AES_128 16, @@ -8815,7 +8816,9 @@ int test_wc_AesGcm_MonteCarlo(void) WC_FREE_VAR(plain, NULL); WC_FREE_VAR(cipher, NULL); WC_FREE_VAR(decrypted, NULL); -#endif +#endif /* !NO_AES && HAVE_AESGCM && HAVE_AES_DECRYPT && !WOLFSSL_AFALG && */ + /* !WOLFSSL_DEVCRYPTO */ + return EXPECT_RESULT(); }