Merge pull request #9891 from embhorn/f194

Harden wc_ecc_shared_secret_gen_sync
This commit is contained in:
Daniel Pouzzner
2026-03-06 22:34:58 -06:00
committed by GitHub
+1 -1
View File
@@ -4970,7 +4970,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