Documentation ¶
Overview ¶
Package pcr contains code that handles PCR operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateBankData ¶
func CalculateBankData(pcrNumber int, alg tpm2.TPMAlgID, sectionData map[secureboot.Section]string, rsaKey RSAKey) ([]tpm2internal.BankData, error)
CalculateBankData calculates the PCR bank data for a given set of UKI file sections.
This mimics the process happening happening in the TPM when the UKI is being loaded.
Types ¶
type Digest ¶
type Digest struct {
// contains filtered or unexported fields
}
Digest implements the PCR extension algorithm.
Each time `Extend` is called, the hash of the previous data is prepended to the hash of new data and hashed together.
The initial hash value is all zeroes.
Click to show internal directories.
Click to hide internal directories.