Skip to content

Commit 0ea5deb

Browse files
committed
Fix finding 420
1 parent 5dd8238 commit 0ea5deb

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
@@ -3122,6 +3122,10 @@ int wolfTPM2_DecodeRsaDer(const byte* der, word32 derSz,
31223122
wc_FreeRsaKey(key);
31233123
}
31243124

3125+
TPM2_ForceZero(d, sizeof(d));
3126+
TPM2_ForceZero(p, sizeof(p));
3127+
TPM2_ForceZero(q, sizeof(q));
3128+
31253129
return rc;
31263130
}
31273131
#endif /* !NO_RSA */

0 commit comments

Comments
 (0)