Versions in this module Expand all Collapse all v1 v1.2.0 May 11, 2023 Changes in this version + const BackupActionPolicyDefault + const BackupActionPolicyForceBtGUnbreakableShutdown + const BackupActionPolicyForceMemoryPowerDown + const CachingTypeReserved0 + const CachingTypeReserved1 + const CachingTypeWriteBack + const CachingTypeWriteProtect + const ExecutionProfileA + const ExecutionProfileB + const ExecutionProfileC + const MemoryScrubbingPolicyBIOS + const MemoryScrubbingPolicyDefault + const MemoryScrubbingPolicySACM + const ResetAUXControlDeleteAUXIndex + const ResetAUXControlResetAUXIndex + const StructureIDBPMH + const StructureIDPCD + const StructureIDPM + const StructureIDReserved + const StructureIDSE + const StructureIDSignature + const StructureIDTXT + type BPMH struct + ACMSVNAuth cbnt.SVN + BPMRevision uint8 + BPMSVN cbnt.SVN + KeySignatureOffset uint16 + NEMDataStack Size4K + Reserved0 [1]byte + func NewBPMH() *BPMH + func (s *BPMH) ACMSVNAuthOffset() uint64 + func (s *BPMH) ACMSVNAuthTotalSize() uint64 + func (s *BPMH) BPMRevisionOffset() uint64 + func (s *BPMH) BPMRevisionTotalSize() uint64 + func (s *BPMH) BPMSVNOffset() uint64 + func (s *BPMH) BPMSVNTotalSize() uint64 + func (s *BPMH) GetStructInfo() cbnt.StructInfo + func (s *BPMH) KeySignatureOffsetOffset() uint64 + func (s *BPMH) KeySignatureOffsetTotalSize() uint64 + func (s *BPMH) NEMDataStackOffset() uint64 + func (s *BPMH) NEMDataStackTotalSize() uint64 + func (s *BPMH) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (s *BPMH) ReadDataFrom(r io.Reader) (int64, error) + func (s *BPMH) ReadFrom(r io.Reader) (int64, error) + func (s *BPMH) Rehash() + func (s *BPMH) RehashRecursive() + func (s *BPMH) Reserved0Offset() uint64 + func (s *BPMH) Reserved0TotalSize() uint64 + func (s *BPMH) SetStructInfo(newStructInfo cbnt.StructInfo) + func (s *BPMH) StructInfoOffset() uint64 + func (s *BPMH) StructInfoTotalSize() uint64 + func (s *BPMH) TotalSize() uint64 + func (s *BPMH) Validate() error + func (s *BPMH) WriteTo(w io.Writer) (int64, error) + type BackupActionPolicy uint8 + func (policy BackupActionPolicy) String() string + func (v BackupActionPolicy) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v BackupActionPolicy) ReadFrom(r io.Reader) (int64, error) + func (v BackupActionPolicy) TotalSize() uint64 + func (v BackupActionPolicy) WriteTo(w io.Writer) (int64, error) + type CachingType uint8 + func (c CachingType) String() string + func (v CachingType) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v CachingType) ReadFrom(r io.Reader) (int64, error) + func (v CachingType) TotalSize() uint64 + func (v CachingType) WriteTo(w io.Writer) (int64, error) + type Duration16In5Sec uint16 + func (d Duration16In5Sec) Duration() time.Duration + func (d Duration16In5Sec) String() string + func (v Duration16In5Sec) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v Duration16In5Sec) ReadFrom(r io.Reader) (int64, error) + func (v Duration16In5Sec) TotalSize() uint64 + func (v Duration16In5Sec) WriteTo(w io.Writer) (int64, error) + type ExecutionProfile uint8 + func (p ExecutionProfile) String() string + func (v ExecutionProfile) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v ExecutionProfile) ReadFrom(r io.Reader) (int64, error) + func (v ExecutionProfile) TotalSize() uint64 + func (v ExecutionProfile) WriteTo(w io.Writer) (int64, error) + type IBBSegment struct + Base uint32 + Flags uint16 + Reserved [2]byte + Size uint32 + func NewIBBSegment() *IBBSegment + func (s *IBBSegment) BaseOffset() uint64 + func (s *IBBSegment) BaseTotalSize() uint64 + func (s *IBBSegment) FlagsOffset() uint64 + func (s *IBBSegment) FlagsTotalSize() uint64 + func (s *IBBSegment) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (s *IBBSegment) ReadFrom(r io.Reader) (int64, error) + func (s *IBBSegment) Rehash() + func (s *IBBSegment) RehashRecursive() + func (s *IBBSegment) ReservedOffset() uint64 + func (s *IBBSegment) ReservedTotalSize() uint64 + func (s *IBBSegment) SizeOffset() uint64 + func (s *IBBSegment) SizeTotalSize() uint64 + func (s *IBBSegment) TotalSize() uint64 + func (s *IBBSegment) Validate() error + func (s *IBBSegment) WriteTo(w io.Writer) (int64, error) + type Manifest struct + PCDE *PCD + PME *PM + PMSE Signature + Res *Reserved + SE []SE + TXTE *TXT + func NewManifest() *Manifest + func (bpm *Manifest) IBBDataRanges(firmwareSize uint64) pkgbytes.Ranges + func (bpm *Manifest) ValidateIBB(firmware uefi.Firmware) error + func (bpm Manifest) Print() + func (bpm Manifest) StructInfo() StructInfo + func (s *Manifest) BPMHOffset() uint64 + func (s *Manifest) BPMHTotalSize() uint64 + func (s *Manifest) PCDEOffset() uint64 + func (s *Manifest) PCDETotalSize() uint64 + func (s *Manifest) PMEOffset() uint64 + func (s *Manifest) PMETotalSize() uint64 + func (s *Manifest) PMSEOffset() uint64 + func (s *Manifest) PMSETotalSize() uint64 + func (s *Manifest) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (s *Manifest) ReadFrom(r io.Reader) (returnN int64, returnErr error) + func (s *Manifest) Rehash() + func (s *Manifest) RehashRecursive() + func (s *Manifest) ResOffset() uint64 + func (s *Manifest) ResTotalSize() uint64 + func (s *Manifest) SEOffset() uint64 + func (s *Manifest) SETotalSize() uint64 + func (s *Manifest) TXTEOffset() uint64 + func (s *Manifest) TXTETotalSize() uint64 + func (s *Manifest) TotalSize() uint64 + func (s *Manifest) Validate() error + func (s *Manifest) WriteTo(w io.Writer) (int64, error) + type MemoryScrubbingPolicy uint8 + func (policy MemoryScrubbingPolicy) String() string + func (v MemoryScrubbingPolicy) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v MemoryScrubbingPolicy) ReadFrom(r io.Reader) (int64, error) + func (v MemoryScrubbingPolicy) TotalSize() uint64 + func (v MemoryScrubbingPolicy) WriteTo(w io.Writer) (int64, error) + type PBETValue uint8 + func (pbet *PBETValue) SetDuration(duration time.Duration) time.Duration + func (pbet PBETValue) Duration() time.Duration + func (pbet PBETValue) PBETValue() uint8 + func (v PBETValue) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v PBETValue) ReadFrom(r io.Reader) (int64, error) + func (v PBETValue) TotalSize() uint64 + func (v PBETValue) WriteTo(w io.Writer) (int64, error) + type PCD struct + Data []byte + Reserved0 [2]byte + func NewPCD() *PCD + func (s *PCD) DataOffset() uint64 + func (s *PCD) DataTotalSize() uint64 + func (s *PCD) GetStructInfo() cbnt.StructInfo + func (s *PCD) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (s *PCD) ReadDataFrom(r io.Reader) (int64, error) + func (s *PCD) ReadFrom(r io.Reader) (int64, error) + func (s *PCD) Rehash() + func (s *PCD) RehashRecursive() + func (s *PCD) Reserved0Offset() uint64 + func (s *PCD) Reserved0TotalSize() uint64 + func (s *PCD) SetStructInfo(newStructInfo cbnt.StructInfo) + func (s *PCD) StructInfoOffset() uint64 + func (s *PCD) StructInfoTotalSize() uint64 + func (s *PCD) TotalSize() uint64 + func (s *PCD) Validate() error + func (s *PCD) WriteTo(w io.Writer) (int64, error) + type PM struct + Data []byte + Reserved0 [2]byte + func NewPM() *PM + func (s *PM) DataOffset() uint64 + func (s *PM) DataTotalSize() uint64 + func (s *PM) GetStructInfo() cbnt.StructInfo + func (s *PM) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (s *PM) ReadDataFrom(r io.Reader) (int64, error) + func (s *PM) ReadFrom(r io.Reader) (int64, error) + func (s *PM) Rehash() + func (s *PM) RehashRecursive() + func (s *PM) Reserved0Offset() uint64 + func (s *PM) Reserved0TotalSize() uint64 + func (s *PM) SetStructInfo(newStructInfo cbnt.StructInfo) + func (s *PM) StructInfoOffset() uint64 + func (s *PM) StructInfoTotalSize() uint64 + func (s *PM) TotalSize() uint64 + func (s *PM) Validate() error + func (s *PM) WriteTo(w io.Writer) (int64, error) + type Reserved struct + ReservedData [32]byte + func NewReserved() *Reserved + func (s *Reserved) GetStructInfo() cbnt.StructInfo + func (s *Reserved) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (s *Reserved) ReadDataFrom(r io.Reader) (int64, error) + func (s *Reserved) ReadFrom(r io.Reader) (int64, error) + func (s *Reserved) Rehash() + func (s *Reserved) RehashRecursive() + func (s *Reserved) ReservedDataOffset() uint64 + func (s *Reserved) ReservedDataTotalSize() uint64 + func (s *Reserved) SetStructInfo(newStructInfo cbnt.StructInfo) + func (s *Reserved) StructInfoOffset() uint64 + func (s *Reserved) StructInfoTotalSize() uint64 + func (s *Reserved) TotalSize() uint64 + func (s *Reserved) Validate() error + func (s *Reserved) WriteTo(w io.Writer) (int64, error) + type ResetAUXControl uint8 + func (c ResetAUXControl) String() string + func (v ResetAUXControl) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v ResetAUXControl) ReadFrom(r io.Reader) (int64, error) + func (v ResetAUXControl) TotalSize() uint64 + func (v ResetAUXControl) WriteTo(w io.Writer) (int64, error) + type SE struct + DMAProtBase0 uint32 + DMAProtBase1 uint64 + DMAProtLimit0 uint32 + DMAProtLimit1 uint64 + DigestList cbnt.HashList + Flags SEFlags + IBBEntryPoint uint32 + IBBMCHBAR uint64 + IBBSegments []IBBSegment + OBBHash cbnt.HashStructure + PBETValue PBETValue + PostIBBHash cbnt.HashStructure + Reserved0 [1]byte + Reserved1 [1]byte + Reserved2 [3]byte + SetNumber uint8 + VTdBAR uint64 + func NewSE() *SE + func (s *SE) DMAProtBase0Offset() uint64 + func (s *SE) DMAProtBase0TotalSize() uint64 + func (s *SE) DMAProtBase1Offset() uint64 + func (s *SE) DMAProtBase1TotalSize() uint64 + func (s *SE) DMAProtLimit0Offset() uint64 + func (s *SE) DMAProtLimit0TotalSize() uint64 + func (s *SE) DMAProtLimit1Offset() uint64 + func (s *SE) DMAProtLimit1TotalSize() uint64 + func (s *SE) DigestListOffset() uint64 + func (s *SE) DigestListTotalSize() uint64 + func (s *SE) FlagsOffset() uint64 + func (s *SE) FlagsTotalSize() uint64 + func (s *SE) GetStructInfo() cbnt.StructInfo + func (s *SE) IBBEntryPointOffset() uint64 + func (s *SE) IBBEntryPointTotalSize() uint64 + func (s *SE) IBBMCHBAROffset() uint64 + func (s *SE) IBBMCHBARTotalSize() uint64 + func (s *SE) IBBSegmentsOffset() uint64 + func (s *SE) IBBSegmentsTotalSize() uint64 + func (s *SE) OBBHashOffset() uint64 + func (s *SE) OBBHashTotalSize() uint64 + func (s *SE) PBETValueOffset() uint64 + func (s *SE) PBETValueTotalSize() uint64 + func (s *SE) PostIBBHashOffset() uint64 + func (s *SE) PostIBBHashTotalSize() uint64 + func (s *SE) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (s *SE) ReadDataFrom(r io.Reader) (int64, error) + func (s *SE) ReadFrom(r io.Reader) (int64, error) + func (s *SE) Rehash() + func (s *SE) RehashRecursive() + func (s *SE) Reserved0Offset() uint64 + func (s *SE) Reserved0TotalSize() uint64 + func (s *SE) Reserved1Offset() uint64 + func (s *SE) Reserved1TotalSize() uint64 + func (s *SE) Reserved2Offset() uint64 + func (s *SE) Reserved2TotalSize() uint64 + func (s *SE) SetNumberOffset() uint64 + func (s *SE) SetNumberTotalSize() uint64 + func (s *SE) SetStructInfo(newStructInfo cbnt.StructInfo) + func (s *SE) StructInfoOffset() uint64 + func (s *SE) StructInfoTotalSize() uint64 + func (s *SE) TotalSize() uint64 + func (s *SE) VTdBAROffset() uint64 + func (s *SE) VTdBARTotalSize() uint64 + func (s *SE) Validate() error + func (s *SE) WriteTo(w io.Writer) (int64, error) + type SEFlags uint32 + func (flags SEFlags) AuthorityMeasure() bool + func (flags SEFlags) DMAProtection() bool + func (flags SEFlags) Locality3Startup() bool + func (flags SEFlags) Reserved0() uint32 + func (flags SEFlags) SupportsTopSwapRemediation() bool + func (flags SEFlags) TPMFailureLeavesHierarchiesEnabled() bool + func (v SEFlags) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v SEFlags) ReadFrom(r io.Reader) (int64, error) + func (v SEFlags) TotalSize() uint64 + func (v SEFlags) WriteTo(w io.Writer) (int64, error) + type Signature struct + func NewSignature() *Signature + func (s *Signature) GetStructInfo() cbnt.StructInfo + func (s *Signature) KeySignatureOffset() uint64 + func (s *Signature) KeySignatureTotalSize() uint64 + func (s *Signature) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (s *Signature) ReadDataFrom(r io.Reader) (int64, error) + func (s *Signature) ReadFrom(r io.Reader) (int64, error) + func (s *Signature) Rehash() + func (s *Signature) RehashRecursive() + func (s *Signature) SetStructInfo(newStructInfo cbnt.StructInfo) + func (s *Signature) StructInfoOffset() uint64 + func (s *Signature) StructInfoTotalSize() uint64 + func (s *Signature) TotalSize() uint64 + func (s *Signature) Validate() error + func (s *Signature) WriteTo(w io.Writer) (int64, error) + type Size4K uint16 + func NewSize4K(size uint32) Size4K + func (s Size4K) InBytes() uint32 + func (v Size4K) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v Size4K) ReadFrom(r io.Reader) (int64, error) + func (v Size4K) TotalSize() uint64 + func (v Size4K) WriteTo(w io.Writer) (int64, error) + type StructInfo = cbnt.StructInfo + type TXT struct + ACPIBaseOffset uint16 + ControlFlags TXTControlFlags + DigestList cbnt.HashList + PTTCMOSOffset0 uint8 + PTTCMOSOffset1 uint8 + PwrDownInterval Duration16In5Sec + PwrMBaseOffset uint32 + Reserved0 [1]byte + Reserved1 [1]byte + Reserved2 [2]byte + Reserved3 [3]byte + SInitMinSVNAuth uint8 + SegmentCount uint8 + SetNumber [1]byte + func NewTXT() *TXT + func (s *TXT) ACPIBaseOffsetOffset() uint64 + func (s *TXT) ACPIBaseOffsetTotalSize() uint64 + func (s *TXT) ControlFlagsOffset() uint64 + func (s *TXT) ControlFlagsTotalSize() uint64 + func (s *TXT) DigestListOffset() uint64 + func (s *TXT) DigestListTotalSize() uint64 + func (s *TXT) GetStructInfo() cbnt.StructInfo + func (s *TXT) PTTCMOSOffset0Offset() uint64 + func (s *TXT) PTTCMOSOffset0TotalSize() uint64 + func (s *TXT) PTTCMOSOffset1Offset() uint64 + func (s *TXT) PTTCMOSOffset1TotalSize() uint64 + func (s *TXT) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (s *TXT) PwrDownIntervalOffset() uint64 + func (s *TXT) PwrDownIntervalTotalSize() uint64 + func (s *TXT) PwrMBaseOffsetOffset() uint64 + func (s *TXT) PwrMBaseOffsetTotalSize() uint64 + func (s *TXT) ReadDataFrom(r io.Reader) (int64, error) + func (s *TXT) ReadFrom(r io.Reader) (int64, error) + func (s *TXT) Rehash() + func (s *TXT) RehashRecursive() + func (s *TXT) Reserved0Offset() uint64 + func (s *TXT) Reserved0TotalSize() uint64 + func (s *TXT) Reserved1Offset() uint64 + func (s *TXT) Reserved1TotalSize() uint64 + func (s *TXT) Reserved2Offset() uint64 + func (s *TXT) Reserved2TotalSize() uint64 + func (s *TXT) Reserved3Offset() uint64 + func (s *TXT) Reserved3TotalSize() uint64 + func (s *TXT) SInitMinSVNAuthOffset() uint64 + func (s *TXT) SInitMinSVNAuthTotalSize() uint64 + func (s *TXT) SegmentCountOffset() uint64 + func (s *TXT) SegmentCountTotalSize() uint64 + func (s *TXT) SetNumberOffset() uint64 + func (s *TXT) SetNumberTotalSize() uint64 + func (s *TXT) SetStructInfo(newStructInfo cbnt.StructInfo) + func (s *TXT) StructInfoOffset() uint64 + func (s *TXT) StructInfoTotalSize() uint64 + func (s *TXT) TotalSize() uint64 + func (s *TXT) Validate() error + func (s *TXT) WriteTo(w io.Writer) (int64, error) + type TXTControlFlags uint32 + func (flags TXTControlFlags) BackupActionPolicy() BackupActionPolicy + func (flags TXTControlFlags) ExecutionProfile() ExecutionProfile + func (flags TXTControlFlags) IsSACMRequestedToExtendStaticPCRs() bool + func (flags TXTControlFlags) MemoryScrubbingPolicy() MemoryScrubbingPolicy + func (flags TXTControlFlags) ResetAUXControl() ResetAUXControl + func (v TXTControlFlags) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string + func (v TXTControlFlags) ReadFrom(r io.Reader) (int64, error) + func (v TXTControlFlags) TotalSize() uint64 + func (v TXTControlFlags) WriteTo(w io.Writer) (int64, error)