tpm2-{pcrread, pcrreset, pcrextend}: add page (#21601)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
This commit is contained in:
Nemo D'ACREMONT
2026-04-20 08:11:27 +02:00
committed by GitHub
parent ce7895e048
commit b7aef95a1d
4 changed files with 74 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# tpm2 pcrextend
> Extends a PCR.
> More information: <https://manned.org/tpm2_pcrextend>.
- Extend the PCR 16 value of the sha1 bank:
`tpm2 pcrextend 16:sha1={{f1d2d2f924e986ac86fdf7b36c94bcdf32beec15}}`
- Extend the PCR 16 value of the sha1 and sha256 banks value:
`tpm2 pcrextend 16:sha1={{f1d2d2f924e986ac86fdf7b36c94bcdf32beec15}},sha256={{b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c}}`
- Extend the PCR 16 value of the sha1 bank and PCR 23 of the sha256 bank:
`tpm2 pcrextend 16:sha1={{f1d2d2f924e986ac86fdf7b36c94bcdf32beec15}} 23:sha256={{b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c}}`
+16
View File
@@ -0,0 +1,16 @@
# tpm2 pcrread
> Read the PCR values from a TPM.
> More information: <https://manned.org/tpm2_pcrread>.
- Read all PCR values:
`tpm2 pcrread`
- Read all PCR values of the sha256 bank:
`tpm2 pcrread sha256:all`
- Read specific PCR values from multiple banks and write them to a file:
`tpm2 pcrread {{[-o|--output]}} {{path/to/file}} {{sha1:16,17,18+sha256:16,17,18}}`
+13
View File
@@ -0,0 +1,13 @@
# tpm2 pcrreset
> Reset one or more PCR banks.
> Note: On operating system's locality, only PCR 16 and 23 can be reset.
> More information: <https://manned.org/tpm2_pcrreset>.
- Reset the PCR 23 banks:
`tpm2 pcrreset 23`
- Reset the PCR 16 and 23 banks:
`tpm2 pcrreset 16 23`
+29
View File
@@ -0,0 +1,29 @@
# tpm2
> Run various tpm2-tools via a single unified executable.
> Some subcommands such as `pcrread`, `pcrreset`, etc. have their own usage documentation.
> More information: <https://manned.org/tpm2>.
- Reset the PCR 16 banks:
`tpm2 pcrreset 16`
- Extend the PCR 16 sha1 bank with `f1d2d2f924e986ac86fdf7b36c94bcdf32beec15`:
`tpm2 pcrextend 16:sha1=f1d2d2f924e986ac86fdf7b36c94bcdf32beec15`
- Read the PCR 16 sha1 bank:
`tpm2 pcrread sha1:16`
- Run a subcommand in verbose mode:
`tpm2 {{[-V|--verbose]}} {{subcommand}}`
- Run a subcommand without writing to `stdout`:
`tpm2 {{[-Q|--quiet]}} {{subcommand}}`
- Display help:
`tpm2 {{[-h|--help]}}`