Expand description
Abstractions and logic for handling Platform Configuration Registers (PCRs).
Structs§
- Pcr
- Represents the state of a single PCR register.
- PcrBank
- Represents the properties of a single PCR bank.
- PcrSelection
- Represents a user’s selection of PCR indices for a specific bank.
Enums§
Functions§
- parse_
pcr_ policy_ string - Parses a full PCR policy string, including an optional composite digest.
- pcr_
composite_ digest - Computes a composite digest from a set of PCRs using a specified algorithm.
- pcr_
get_ bank_ list - Discovers the list of available PCR banks and their sizes from the TPM.
- pcr_
read - Reads the selected PCRs and returns them in a structured format.
- pcr_
selection_ vec_ from_ str - Parses a PCR selection string (e.g., “sha256:0,7+sha1:1”) into a vector of
PcrSelection. - pcr_
selection_ vec_ to_ tpml - Converts a vector of
PcrSelectioninto the low-levelTpmlPcrSelectionformat.