Skip to content

Commit

Permalink
tpm2_policynv.md Fix examples.
Browse files Browse the repository at this point in the history
The examples did not work as expected.
Fixes: #3418

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Jul 25, 2024
1 parent 34e4165 commit bd832d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions man/tpm2_policynv.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ echo "aa" | xxd -r -p | tpm2_nvwrite -P nvpass -i- $nv_test_index
```bash
tpm2_startauthsession -S session.ctx --policy-session
### This should fail
echo 0xBB | tpm2_policynv -S session.ctx -L policy.nv -i- 0x1500001 eq -P nvpass
echo "bb" | xxd -r -p | tpm2_policynv -S session.ctx -L policy.nv -i- 0x1500001 eq -P nvpass
tpm2_flushcontext session.ctx
```

## Attempt defining policynv with right comparison value specified in options.
```bash
tpm2_startauthsession -S session.ctx --policy-session
### This should pass
echo 0xAA | tpm2_policynv -S session.ctx -L policy.nv -i- 0x1500001 eq -P nvpass
echo "aa" | xxd -r -p | tpm2_policynv -S session.ctx -L policy.nv -i- 0x1500001 eq -P nvpass
tpm2_flushcontext session.ctx
```

Expand Down

0 comments on commit bd832d3

Please sign in to comment.