Skip to content

Commit 1e73f8e

Browse files
holtrop-wolfsslpadelsbach
authored andcommitted
0 memset kop in devcrypto_x25519 before use
1 parent 64a4c7a commit 1e73f8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wolfcrypt/src/port/devcrypto/devcrypto_x25519.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ int wc_DevCryptoCurve25519(byte* out, word32 outSz, const byte* k,
5353

5454
ret = wc_DevCryptoCreate(&ctx, CRYPTO_ASYM_MUL_MOD, NULL, 0);
5555
if (ret == 0) {
56+
XMEMSET(&kop, 0, sizeof(kop));
5657
kop.crk_op = CRK_MUL_MOD;
5758
kop.ses = ctx.sess.ses;
5859
kop.crk_flags = 0;

0 commit comments

Comments
 (0)