measure

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigMeasurement

func GetConfigMeasurement(id string, configData []byte) ([]byte, []byte, string, error)

func GetRootfsMeasurement

func GetRootfsMeasurement(rootfsPath string) ([]byte, error)

func Measure

func Measure(name string, configSha256, rootfsSha256 []byte, mc *MeasureConfig) error

Types

type MeasureConfig

type MeasureConfig struct {
	Serializer ar.Serializer
	Pcr        int
	LogFile    string
	Driver     string
}

type MeasureEntry

type MeasureEntry struct {
	Pcr            int        `json:"pcr,omitempty" cbor:"0,keyasint,omitempty"`
	TemplateSha256 ar.HexByte `json:"templateSha256,omitempty" cbor:"1,keyasint,omitempty"`
	Name           string     `json:"name,omitempty" cbor:"2,keyasint,omitempty"`
	ConfigSha256   ar.HexByte `json:"configSha256,omitempty" cbor:"3,keyasint,omitempty"`
	RootfsSha256   ar.HexByte `json:"rootfsSha256,omitempty" cbor:"4,keyasint,omitempty"`
}

Jump to

Keyboard shortcuts

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