swtpm/tests/data/tpmstate2
Stefan Berger cafdcfe71a test: Recreate TPM 1.2 state files with header
Recreate TPM 1.2 state files with similar content but with the state
file header. The older versions of the state files were created before
the header was introduced in v0.1. The goal is to be able to get rid
of code supporting pre-v0.1 files that had no header.

The PCR values was originally created by extending PCR 10 with
sha1("test"). This was recreated using this sequence:

s=$(echo -en test | sha1sum | cut -d " " -f1 | sed -n 's/\([a-f0-9]\{2\}\)/\\x\1/pg')
echo -en $s > input
tss1extend  -ha 10 -if input

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2022-05-09 10:15:08 -04:00
..
pwdfile.txt merging swtpm-tools into this project 2014-12-05 13:43:21 -05:00
README swtpm: integrity protect the encrypt TPM state 2015-05-19 16:35:08 -04:00
tpm-00.permall test: Recreate TPM 1.2 state files with header 2022-05-09 10:15:08 -04:00
tpm-00.volatilestate test: Recreate TPM 1.2 state files with header 2022-05-09 10:15:08 -04:00

The volatile state of this TPM instance has

PCR[10] = c78a6e94c73c4d7fc305c8a66bbf1545f4edb7a5  (extend of 'test')

The state is encrypted.
The value of PCR 10 cannot easily be found in tpm-00.volatilestate.