-
Notifications
You must be signed in to change notification settings - Fork 146
Tests
Stefan Berger edited this page Jul 20, 2018
·
15 revisions
The following are some more advanced tests of the TPM 2 using the IBM TSS stack from within a VM.
> export TPM_INTERFACE_TYPE=dev
# Create an NV RAM index
> tssnvdefinespace -hi o -ha 0x01000000 -pwdn good -sz 16 -at da
# Write some data to it; this command needs to be run twice the first time
> tssnvwrite -ha 0x01000000 -ic test -pwdn good
> tssnvwrite -ha 0x01000000 -ic test -pwdn good
# set the lock-out timeout parameters to 20 seconds
> tssdictionaryattackparameters -lr 20 -nrt 20
# Use a wall clock (stop watch) when starting the following command to trigger the lockout
> tssnvwrite -ha 0x01000000 -ic test -pwdn bad
# You may want to suspend/resume the VM now.
# Only after 20 seconds the following command should pass again without an error
> tssnvwrite -ha 0x01000000 -ic test -pwdn good