From e87433e2b6682aa7162fcb4aafefb08e2fbd932b Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 1 Mar 2019 09:56:38 -0800 Subject: [PATCH] Fix for async wolfCrypt test with AES GCM. --- wolfcrypt/test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index e6d84179c..26d16dae3 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -7128,7 +7128,7 @@ int aesgcm_test(void) BENCH_AESGCM_LARGE, iv1, sizeof(iv1), resultT, sizeof(resultT), a, sizeof(a)); #if defined(WOLFSSL_ASYNC_CRYPT) - result = wc_AsyncWait(result, &enc.asyncDev, WC_ASYNC_FLAG_NONE); + result = wc_AsyncWait(result, &dec.asyncDev, WC_ASYNC_FLAG_NONE); #endif if (result != 0) return -5708;