Documentation ¶
Index ¶
Constants ¶
ID represents the unique id of DiffMeasuredBoot analyzer
Variables ¶
This section is empty.
Functions ¶
func NewExecutorInput ¶
func NewExecutorInput( originalFirmware analysis.Blob, actualFirmware analysis.Blob, regs registers.Registers, tpm tpmdetection.Type, eventlog *tpmeventlog.TPMEventLog, enforcedMeasurementsFlow pcr.Flow, expectedPCR0 []byte, ) (analysis.Input, error)
NewExecutorInput builds an analysis.Executor's input required for ReproducePCR analyzer
Optional arguments: tpm, eventlog and enforcedMeasurementsFlow
Types ¶
type ExpectedPCR0 ¶
type ExpectedPCR0 []byte
ExpectedPCR0 represents expected PCR0 value from the host
type Input ¶
type Input struct { ReferenceFirmware analysis.ReferenceFirmware ActualFirmwareBlob analysis.ActualFirmwareBlob ActualRegisters analysis.ActualRegisters FixedRegisters analysis.FixedRegisters BootFlow types.BootFlow TPMEventLog *tpmeventlog.TPMEventLog `exec:"optional"` ExpectedPCR0 ExpectedPCR0 }
Input describes the input data for the ReproducePCR analyzer
type ReproducePCR ¶
type ReproducePCR struct{}
ReproducePCR is analyzer that tries to reproduce given PCR0 value
func (*ReproducePCR) Analyze ¶
Analyze tries to reproduce ExpectedPCR0
TODO: redesign this function, this is an intermediate code while migrating from `pcr` to `bootflow`.
func (*ReproducePCR) ID ¶
func (analyzer *ReproducePCR) ID() analysis.AnalyzerID
ID implements the ID method required for analysis.Analyzer
Click to show internal directories.
Click to hide internal directories.