mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-07 00:30:51 +02:00
Fix F380 to harden wc_MakeDsaKey
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user