diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index a67148fe5..5526a5d53 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -5923,7 +5923,7 @@ int aesgcm_test(void) return -4309; #endif /* BENCH_AESGCM_LARGE */ -#if !defined(HAVE_FIPS) && !defined(STM32_CRYPTO) +#ifdef ENABLE_NON_12BYTE_IV_TEST /* Variable IV length test */ for (ivlen=0; ivlen<(int)sizeof(k1); ivlen++) { /* AES-GCM encrypt and decrypt both use AES encrypt internally */ @@ -5963,6 +5963,29 @@ int aesgcm_test(void) return -4313; } +#ifdef BENCH_AESGCM_LARGE + /* Variable plain text length test */ + for (plen=1; plen