mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 10:30:50 +02:00
Merge pull request #9891 from embhorn/f194
Harden wc_ecc_shared_secret_gen_sync
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user