Module pcr

Module pcr 

Source
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§

PcrError

Functions§

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 PcrSelection into the low-level TpmlPcrSelection format.