Skip to content

Commit 967aaa2

Browse files
committed
Fix F380 to harden wc_MakeDsaKey
1 parent 178f96c commit 967aaa2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wolfcrypt/src/dsa.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ int wc_MakeDsaKey(WC_RNG *rng, DsaKey *dsa)
231231
mp_clear(&dsa->y);
232232
}
233233

234+
ForceZero(cBuf, cSz);
234235
#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC)
235236
XFREE(cBuf, dsa->heap, DYNAMIC_TYPE_TMP_BUFFER);
236237
if (tmpQ != NULL) {

0 commit comments

Comments
 (0)