Skip to content

Commit e4b55be

Browse files
julek-wolfssldgarske
authored andcommitted
Use mp_forcezero for DH private key in async path
F-766
1 parent 6434270 commit e4b55be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/dh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ static int wc_DhGenerateKeyPair_Async(DhKey* key, WC_RNG* rng,
14651465
if (ret == MP_OKAY)
14661466
ret = IntelQaDhKeyGen(&key->asyncDev, &key->p.raw, &key->g.raw,
14671467
&x.raw, pub, pubSz);
1468-
mp_clear(&x);
1468+
mp_forcezero(&x);
14691469

14701470
return ret;
14711471
}

0 commit comments

Comments
 (0)