Skip to content

Commit 5dd8238

Browse files
committed
Fix finding 419
1 parent cf21b43 commit 5dd8238

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/tpm2_wrap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3565,6 +3565,10 @@ int wolfTPM2_RsaPrivateKeyImportDer(WOLFTPM2_DEV* dev,
35653565
if (initRc == 0)
35663566
wc_FreeRsaKey(key);
35673567

3568+
TPM2_ForceZero(d, sizeof(d));
3569+
TPM2_ForceZero(p, sizeof(p));
3570+
TPM2_ForceZero(q, sizeof(q));
3571+
35683572
return rc;
35693573
}
35703574

0 commit comments

Comments
 (0)