Merge pull request #4693 from embhorn/zd13433

Fix to init ctx in wc_Des3_SetKey
pull/4698/head
David Garske 2021-12-23 07:41:13 -08:00 committed by GitHub
commit 40d5bd052f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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