Merge pull request #4693 from embhorn/zd13433

Fix to init ctx in wc_Des3_SetKey
This commit is contained in:
David Garske
2021-12-23 07:41:13 -08:00
committed by GitHub

View File

@ -1496,6 +1496,10 @@
return BAD_FUNC_ARG;
}
XMEMSET(des->key, 0, sizeof(*(des->key)));
XMEMSET(des->reg, 0, sizeof(*(des->reg)));
XMEMSET(des->tmp, 0, sizeof(*(des->tmp)));
#if defined(WOLF_CRYPTO_CB) || \
(defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_3DES))
#ifdef WOLF_CRYPTO_CB