Documentation ¶
Overview ¶
Package measure contains Go implementation of 'systemd-measure' command.
This implements TPM PCR emulation, UKI signature measurement, signing the measured values.
Index ¶
- func GenerateMeasurements(sectionsData SectionsData, phases []types.PhaseInfo, PCR int)
- func GenerateSignedPCR(sectionsData SectionsData, phases []types.PhaseInfo, rsaKey types.RSAKey, ...) (*types.PCRData, error)
- func PrintSystemdMeasurements(phase string, sectionsData SectionsData, privKey string)
- type SectionsData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMeasurements ¶ added in v0.2.0
func GenerateMeasurements(sectionsData SectionsData, phases []types.PhaseInfo, PCR int)
GenerateMeasurements generates the PCR measurements for a given set of UKI file sections and phases
func GenerateSignedPCR ¶
func GenerateSignedPCR(sectionsData SectionsData, phases []types.PhaseInfo, rsaKey types.RSAKey, PCR int) (*types.PCRData, error)
GenerateSignedPCR generates the PCR signed data for a given set of UKI file sections.
func PrintSystemdMeasurements ¶
func PrintSystemdMeasurements(phase string, sectionsData SectionsData, privKey string)
Types ¶
type SectionsData ¶
SectionsData holds a map of Section to file path to the corresponding section.
Click to show internal directories.
Click to hide internal directories.