Merge pull request #1091 from dgarske/fix_async_aes

Fix async issue with AES set key trying to use a NULL IV.
This commit is contained in:
toddouska 2017-08-09 09:44:46 -07:00 committed by GitHub
commit df1e5f2e1a
1 changed files with 2 additions and 1 deletions

View File

@ -2144,6 +2144,7 @@ static void wc_AesDecrypt(Aes* aes, const byte* inBlock, byte* outBlock)
#if defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_AES)
if (aes->asyncDev.marker == WOLFSSL_ASYNC_MARKER_AES) {
XMEMCPY(aes->asyncKey, userKey, keylen);
if (iv)
XMEMCPY(aes->asyncIv, iv, AES_BLOCK_SIZE);
}
#endif /* WOLFSSL_ASYNC_CRYPT */