Documentation
¶
Overview ¶
Package tpm reads and extends pcrs with measurements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtendPCRDebug ¶
ExtendPCRDebug extends a PCR with the contents of a byte slice and notifies the kernel of this measurement by sending an event via sysfs.
In debug mode, it prints:
- The old PCR value before the hash is extended to the PCR
- The new PCR value after the hash is extended to the PCR
func HashReader ¶ added in v0.15.0
HashReader calculates the sha256 sum of an io reader.
func ReadValue32 ¶ added in v0.15.0
ReadValue32 reads the a 32-bit value from the TPM at the specified index.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.