Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AMD = NewFlow("AMD", types.Steps{ commonsteps.SetFlow(AMDGenoa), })
View Source
var AMDGenoa = NewFlow("AMDGenoa", types.Steps{ commonsteps.SetFlow(AMDGenoaLocality3), })
View Source
var AMDGenoaLocality0 = NewFlow("AMDGenoaLocality0", types.Steps{ commonsteps.If(commonconds.Not(tpmconds.TPMIsInited{}), tpmsteps.InitTPM(0, false), nil), amdsteps.MeasureMP0C2PMsgRegisters{}, amdsteps.MeasureEmbeddedFirmwareStructure{}, amdsteps.MeasureBIOSDirectory{}, amdsteps.MeasureBIOSStaticEntries{}, amdsteps.MeasurePMUFirmware{}, amdsteps.MeasureMicrocodePatch{}, amdsteps.MeasureVideoImageInterpreter{}, commonsteps.SetFlow(PEI), })
View Source
var AMDGenoaLocality0V2 = NewFlow("AMDGenoaLocality0V2", types.Steps{ commonsteps.If(commonconds.Not(tpmconds.TPMIsInited{}), tpmsteps.InitTPM(0, false), nil), tpmsteps.Measure(0, tpmeventlog.EV_NO_ACTION, (*datasources.StaticData)(types.NewData(types.RawBytes{0x8d, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x50}))), amdsteps.MeasureEmbeddedFirmwareStructure{}, amdsteps.MeasureBIOSDirectory{}, amdsteps.MeasureBIOSStaticEntries{}, amdsteps.MeasurePMUFirmware{}, amdsteps.MeasureMicrocodePatch{}, amdsteps.MeasureVideoImageInterpreter{}, commonsteps.SetFlow(PEI), })
View Source
var AMDGenoaLocality3 = NewFlow("AMDGenoaLocality3", types.Steps{ commonsteps.SetActor(amdactors.PSP{}), amdsteps.VerifyPSPDirectory(AMDGenoaVerificationFailure), tpmsteps.InitTPM(3, true), amdsteps.MeasurePSPVersion{}, amdsteps.MeasureBIOSRTMVolume{}, commonsteps.SetFlow(AMDGenoaLocality0), })
View Source
var AMDGenoaLocality3V2 = NewFlow("AMDGenoaLocality3V2", types.Steps{ commonsteps.SetActor(amdactors.PSP{}), amdsteps.VerifyPSPDirectory(AMDGenoaVerificationFailureV2), tpmsteps.InitTPM(3, true), amdsteps.MeasurePSPVersion{}, amdsteps.MeasureBIOSRTMVolume{}, commonsteps.SetFlow(AMDGenoaLocality0V2), })
View Source
var AMDGenoaVerificationFailure = NewFlow("AMDGenoaVerificationFailure", types.Steps{ commonsteps.SetFlow(AMDGenoaLocality0), })
View Source
var AMDGenoaVerificationFailureV2 = NewFlow("AMDGenoaVerificationFailureV2", types.Steps{ commonsteps.SetFlow(AMDGenoaLocality0V2), })
View Source
var AMDMilan = NewFlow("AMDMilan", types.Steps{ commonsteps.SetFlow(AMDMilanLocality3), })
View Source
var AMDMilanLegacyLocality0 = NewFlow("AMDMilanLegacyLocality0", types.Steps{ commonsteps.Panic("this case is not implemented, yet"), })
View Source
var AMDMilanLegacyLocality3 = NewFlow("AMDMilanLegacyLocality3", types.Steps{ commonsteps.Panic("this case is not implemented, yet"), })
View Source
var AMDMilanLocality0 = NewFlow("AMDMilanLocality0", types.Steps{ commonsteps.Panic("this case is not implemented, yet"), })
View Source
var AMDMilanLocality3 = NewFlow("AMDMilanLocality3", types.Steps{ commonsteps.SetFlow(AMDGenoaLocality3), })
View Source
var DXE = NewFlow("DXE", types.Steps{ commonsteps.SetActor(actors.DXE{}), })
DXE represents the steps of the DXE
View Source
var Intel = NewFlow("Intel", types.Steps{ commonsteps.If(intelconds.BPMPresent{}, commonsteps.SetFlow(IntelCBnT), nil), commonsteps.SetFlow(IntelLegacyTXTEnabled), })
View Source
var IntelCBnT = NewFlow("IntelCBnT", types.Steps{ commonsteps.SetActor(intelactors.PCH{}), intelsteps.VerifyACM(IntelCBnTFailure), intelsteps.VerifyKM(IntelCBnTFailure), intelsteps.VerifyBPM(IntelCBnTFailure), intelsteps.VerifyIBB(IntelCBnTFailure), commonsteps.SetActor(intelactors.ACM{}), tpmsteps.InitTPM(3, true), intelsteps.MeasurePCR0DATA{}, commonsteps.SetFlow(PEI), })
View Source
var IntelCBnTFailure = NewFlow("IntelCBnTFailure", types.Steps{ commonsteps.SetFlow(IntelLegacyTXTDisabled), })
View Source
var IntelLegacyTXTDisabled = NewFlow("IntelLegacyTXTDisabled", types.Steps{ commonsteps.SetFlow(PEI), })
View Source
var IntelLegacyTXTEnabled = NewFlow("IntelLegacyTXTEnabled", types.Steps{ commonsteps.SetActor(intelactors.PCH{}), intelsteps.VerifyACM(IntelLegacyTXTDisabled), commonsteps.SetActor(intelactors.ACM{}), tpmsteps.InitTPM(3, true), intelsteps.MeasureACMDate{}, intelsteps.MeasureFITData(fit.EntryTypeBIOSStartupModuleEntry), tpmsteps.Measure(0, tpmeventlog.EV_SEPARATOR, datasources.Bytes{0, 0, 0, 0}), commonsteps.SetFlow(PEI), })
View Source
var IntelLegacyTXTEnabledTPM12 = NewFlow("IntelLegacyTXTEnabledTPM12", types.Steps{ commonsteps.Panic("legacy TXT flow for TPM1.2 is not implemented"), })
View Source
var OCPPEI = NewFlow("OCPPEI", types.Steps{ commonsteps.SetActor(actors.PEI{}), commonsteps.If(tpmconds.TPMIsInited{}, nil, tpmsteps.InitTPM(0, false)), tpmsteps.Measure(0, tpmeventlog.EV_S_CRTM_VERSION, datasources.PCDVariable("FirmwareVendorVersion")), commonsteps.If( ocpconds.IsOCPv0{}, ocpV0Measurements, ocpV1Measurements, ), tpmsteps.Measure(0, tpmeventlog.EV_SEPARATOR, datasources.Bytes{0, 0, 0, 0}), commonsteps.SetFlow(DXE), })
View Source
var PEI = NewFlow("PEI", types.Steps{ commonsteps.SetActor(actors.Unknown{}), commonsteps.If(ocpconds.IsOCPv0{}, commonsteps.SetFlow(OCPPEI), nil), commonsteps.If(ocpconds.IsOCPv1{}, commonsteps.SetFlow(OCPPEI), nil), commonsteps.Panic("unknown flow: is not OCP"), })
View Source
var Root = NewFlow("Root", types.Steps{ commonsteps.If(intelconds.FITPresent{}, commonsteps.SetFlow(Intel), nil), commonsteps.If(amdconds.ManifestPresent{}, commonsteps.SetFlow(AMD), nil), commonsteps.Panic("unknown flow: neither AMD not Intel"), })
Functions ¶
func GetFlowByName ¶
GetFlowByName returns a Flow given its name.
The second value is false if there is no such flow.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.