measure

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 6 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 GenerateSignedPCR

func GenerateSignedPCR(sectionsData SectionsData, rsaKey RSAKey) (*tpm2internal.PCRData, error)

GenerateSignedPCR generates the PCR signed data for a given set of UKI file sections.

Types

type RSAKey added in v1.6.0

type RSAKey interface {
	crypto.Signer
	PublicRSAKey() *rsa.PublicKey
}

RSAKey is the input for the CalculateBankData function.

type SectionsData

type SectionsData map[secureboot.Section]string

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

Directories

Path Synopsis
internal
pcr
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