Fix F380 to harden wc_MakeDsaKey

This commit is contained in:
Eric Blankenhorn
2026-03-05 15:14:47 -06:00
parent 178f96c483
commit 967aaa2c56
+1
View File
@@ -231,6 +231,7 @@ int wc_MakeDsaKey(WC_RNG *rng, DsaKey *dsa)
mp_clear(&dsa->y);
}
ForceZero(cBuf, cSz);
#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC)
XFREE(cBuf, dsa->heap, DYNAMIC_TYPE_TMP_BUFFER);
if (tmpQ != NULL) {