measure

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package measure contains Go implementation of 'systemd-measure' command.

This implements TPM PCR emulation, UKI signature measurement, signing the measured values.

Index

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

type SectionsData map[constants.Section]string

SectionsData holds a map of Section to file path to the corresponding section.

Directories

Path Synopsis
Package pcr contains code that handles PCR operations.
Package pcr contains code that handles PCR operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL