Harden wc_ecc_shared_secret_gen_sync

This commit is contained in:
Eric Blankenhorn
2026-03-05 15:09:06 -06:00
parent 178f96c483
commit fdec6d0a06
+1 -1
View File
@@ -4971,7 +4971,7 @@ int wc_ecc_shared_secret_gen_sync(ecc_key* private_key, ecc_point* point,
#ifdef HAVE_ECC_CDH
if (k == k_lcl)
mp_clear(k);
mp_forcezero(k);
WC_FREE_VAR_EX(k_lcl, private_key->heap, DYNAMIC_TYPE_ECC_BUFFER);
#endif