Fix for AES GCM decrypt test with Async.

This commit is contained in:
David Garske
2019-04-01 05:58:44 -07:00
parent 1906179a1b
commit 26cbfcdee0

View File

@@ -7110,7 +7110,7 @@ int aesgcm_test(void)
result = wc_AesGcmDecrypt(&dec, resultP, resultC, sizeof(c1),
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 -5705;