mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 18:20:53 +02:00
fix(kcapi): fenrir 1960 zero ecdh secret before free
This commit is contained in:
@@ -272,6 +272,7 @@ int KcapiEcc_SharedSecret(ecc_key* private_key, ecc_key* public_key, byte* out,
|
||||
}
|
||||
|
||||
if (buf_aligned != NULL) {
|
||||
ForceZero(buf_aligned, keySz * 2);
|
||||
#ifdef KCAPI_USE_XMALLOC
|
||||
XFREE(buf_aligned, private_key->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user