Skip to content

Commit cf21b43

Browse files
committed
Fix finding 353
1 parent c2a0b9f commit cf21b43

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tpm2_wrap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,6 +2623,8 @@ int wolfTPM2_LoadPrivateKey(WOLFTPM2_DEV* dev, const WOLFTPM2_KEY* parentKey,
26232623
wolfTPM2_CopyPub(&key->pub, &keyBlob.pub);
26242624
wolfTPM2_CopyAuth(&key->handle.auth, &sens->sensitiveArea.authValue);
26252625

2626+
TPM2_ForceZero(&keyBlob, sizeof(keyBlob));
2627+
26262628
return rc;
26272629
}
26282630

0 commit comments

Comments
 (0)