From 3d3b9f69a69ee92f01013def7a053d53663b7277 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Tue, 30 Jan 2018 12:21:25 +1000 Subject: [PATCH] Test larger variable data size if available --- wolfcrypt/test/test.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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