mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-12-28 15:20:51 +00:00
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>
|
||
|---|---|---|
| .. | ||
| pwdfile.txt | ||
| README | ||
| tpm-00.permall | ||
| tpm-00.volatilestate | ||
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.