From 51698759fa9ea47759e4ecf67ee13188345c3ef9 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 20 May 2026 01:29:34 -0700 Subject: [PATCH] 0 memset kop in devcrypto before use --- wolfcrypt/src/port/devcrypto/devcrypto_ecdsa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/port/devcrypto/devcrypto_ecdsa.c b/wolfcrypt/src/port/devcrypto/devcrypto_ecdsa.c index 4ae7de01e6..da5fea3aa4 100644 --- a/wolfcrypt/src/port/devcrypto/devcrypto_ecdsa.c +++ b/wolfcrypt/src/port/devcrypto/devcrypto_ecdsa.c @@ -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;