Skip to content

Commit 2635315

Browse files
authored
Merge pull request #9891 from embhorn/f194
Harden wc_ecc_shared_secret_gen_sync
2 parents 73b5306 + fdec6d0 commit 2635315

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/ecc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4970,7 +4970,7 @@ int wc_ecc_shared_secret_gen_sync(ecc_key* private_key, ecc_point* point,
49704970

49714971
#ifdef HAVE_ECC_CDH
49724972
if (k == k_lcl)
4973-
mp_clear(k);
4973+
mp_forcezero(k);
49744974
WC_FREE_VAR_EX(k_lcl, private_key->heap, DYNAMIC_TYPE_ECC_BUFFER);
49754975
#endif
49764976

0 commit comments

Comments
 (0)