fix(kcapi): fenrir 1960 zero ecdh secret before free

This commit is contained in:
David Garske
2026-05-18 13:52:18 -07:00
parent 66e5b8fd14
commit 583bd6bc4e
+1
View File
@@ -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