tpm2_pcrlist(1) | General Commands Manual | tpm2_pcrlist(1) |
tpm2_pcrlist(1) - List PCR values.
tpm2_pcrlist [OPTIONS]
tpm2_pcrlist(1) Displays PCR values. Without any options, tpm2_pcrlist outputs all pcrs and their hash banks. One can use either the -g or -L mutually exclusive options to filter the output.
Output is writtien in a YAML format to stdout, with each algorithm followed by a PCR index and its value. As a simple example assume just sha1 and sha256 support and only 1 PCR. The output would be:
sha1 : 0 : 0000000000000000000000000000000000000003 sha256 : 0 : 0000000000000000000000000000000000000000000000000000000000000003
The list of pcr banks and selected PCRs' ids for each bank to display. PCR_SELECTION_LIST values should follow the pcr bank specifiers standards, see section “PCR Bank Specfiers”.
This collection of options are common to many programs and provide information that many users may expect.
This collection of environment variables that may be used to configure the various TCTI modules available.
The values passed through these variables can be overridden on a per-command basis using the available command line options, see the TCTI_OPTIONS section.
The variables respected depend on how the software was configured.
Note: Using the tpm directly requires the users to ensure that concurrent access does not occur and that they manage the tpm resources. These tasks are usually managed by a resource manager. Linux 4.12 and greater supports an in kernel resource manager at “/dev/tpmrm”, typically “/dev/tpmrm0”.
This collection of options are used to configure the varous TCTI modules available. They override any environment variables.
PCR Bank Selection lists follow the below specification:
<BANK>:<PCR>[,<PCR>]
multiple banks may be separated by `+'.
For example:
sha:3,4+sha256:5,6
will select PCRs 3 and 4 from the SHA bank and PCRs 5 and 6 from the SHA256 bank.
PCR Selections allow for up to 5 hash to pcr selection mappings. This is a limitaion in design in the single call to the tpm to get the pcr values.
Supported hash algorithms are:
NOTE: Your TPM may not support all algorithms.
Options that take algorithms support “nice-names”. Nice names, like sha1 can be used in place of the raw hex for sha1: 0x4. The nice names are converted by stripping the leading TPM_ALG_ from the Algorithm Name field and converting it to lower case. For instance TPM_ALG_SHA3_256 becomes sha3_256.
The algorithms can be found at: <https://trustedcomputinggroup.org/wp-content/uploads/TCG_Algorithm_Registry_Rev_1.24.pdf>
display all PCR values:
tpm2_pcrlist
Display the PCR values with a specified bank:
tpm2_pcrlist -g sha1
Display the PCR values with specified banks and store in a file:
tpm2_pcrlist -L sha1:16,17,18+sha256:16,17,18 -o pcrs
Display the supported PCR bank algorithms and exit:
tpm2_pcrlist -s
0 on success or 1 on failure.
Github Issues (https://github.com/01org/tpm2-tools/issues)
See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
AUGUST 2017 | tpm2-tools |