Skip to content

Commit fdec6d0

Browse files
committed
Harden wc_ecc_shared_secret_gen_sync
1 parent 178f96c commit fdec6d0

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
@@ -4971,7 +4971,7 @@ int wc_ecc_shared_secret_gen_sync(ecc_key* private_key, ecc_point* point,
49714971

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

0 commit comments

Comments
 (0)