mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 10:10:56 +02:00
0 memset kop in devcrypto before use
This commit is contained in:
@@ -64,6 +64,7 @@ int wc_DevCryptoEccKeyGen(int curveId, int enc, byte* pri, word32 priSz,
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
XMEMSET(&kop, 0, sizeof(kop));
|
||||
kop.crk_op = CRK_ECC_KEYGEN;
|
||||
kop.ses = ctx.sess.ses;
|
||||
kop.crk_flags = ecdsel;
|
||||
|
||||
Reference in New Issue
Block a user