On Tue, 2020-07-21 at 08:06 -0700, James Bottomley wrote: > On Tue, 2020-07-21 at 08:30 -0400, Mimi Zohar wrote: > I think the sysfs output should be a pure hash to save having to > massage it. However, if you want the 1.2 format, this is the script I > use: > > a=0; while [ $a -lt 24 ]; do printf "PCR-%02d: " $a; cat > /sys/class/tpm/tpm0/pcr-sha1/$a; a=$[$a+1]; done The TPM 1.2 format is a bit different, but this provides the PCRs and digests sequentially. thanks, Mimi