Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
salrashid123 authored Jun 17, 2024
1 parent 04edf91 commit 2b6238d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,21 +370,21 @@ func (p MyPCRAndPolicyAuthValueSession) GetSession() (auth tpm2.Session, closer
which you can call as:

```golang
se, err := NewPCRAndPolicyAuthValueSession(rwr, []tpm2.TPMSPCRSelection{
p, err := NewPCRAndPolicyAuthValueSession(rwr, []tpm2.TPMSPCRSelection{
{
Hash: tpm2.TPMAlgSHA256,
PCRSelect: tpm2.PCClientCompatible.PCRs(uint(*pcr)),
},
}, []byte("testpswd"))

rr, err := saltpm.NewTPMCrypto(&saltpm.TPM{
TpmDevice: rwc,
NamedHandle: &tpm2.NamedHandle{
Handle: tpm2.TPMHandle(*handle),
Name: pub.Name,
config := &tpmjwt.TPMConfig{
TPMDevice: rwc,
NamedHandle: tpm2.NamedHandle{
Handle: tpm2.TPMHandle(*persistentHandle),
Name: rpub.Name,
},
AuthSession: se,
})
AuthSession: p,
}
```

### Usign Simulator
Expand Down

0 comments on commit 2b6238d

Please sign in to comment.