From 2051a0513962aeb5d897fc149ab8a0a9dfef2603 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 31 Jul 2017 14:06:07 -0700 Subject: [PATCH] Cleanup AES GCM large test. Move test into stack and disable if using BENCH_EMBEDDED. --- wolfcrypt/test/test.c | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 9b3cb3371..04aba2bc0 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -195,13 +195,6 @@ static int devId = INVALID_DEVID; const char* wnrConfigFile = "wnr-example.conf"; #endif -#ifdef HAVE_AESGCM -#define LARGE_BUFFER_SIZE 1024 -static byte large_input[LARGE_BUFFER_SIZE]; -static byte large_output[LARGE_BUFFER_SIZE]; -static byte large_outdec[LARGE_BUFFER_SIZE]; -#endif - typedef struct testVector { const char* input; const char* output; @@ -381,9 +374,6 @@ int wolfcrypt_test(void* args) #endif { int ret; -#ifdef HAVE_AESGCM - int i; -#endif ((func_args*)args)->return_code = -1; /* error state */ @@ -674,8 +664,6 @@ int wolfcrypt_test(void* args) printf( "AES256 test passed!\n"); #ifdef HAVE_AESGCM - for (i=0; i