zero RSA DER key buffer before free

This commit is contained in:
Jeremiah Mackey
2026-03-26 16:29:26 +00:00
parent b71c2a27bf
commit 0aae4251a6
+4 -1
View File
@@ -69,7 +69,10 @@ static int KcapiRsa_SetPrivKey(RsaKey* key)
}
}
XFREE(priv, key->heap, DYNAMIC_TYPE_TMP_BUFFER);
if (priv != NULL) {
ForceZero(priv, len);
XFREE(priv, key->heap, DYNAMIC_TYPE_TMP_BUFFER);
}
return ret;
}