Versions in this module Expand all Collapse all v1 v1.2.0 May 11, 2023 Changes in this version + const CachingTypeReserved0 + const CachingTypeReserved1 + const CachingTypeWriteBack + const CachingTypeWriteProtect + const StructureIDBPMH + const StructureIDPM + const StructureIDSE + const StructureIDSignature + type BPMH struct + ACMSVNAuth bg.SVN + BPMSVN bg.SVN + HdrStructVersion uint8 + NEMDataStack Size4K + PMBPMVersion uint8 + Reserved0 [1]byte + func NewBPMH() *BPMH + func (s *BPMH) ACMSVNAuthOffset() uint64 + func (s *BPMH) ACMSVNAuthTotalSize() uint64 + func (s *BPMH) BPMSVNOffset() uint64 + func (s *BPMH) BPMSVNTotalSize() uint64 + func (s *BPMH) GetStructInfo() bg.StructInfo + func (s *BPMH) HdrStructVersionOffset() uint64 + func (s *BPMH) HdrStructVersionTotalSize() uint64 + func (s *BPMH) NEMDataStackOffset() uint64 + func (s *BPMH) NEMDataStackTotalSize() uint64 + func (s *BPMH) PMBPMVersionOffset() uint64 + func (s *BPMH) PMBPMVersionTotalSize() 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 bg.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 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 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 + PME *PM + PMSE Signature + SE []SE + 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) 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) SEOffset() uint64 + func (s *Manifest) SETotalSize() uint64 + func (s *Manifest) TotalSize() uint64 + func (s *Manifest) Validate() error + func (s *Manifest) 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 PM struct + Data []byte + DataSize uint16 + func NewPM() *PM + func (s *PM) DataOffset() uint64 + func (s *PM) DataSizeOffset() uint64 + func (s *PM) DataSizeTotalSize() uint64 + func (s *PM) DataTotalSize() uint64 + func (s *PM) GetStructInfo() bg.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) SetStructInfo(newStructInfo bg.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 SE struct + Digest bg.HashStructure + Flags SEFlags + IBBEntryPoint uint32 + IBBMCHBAR uint64 + IBBSegments []IBBSegment + PBETValue PBETValue + PMRLBase uint32 + PMRLLimit uint32 + PostIBBHash bg.HashStructureFill + Reserved0 [1]byte + Reserved1 [1]byte + Reserved2 [8]byte + Reserved3 [8]byte + VTdBAR uint64 + func NewSE() *SE + func (s *SE) DigestOffset() uint64 + func (s *SE) DigestTotalSize() uint64 + func (s *SE) FlagsOffset() uint64 + func (s *SE) FlagsTotalSize() uint64 + func (s *SE) GetStructInfo() bg.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) PBETValueOffset() uint64 + func (s *SE) PBETValueTotalSize() uint64 + func (s *SE) PMRLBaseOffset() uint64 + func (s *SE) PMRLBaseTotalSize() uint64 + func (s *SE) PMRLLimitOffset() uint64 + func (s *SE) PMRLLimitTotalSize() 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) Reserved3Offset() uint64 + func (s *SE) Reserved3TotalSize() uint64 + func (s *SE) SetStructInfo(newStructInfo bg.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() bg.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 bg.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 = bg.StructInfo