Documentation
¶
Index ¶
- Constants
- type 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() manifest.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 manifest.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
- func (v BackupActionPolicy) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string
- func (v BackupActionPolicy) ReadFrom(r io.Reader) (int64, error)
- func (policy BackupActionPolicy) String() string
- func (v BackupActionPolicy) TotalSize() uint64
- func (v BackupActionPolicy) WriteTo(w io.Writer) (int64, error)
- type CachingType
- type Duration16In5Sec
- func (d Duration16In5Sec) Duration() time.Duration
- func (v Duration16In5Sec) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string
- func (v Duration16In5Sec) ReadFrom(r io.Reader) (int64, error)
- func (d Duration16In5Sec) String() string
- func (v Duration16In5Sec) TotalSize() uint64
- func (v Duration16In5Sec) WriteTo(w io.Writer) (int64, error)
- type ExecutionProfile
- func (v ExecutionProfile) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string
- func (v ExecutionProfile) ReadFrom(r io.Reader) (int64, error)
- func (p ExecutionProfile) String() string
- func (v ExecutionProfile) TotalSize() uint64
- func (v ExecutionProfile) WriteTo(w io.Writer) (int64, error)
- type 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
- func (s *Manifest) BPMHOffset() uint64
- func (s *Manifest) BPMHTotalSize() uint64
- func (bpm *Manifest) IBBDataRanges(firmwareSize uint64) pkgbytes.Ranges
- 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 (bpm Manifest) Print()
- 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 (bpm Manifest) StructInfo() StructInfo
- func (s *Manifest) TXTEOffset() uint64
- func (s *Manifest) TXTETotalSize() uint64
- func (s *Manifest) TotalSize() uint64
- func (s *Manifest) Validate() error
- func (bpm *Manifest) ValidateIBB(firmware uefi.Firmware) error
- func (s *Manifest) WriteTo(w io.Writer) (int64, error)
- type MemoryScrubbingPolicy
- func (v MemoryScrubbingPolicy) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string
- func (v MemoryScrubbingPolicy) ReadFrom(r io.Reader) (int64, error)
- func (policy MemoryScrubbingPolicy) String() string
- func (v MemoryScrubbingPolicy) TotalSize() uint64
- func (v MemoryScrubbingPolicy) WriteTo(w io.Writer) (int64, error)
- type PBETValue
- 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 (pbet *PBETValue) SetDuration(duration time.Duration) time.Duration
- func (v PBETValue) TotalSize() uint64
- func (v PBETValue) WriteTo(w io.Writer) (int64, error)
- type PCD
- func (s *PCD) DataOffset() uint64
- func (s *PCD) DataTotalSize() uint64
- func (s *PCD) GetStructInfo() manifest.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 manifest.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
- func (s *PM) DataOffset() uint64
- func (s *PM) DataTotalSize() uint64
- func (s *PM) GetStructInfo() manifest.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 manifest.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
- func (s *Reserved) GetStructInfo() manifest.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 manifest.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
- func (v ResetAUXControl) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string
- func (v ResetAUXControl) ReadFrom(r io.Reader) (int64, error)
- func (c ResetAUXControl) String() string
- func (v ResetAUXControl) TotalSize() uint64
- func (v ResetAUXControl) WriteTo(w io.Writer) (int64, error)
- type 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() manifest.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 manifest.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
- func (flags SEFlags) AuthorityMeasure() bool
- func (flags SEFlags) DMAProtection() bool
- func (flags SEFlags) Locality3Startup() bool
- func (v SEFlags) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string
- func (v SEFlags) ReadFrom(r io.Reader) (int64, error)
- func (flags SEFlags) Reserved0() uint32
- func (flags SEFlags) SupportsTopSwapRemediation() bool
- func (flags SEFlags) TPMFailureLeavesHierarchiesEnabled() bool
- func (v SEFlags) TotalSize() uint64
- func (v SEFlags) WriteTo(w io.Writer) (int64, error)
- type Signature
- func (s *Signature) GetStructInfo() manifest.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 manifest.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
- type StructInfo
- type 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() manifest.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 manifest.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
- func (flags TXTControlFlags) BackupActionPolicy() BackupActionPolicy
- func (flags TXTControlFlags) ExecutionProfile() ExecutionProfile
- func (flags TXTControlFlags) IsSACMRequestedToExtendStaticPCRs() bool
- func (flags TXTControlFlags) MemoryScrubbingPolicy() MemoryScrubbingPolicy
- func (v TXTControlFlags) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string
- func (v TXTControlFlags) ReadFrom(r io.Reader) (int64, error)
- func (flags TXTControlFlags) ResetAUXControl() ResetAUXControl
- func (v TXTControlFlags) TotalSize() uint64
- func (v TXTControlFlags) WriteTo(w io.Writer) (int64, error)
Constants ¶
const ( CachingTypeWriteProtect = CachingType(iota) CachingTypeWriteBack CachingTypeReserved0 CachingTypeReserved1 )
<TO BE DOCUMENTED>
const ( ExecutionProfileA = ExecutionProfile(iota) ExecutionProfileB ExecutionProfileC )
const ( MemoryScrubbingPolicyDefault = MemoryScrubbingPolicy(iota) MemoryScrubbingPolicyBIOS MemoryScrubbingPolicySACM )
const ( BackupActionPolicyDefault = BackupActionPolicy(iota) BackupActionPolicyForceMemoryPowerDown BackupActionPolicyForceBtGUnbreakableShutdown )
const ( ResetAUXControlResetAUXIndex = ResetAUXControl(iota) ResetAUXControlDeleteAUXIndex )
const StructureIDBPMH = "__ACBP__"
StructureIDBPMH is the StructureID (in terms of the document #575623) of element 'BPMH'.
const StructureIDPCD = "__PCDS__"
StructureIDPCD is the StructureID (in terms of the document #575623) of element 'PCD'.
const StructureIDPM = "__PMDA__"
StructureIDPM is the StructureID (in terms of the document #575623) of element 'PM'.
const StructureIDReserved = "__PFRS__"
StructureIDReserved is the StructureID (in terms of the document #575623) of element 'Reserved'.
const StructureIDSE = "__IBBS__"
StructureIDSE is the StructureID (in terms of the document #575623) of element 'SE'.
const StructureIDSignature = "__PMSG__"
StructureIDSignature is the StructureID (in terms of the document #575623) of element 'Signature'.
const StructureIDTXT = "__TXTS__"
StructureIDTXT is the StructureID (in terms of the document #575623) of element 'TXT'.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BPMH ¶
type BPMH struct { StructInfo `id:"__ACBP__" version:"0x23" var0:"0x20" var1:"uint16(s.TotalSize())"` KeySignatureOffset uint16 `json:"bpmhKeySignatureOffset"` BPMRevision uint8 `json:"bpmhRevision"` // BPMSVN is BPM security version number // // PrettyString: BPM SVN BPMSVN manifest.SVN `json:"bpmhSNV"` // ACMSVNAuth is authorized ACM security version number // // PrettyString: ACM SVN Auth ACMSVNAuth manifest.SVN `json:"bpmhACMSVN"` Reserved0 [1]byte `require:"0" json:"bpmhReserved0,omitempty"` NEMDataStack Size4K `json:"bpmhNEMStackSize"` }
BPMH is the header of boot policy manifest
func NewBPMH ¶
func NewBPMH() *BPMH
NewBPMH returns a new instance of BPMH with all default values set.
func (*BPMH) ACMSVNAuthOffset ¶
ACMSVNAuthOffset returns the offset in bytes of field ACMSVNAuth
func (*BPMH) ACMSVNAuthTotalSize ¶
ACMSVNAuthSize returns the size in bytes of the value of field ACMSVNAuth
func (*BPMH) BPMRevisionOffset ¶
BPMRevisionOffset returns the offset in bytes of field BPMRevision
func (*BPMH) BPMRevisionTotalSize ¶
BPMRevisionSize returns the size in bytes of the value of field BPMRevision
func (*BPMH) BPMSVNOffset ¶
BPMSVNOffset returns the offset in bytes of field BPMSVN
func (*BPMH) BPMSVNTotalSize ¶
BPMSVNSize returns the size in bytes of the value of field BPMSVN
func (*BPMH) GetStructInfo ¶
func (s *BPMH) GetStructInfo() manifest.StructInfo
GetStructInfo returns current value of StructInfo of the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*BPMH) KeySignatureOffsetOffset ¶
KeySignatureOffsetOffset returns the offset in bytes of field KeySignatureOffset
func (*BPMH) KeySignatureOffsetTotalSize ¶
KeySignatureOffsetSize returns the size in bytes of the value of field KeySignatureOffset
func (*BPMH) NEMDataStackOffset ¶
NEMDataStackOffset returns the offset in bytes of field NEMDataStack
func (*BPMH) NEMDataStackTotalSize ¶
NEMDataStackSize returns the size in bytes of the value of field NEMDataStack
func (*BPMH) PrettyString ¶
PrettyString returns the content of the structure in an easy-to-read format.
func (*BPMH) ReadDataFrom ¶
ReadDataFrom reads the BPMH from 'r' excluding StructInfo, in format defined in the document #575623.
func (*BPMH) Rehash ¶
func (s *BPMH) Rehash()
Rehash sets values which are calculated automatically depending on the rest data. It is usually about the total size field of an element.
func (*BPMH) RehashRecursive ¶
func (s *BPMH) RehashRecursive()
RehashRecursive calls Rehash (see below) recursively.
func (*BPMH) Reserved0Offset ¶
Reserved0Offset returns the offset in bytes of field Reserved0
func (*BPMH) Reserved0TotalSize ¶
Reserved0Size returns the size in bytes of the value of field Reserved0
func (*BPMH) SetStructInfo ¶
func (s *BPMH) SetStructInfo(newStructInfo manifest.StructInfo)
SetStructInfo sets new value of StructInfo to the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*BPMH) StructInfoOffset ¶
StructInfoOffset returns the offset in bytes of field StructInfo
func (*BPMH) StructInfoTotalSize ¶
StructInfoSize returns the size in bytes of the value of field StructInfo
type BackupActionPolicy ¶
type BackupActionPolicy uint8
func (BackupActionPolicy) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
func (BackupActionPolicy) ReadFrom ¶
func (v BackupActionPolicy) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads the BackupActionPolicy from 'r' in binary format.
func (BackupActionPolicy) String ¶
func (policy BackupActionPolicy) String() string
String implements fmt.Stringer.
func (BackupActionPolicy) TotalSize ¶
func (v BackupActionPolicy) TotalSize() uint64
TotalSize returns the total size measured through binary.Size.
type CachingType ¶
type CachingType uint8
CachingType <TO BE DOCUMENTED>
func (CachingType) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
func (CachingType) ReadFrom ¶
func (v CachingType) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads the CachingType from 'r' in binary format.
func (CachingType) TotalSize ¶
func (v CachingType) TotalSize() uint64
TotalSize returns the total size measured through binary.Size.
type Duration16In5Sec ¶
type Duration16In5Sec uint16
Duration16In5Sec exports the custom type Duration16In5Sec
func (Duration16In5Sec) Duration ¶
func (d Duration16In5Sec) Duration() time.Duration
Duration calculates a given time in multiple of 5 seconds.
func (Duration16In5Sec) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
func (Duration16In5Sec) ReadFrom ¶
func (v Duration16In5Sec) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads the Duration16In5Sec from 'r' in binary format.
func (Duration16In5Sec) String ¶
func (d Duration16In5Sec) String() string
func (Duration16In5Sec) TotalSize ¶
func (v Duration16In5Sec) TotalSize() uint64
TotalSize returns the total size measured through binary.Size.
type ExecutionProfile ¶
type ExecutionProfile uint8
func (ExecutionProfile) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
func (ExecutionProfile) ReadFrom ¶
func (v ExecutionProfile) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads the ExecutionProfile from 'r' in binary format.
func (ExecutionProfile) String ¶
func (p ExecutionProfile) String() string
String just implements fmt.Stringer.
func (ExecutionProfile) TotalSize ¶
func (v ExecutionProfile) TotalSize() uint64
TotalSize returns the total size measured through binary.Size.
type IBBSegment ¶
type IBBSegment struct { Reserved [2]byte `require:"0" json:"ibbSegReserved"` Flags uint16 `json:"ibbSegFlags"` Base uint32 `json:"ibbSegBase"` Size uint32 `json:"ibbSegSize"` }
IBBSegment defines a single IBB segment
func NewIBBSegment ¶
func NewIBBSegment() *IBBSegment
NewIBBSegment returns a new instance of IBBSegment with all default values set.
func (*IBBSegment) BaseOffset ¶
func (s *IBBSegment) BaseOffset() uint64
BaseOffset returns the offset in bytes of field Base
func (*IBBSegment) BaseTotalSize ¶
func (s *IBBSegment) BaseTotalSize() uint64
BaseSize returns the size in bytes of the value of field Base
func (*IBBSegment) FlagsOffset ¶
func (s *IBBSegment) FlagsOffset() uint64
FlagsOffset returns the offset in bytes of field Flags
func (*IBBSegment) FlagsTotalSize ¶
func (s *IBBSegment) FlagsTotalSize() uint64
FlagsSize returns the size in bytes of the value of field Flags
func (*IBBSegment) PrettyString ¶
PrettyString returns the content of the structure in an easy-to-read format.
func (*IBBSegment) ReadFrom ¶
func (s *IBBSegment) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads the IBBSegment from 'r' in format defined in the document #575623.
func (*IBBSegment) Rehash ¶
func (s *IBBSegment) Rehash()
Rehash sets values which are calculated automatically depending on the rest data. It is usually about the total size field of an element.
func (*IBBSegment) RehashRecursive ¶
func (s *IBBSegment) RehashRecursive()
RehashRecursive calls Rehash (see below) recursively.
func (*IBBSegment) ReservedOffset ¶
func (s *IBBSegment) ReservedOffset() uint64
ReservedOffset returns the offset in bytes of field Reserved
func (*IBBSegment) ReservedTotalSize ¶
func (s *IBBSegment) ReservedTotalSize() uint64
ReservedSize returns the size in bytes of the value of field Reserved
func (*IBBSegment) SizeOffset ¶
func (s *IBBSegment) SizeOffset() uint64
SizeOffset returns the offset in bytes of field Size
func (*IBBSegment) SizeTotalSize ¶
func (s *IBBSegment) SizeTotalSize() uint64
SizeSize returns the size in bytes of the value of field Size
func (*IBBSegment) TotalSize ¶
func (s *IBBSegment) TotalSize() uint64
Size returns the total size of the IBBSegment.
func (*IBBSegment) Validate ¶
func (s *IBBSegment) Validate() error
Validate (recursively) checks the structure if there are any unexpected values. It returns an error if so.
type Manifest ¶
type Manifest struct { // BPMH is the header of the boot policy manifest // // PrettyString: BPMH: Header BPMH `rehashValue:"rehashedBPMH()" json:"bpmHeader"` SE []SE `json:"bpmSE"` TXTE *TXT `json:"bpmTXTE,omitempty"` Res *Reserved `json:"bpmReserved,omitempty"` // PCDE is the platform configuration data element // // PrettyString: PCDE: Platform Config Data PCDE *PCD `json:"bpmPCDE,omitempty"` // PME is the platform manufacturer element // // PrettyString: PME: Platform Manufacturer PME *PM `json:"bpmPME,omitempty"` // PMSE is the signature element // // PrettyString: PMSE: Signature PMSE Signature `json:"bpmSignature"` }
Manifest is a boot policy manifest
PrettyString: Boot Policy Manifest
func NewManifest ¶
func NewManifest() *Manifest
NewManifest returns a new instance of Manifest with all default values set.
func (*Manifest) BPMHOffset ¶
BPMHOffset returns the offset in bytes of field BPMH
func (*Manifest) BPMHTotalSize ¶
BPMHSize returns the size in bytes of the value of field BPMH
func (*Manifest) IBBDataRanges ¶
IBBDataRanges returns data ranges of IBB.
func (*Manifest) PCDEOffset ¶
PCDEOffset returns the offset in bytes of field PCDE
func (*Manifest) PCDETotalSize ¶
PCDESize returns the size in bytes of the value of field PCDE
func (*Manifest) PMETotalSize ¶
PMESize returns the size in bytes of the value of field PME
func (*Manifest) PMSEOffset ¶
PMSEOffset returns the offset in bytes of field PMSE
func (*Manifest) PMSETotalSize ¶
PMSESize returns the size in bytes of the value of field PMSE
func (*Manifest) PrettyString ¶
PrettyString returns the content of the structure in an easy-to-read format.
func (*Manifest) ReadFrom ¶
ReadFrom reads the Manifest from 'r' in format defined in the document #575623.
func (*Manifest) Rehash ¶
func (s *Manifest) Rehash()
Rehash sets values which are calculated automatically depending on the rest data. It is usually about the total size field of an element.
func (*Manifest) RehashRecursive ¶
func (s *Manifest) RehashRecursive()
RehashRecursive calls Rehash (see below) recursively.
func (*Manifest) ResTotalSize ¶
ResSize returns the size in bytes of the value of field Res
func (*Manifest) SETotalSize ¶
SESize returns the size in bytes of the value of field SE
func (Manifest) StructInfo ¶
func (bpm Manifest) StructInfo() StructInfo
StructInfo is the information about how to parse the structure.
func (*Manifest) TXTEOffset ¶
TXTEOffset returns the offset in bytes of field TXTE
func (*Manifest) TXTETotalSize ¶
TXTESize returns the size in bytes of the value of field TXTE
func (*Manifest) Validate ¶
Validate (recursively) checks the structure if there are any unexpected values. It returns an error if so.
func (*Manifest) ValidateIBB ¶
ValidateIBB returns an error if IBB segments does not match the signature
type MemoryScrubbingPolicy ¶
type MemoryScrubbingPolicy uint8
func (MemoryScrubbingPolicy) PrettyString ¶
func (v MemoryScrubbingPolicy) PrettyString(depth uint, withHeader bool, opts ...pretty.Option) string
PrettyString returns the bits of the flags in an easy-to-read format.
func (MemoryScrubbingPolicy) ReadFrom ¶
func (v MemoryScrubbingPolicy) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads the MemoryScrubbingPolicy from 'r' in binary format.
func (MemoryScrubbingPolicy) String ¶
func (policy MemoryScrubbingPolicy) String() string
String implements fmt.Stringer.
func (MemoryScrubbingPolicy) TotalSize ¶
func (v MemoryScrubbingPolicy) TotalSize() uint64
TotalSize returns the total size measured through binary.Size.
type PBETValue ¶
type PBETValue uint8
PBETValue <TO BE DOCUMENTED>
func (PBETValue) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
func (*PBETValue) SetDuration ¶
SetDuration sets the value using standard time.Duration as the input.
type PCD ¶
type PCD struct { StructInfo `id:"__PCDS__" version:"0x20" var0:"0" var1:"uint16(s.TotalSize())"` Reserved0 [2]byte `json:"pcdReserved0,omitempty"` Data []byte `json:"pcdData"` }
PCD holds various Platform Config Data.
func (*PCD) DataOffset ¶
DataOffset returns the offset in bytes of field Data
func (*PCD) DataTotalSize ¶
DataSize returns the size in bytes of the value of field Data
func (*PCD) GetStructInfo ¶
func (s *PCD) GetStructInfo() manifest.StructInfo
GetStructInfo returns current value of StructInfo of the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*PCD) PrettyString ¶
PrettyString returns the content of the structure in an easy-to-read format.
func (*PCD) ReadDataFrom ¶
ReadDataFrom reads the PCD from 'r' excluding StructInfo, in format defined in the document #575623.
func (*PCD) Rehash ¶
func (s *PCD) Rehash()
Rehash sets values which are calculated automatically depending on the rest data. It is usually about the total size field of an element.
func (*PCD) RehashRecursive ¶
func (s *PCD) RehashRecursive()
RehashRecursive calls Rehash (see below) recursively.
func (*PCD) Reserved0Offset ¶
Reserved0Offset returns the offset in bytes of field Reserved0
func (*PCD) Reserved0TotalSize ¶
Reserved0Size returns the size in bytes of the value of field Reserved0
func (*PCD) SetStructInfo ¶
func (s *PCD) SetStructInfo(newStructInfo manifest.StructInfo)
SetStructInfo sets new value of StructInfo to the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*PCD) StructInfoOffset ¶
StructInfoOffset returns the offset in bytes of field StructInfo
func (*PCD) StructInfoTotalSize ¶
StructInfoSize returns the size in bytes of the value of field StructInfo
type PM ¶
type PM struct { StructInfo `id:"__PMDA__" version:"0x20" var0:"0" var1:"uint16(s.TotalSize())"` Reserved0 [2]byte `require:"0" json:"pcReserved0,omitempty"` Data []byte `json:"pcData"` }
PM is the platform manufacturer data element
func (*PM) DataOffset ¶
DataOffset returns the offset in bytes of field Data
func (*PM) DataTotalSize ¶
DataSize returns the size in bytes of the value of field Data
func (*PM) GetStructInfo ¶
func (s *PM) GetStructInfo() manifest.StructInfo
GetStructInfo returns current value of StructInfo of the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*PM) PrettyString ¶
PrettyString returns the content of the structure in an easy-to-read format.
func (*PM) ReadDataFrom ¶
ReadDataFrom reads the PM from 'r' excluding StructInfo, in format defined in the document #575623.
func (*PM) Rehash ¶
func (s *PM) Rehash()
Rehash sets values which are calculated automatically depending on the rest data. It is usually about the total size field of an element.
func (*PM) RehashRecursive ¶
func (s *PM) RehashRecursive()
RehashRecursive calls Rehash (see below) recursively.
func (*PM) Reserved0Offset ¶
Reserved0Offset returns the offset in bytes of field Reserved0
func (*PM) Reserved0TotalSize ¶
Reserved0Size returns the size in bytes of the value of field Reserved0
func (*PM) SetStructInfo ¶
func (s *PM) SetStructInfo(newStructInfo manifest.StructInfo)
SetStructInfo sets new value of StructInfo to the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*PM) StructInfoOffset ¶
StructInfoOffset returns the offset in bytes of field StructInfo
func (*PM) StructInfoTotalSize ¶
StructInfoSize returns the size in bytes of the value of field StructInfo
type Reserved ¶
type Reserved struct { StructInfo `id:"__PFRS__" version:"0x21" var0:"0" var1:"uint16(s.TotalSize())"` ReservedData [32]byte `json:"ReservedData"` }
Reserved is reducted
func NewReserved ¶
func NewReserved() *Reserved
NewReserved returns a new instance of Reserved with all default values set.
func (*Reserved) GetStructInfo ¶
func (s *Reserved) GetStructInfo() manifest.StructInfo
GetStructInfo returns current value of StructInfo of the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*Reserved) PrettyString ¶
PrettyString returns the content of the structure in an easy-to-read format.
func (*Reserved) ReadDataFrom ¶
ReadDataFrom reads the Reserved from 'r' excluding StructInfo, in format defined in the document #575623.
func (*Reserved) ReadFrom ¶
ReadFrom reads the Reserved from 'r' in format defined in the document #575623.
func (*Reserved) Rehash ¶
func (s *Reserved) Rehash()
Rehash sets values which are calculated automatically depending on the rest data. It is usually about the total size field of an element.
func (*Reserved) RehashRecursive ¶
func (s *Reserved) RehashRecursive()
RehashRecursive calls Rehash (see below) recursively.
func (*Reserved) ReservedDataOffset ¶
ReservedDataOffset returns the offset in bytes of field ReservedData
func (*Reserved) ReservedDataTotalSize ¶
ReservedDataSize returns the size in bytes of the value of field ReservedData
func (*Reserved) SetStructInfo ¶
func (s *Reserved) SetStructInfo(newStructInfo manifest.StructInfo)
SetStructInfo sets new value of StructInfo to the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*Reserved) StructInfoOffset ¶
StructInfoOffset returns the offset in bytes of field StructInfo
func (*Reserved) StructInfoTotalSize ¶
StructInfoSize returns the size in bytes of the value of field StructInfo
type ResetAUXControl ¶
type ResetAUXControl uint8
func (ResetAUXControl) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
func (ResetAUXControl) ReadFrom ¶
func (v ResetAUXControl) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads the ResetAUXControl from 'r' in binary format.
func (ResetAUXControl) String ¶
func (c ResetAUXControl) String() string
String implements fmt.Stringer.
func (ResetAUXControl) TotalSize ¶
func (v ResetAUXControl) TotalSize() uint64
TotalSize returns the total size measured through binary.Size.
type SE ¶
type SE struct { StructInfo `id:"__IBBS__" version:"0x20" var0:"0" var1:"uint16(s.TotalSize())"` Reserved0 [1]byte `require:"0" json:"seReserved0,omitempty"` SetNumber uint8 `require:"0" json:"seSetNumber,omitempty"` Reserved1 [1]byte `require:"0" json:"seReserved1,omitempty"` PBETValue PBETValue `json:"sePBETValue"` Flags SEFlags `json:"seFlags"` // IBBMCHBAR <TO BE DOCUMENTED> // PrettyString: IBB MCHBAR IBBMCHBAR uint64 `json:"seIBBMCHBAR"` // VTdBAR <TO BE DOCUMENTED> // PrettyString: VT-d BAR VTdBAR uint64 `json:"seVTdBAR"` // DMAProtBase0 <TO BE DOCUMENTED> // PrettyString: DMA Protection 0 Base Address DMAProtBase0 uint32 `json:"seDMAProtBase0"` // DMAProtLimit0 <TO BE DOCUMENTED> // PrettyString: DMA Protection 0 Limit Address DMAProtLimit0 uint32 `json:"seDMAProtLimit0"` // DMAProtBase1 <TO BE DOCUMENTED> // PrettyString: DMA Protection 1 Base Address DMAProtBase1 uint64 `json:"seDMAProtBase1"` // DMAProtLimit1 <TO BE DOCUMENTED> // PrettyString: DMA Protection 2 Limit Address DMAProtLimit1 uint64 `json:"seDMAProtLimit1"` PostIBBHash manifest.HashStructure `json:"sePostIBBHash"` IBBEntryPoint uint32 `json:"seIBBEntry"` DigestList manifest.HashList `json:"seDigestList"` OBBHash manifest.HashStructure `json:"seOBBHash"` Reserved2 [3]byte `require:"0" json:"seReserved2,omitempty"` IBBSegments []IBBSegment `countType:"uint8" json:"seIBBSegments,omitempty"` }
SE is an IBB segments element
PrettyString: IBB Segments Element
func (*SE) DMAProtBase0Offset ¶
DMAProtBase0Offset returns the offset in bytes of field DMAProtBase0
func (*SE) DMAProtBase0TotalSize ¶
DMAProtBase0Size returns the size in bytes of the value of field DMAProtBase0
func (*SE) DMAProtBase1Offset ¶
DMAProtBase1Offset returns the offset in bytes of field DMAProtBase1
func (*SE) DMAProtBase1TotalSize ¶
DMAProtBase1Size returns the size in bytes of the value of field DMAProtBase1
func (*SE) DMAProtLimit0Offset ¶
DMAProtLimit0Offset returns the offset in bytes of field DMAProtLimit0
func (*SE) DMAProtLimit0TotalSize ¶
DMAProtLimit0Size returns the size in bytes of the value of field DMAProtLimit0
func (*SE) DMAProtLimit1Offset ¶
DMAProtLimit1Offset returns the offset in bytes of field DMAProtLimit1
func (*SE) DMAProtLimit1TotalSize ¶
DMAProtLimit1Size returns the size in bytes of the value of field DMAProtLimit1
func (*SE) DigestListOffset ¶
DigestListOffset returns the offset in bytes of field DigestList
func (*SE) DigestListTotalSize ¶
DigestListSize returns the size in bytes of the value of field DigestList
func (*SE) FlagsOffset ¶
FlagsOffset returns the offset in bytes of field Flags
func (*SE) FlagsTotalSize ¶
FlagsSize returns the size in bytes of the value of field Flags
func (*SE) GetStructInfo ¶
func (s *SE) GetStructInfo() manifest.StructInfo
GetStructInfo returns current value of StructInfo of the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*SE) IBBEntryPointOffset ¶
IBBEntryPointOffset returns the offset in bytes of field IBBEntryPoint
func (*SE) IBBEntryPointTotalSize ¶
IBBEntryPointSize returns the size in bytes of the value of field IBBEntryPoint
func (*SE) IBBMCHBAROffset ¶
IBBMCHBAROffset returns the offset in bytes of field IBBMCHBAR
func (*SE) IBBMCHBARTotalSize ¶
IBBMCHBARSize returns the size in bytes of the value of field IBBMCHBAR
func (*SE) IBBSegmentsOffset ¶
IBBSegmentsOffset returns the offset in bytes of field IBBSegments
func (*SE) IBBSegmentsTotalSize ¶
IBBSegmentsSize returns the size in bytes of the value of field IBBSegments
func (*SE) OBBHashOffset ¶
OBBHashOffset returns the offset in bytes of field OBBHash
func (*SE) OBBHashTotalSize ¶
OBBHashSize returns the size in bytes of the value of field OBBHash
func (*SE) PBETValueOffset ¶
PBETValueOffset returns the offset in bytes of field PBETValue
func (*SE) PBETValueTotalSize ¶
PBETValueSize returns the size in bytes of the value of field PBETValue
func (*SE) PostIBBHashOffset ¶
PostIBBHashOffset returns the offset in bytes of field PostIBBHash
func (*SE) PostIBBHashTotalSize ¶
PostIBBHashSize returns the size in bytes of the value of field PostIBBHash
func (*SE) PrettyString ¶
PrettyString returns the content of the structure in an easy-to-read format.
func (*SE) ReadDataFrom ¶
ReadDataFrom reads the SE from 'r' excluding StructInfo, in format defined in the document #575623.
func (*SE) Rehash ¶
func (s *SE) Rehash()
Rehash sets values which are calculated automatically depending on the rest data. It is usually about the total size field of an element.
func (*SE) RehashRecursive ¶
func (s *SE) RehashRecursive()
RehashRecursive calls Rehash (see below) recursively.
func (*SE) Reserved0Offset ¶
Reserved0Offset returns the offset in bytes of field Reserved0
func (*SE) Reserved0TotalSize ¶
Reserved0Size returns the size in bytes of the value of field Reserved0
func (*SE) Reserved1Offset ¶
Reserved1Offset returns the offset in bytes of field Reserved1
func (*SE) Reserved1TotalSize ¶
Reserved1Size returns the size in bytes of the value of field Reserved1
func (*SE) Reserved2Offset ¶
Reserved2Offset returns the offset in bytes of field Reserved2
func (*SE) Reserved2TotalSize ¶
Reserved2Size returns the size in bytes of the value of field Reserved2
func (*SE) SetNumberOffset ¶
SetNumberOffset returns the offset in bytes of field SetNumber
func (*SE) SetNumberTotalSize ¶
SetNumberSize returns the size in bytes of the value of field SetNumber
func (*SE) SetStructInfo ¶
func (s *SE) SetStructInfo(newStructInfo manifest.StructInfo)
SetStructInfo sets new value of StructInfo to the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*SE) StructInfoOffset ¶
StructInfoOffset returns the offset in bytes of field StructInfo
func (*SE) StructInfoTotalSize ¶
StructInfoSize returns the size in bytes of the value of field StructInfo
func (*SE) VTdBAROffset ¶
VTdBAROffset returns the offset in bytes of field VTdBAR
func (*SE) VTdBARTotalSize ¶
VTdBARSize returns the size in bytes of the value of field VTdBAR
type SEFlags ¶
type SEFlags uint32
SEFlags <TO BE DOCUMENTED>
func (SEFlags) AuthorityMeasure ¶
AuthorityMeasure <TO BE DOCUMENTED>
PrettyString-true: Extend Authority Measurements into the Authority PCR 7 PrettyString-false: Do not extend into the Authority PCR 7
func (SEFlags) DMAProtection ¶
DMAProtection <TO BE DOCUMENTED>
PrettyString-true: Enable DMA Protection PrettyString-false: Disable DMA Protection
func (SEFlags) Locality3Startup ¶
Locality3Startup <TO BE DOCUMENTED>
PrettyString-true: Issue TPM Start-up from Locality 3 PrettyString-false: Disabled
func (SEFlags) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
func (SEFlags) SupportsTopSwapRemediation ¶
SupportsTopSwapRemediation <TO BE DOCUMENTED>
PrettyString-true: BIOS supports Top Swap remediation action PrettyString-false: BIOS does not support Top Swap remediation action
func (SEFlags) TPMFailureLeavesHierarchiesEnabled ¶
TPMFailureLeavesHierarchiesEnabled <TO BE DOCUMENTED>
PrettyString-true: Leave Hierarchies enabled. Cap all PCRs on failure. PrettyString-false: Do not leave enabled. Disable all Hierarchies or deactivate on failure.
type Signature ¶
type Signature struct { StructInfo `id:"__PMSG__" version:"0x20" var0:"0" var1:"0"` manifest.KeySignature `json:"sigKeySignature"` }
Signature contains the signature of the BPM.
func NewSignature ¶
func NewSignature() *Signature
NewSignature returns a new instance of Signature with all default values set.
func (*Signature) GetStructInfo ¶
func (s *Signature) GetStructInfo() manifest.StructInfo
GetStructInfo returns current value of StructInfo of the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*Signature) KeySignatureOffset ¶
KeySignatureOffset returns the offset in bytes of field KeySignature
func (*Signature) KeySignatureTotalSize ¶
KeySignatureSize returns the size in bytes of the value of field KeySignature
func (*Signature) PrettyString ¶
PrettyString returns the content of the structure in an easy-to-read format.
func (*Signature) ReadDataFrom ¶
ReadDataFrom reads the Signature from 'r' excluding StructInfo, in format defined in the document #575623.
func (*Signature) ReadFrom ¶
ReadFrom reads the Signature from 'r' in format defined in the document #575623.
func (*Signature) Rehash ¶
func (s *Signature) Rehash()
Rehash sets values which are calculated automatically depending on the rest data. It is usually about the total size field of an element.
func (*Signature) RehashRecursive ¶
func (s *Signature) RehashRecursive()
RehashRecursive calls Rehash (see below) recursively.
func (*Signature) SetStructInfo ¶
func (s *Signature) SetStructInfo(newStructInfo manifest.StructInfo)
SetStructInfo sets new value of StructInfo to the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*Signature) StructInfoOffset ¶
StructInfoOffset returns the offset in bytes of field StructInfo
func (*Signature) StructInfoTotalSize ¶
StructInfoSize returns the size in bytes of the value of field StructInfo
type Size4K ¶
type Size4K uint16
Size4K is a size in units of 4096 bytes.
func (Size4K) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
type StructInfo ¶
type StructInfo = manifest.StructInfo
StructInfo is the common header of any element.
type TXT ¶
type TXT struct { StructInfo `id:"__TXTS__" version:"0x21" var0:"0" var1:"uint16(s.TotalSize())"` Reserved0 [1]byte `require:"0" json:"txtReserved0,omitempty"` SetNumber [1]byte `require:"0" json:"txtSetNumer,omitempty"` SInitMinSVNAuth uint8 `default:"0" json:"txtSVN"` Reserved1 [1]byte `require:"0" json:"txtReserved1,omitempty"` ControlFlags TXTControlFlags `json:"txtFlags"` PwrDownInterval Duration16In5Sec `json:"txtPwrDownInterval"` // PrettyString: PTT CMOS Offset 0 PTTCMOSOffset0 uint8 `default:"126" json:"txtPTTCMOSOffset0"` // PrettyString: PTT CMOS Offset 1 PTTCMOSOffset1 uint8 `default:"127" json:"txtPTTCMOSOffset1"` ACPIBaseOffset uint16 `default:"0x400" json:"txtACPIBaseOffset,omitempty"` Reserved2 [2]byte `json:"txtReserved2,omitempty"` // PrettyString: ACPI MMIO Offset PwrMBaseOffset uint32 `default:"0xFE000000" json:"txtPwrMBaseOffset,omitempty"` DigestList manifest.HashList `json:"txtDigestList"` Reserved3 [3]byte `require:"0" json:"txtReserved3,omitempty"` SegmentCount uint8 `require:"0" json:"txtSegmentCount,omitempty"` }
TXT is the TXT element
func (*TXT) ACPIBaseOffsetOffset ¶
ACPIBaseOffsetOffset returns the offset in bytes of field ACPIBaseOffset
func (*TXT) ACPIBaseOffsetTotalSize ¶
ACPIBaseOffsetSize returns the size in bytes of the value of field ACPIBaseOffset
func (*TXT) ControlFlagsOffset ¶
ControlFlagsOffset returns the offset in bytes of field ControlFlags
func (*TXT) ControlFlagsTotalSize ¶
ControlFlagsSize returns the size in bytes of the value of field ControlFlags
func (*TXT) DigestListOffset ¶
DigestListOffset returns the offset in bytes of field DigestList
func (*TXT) DigestListTotalSize ¶
DigestListSize returns the size in bytes of the value of field DigestList
func (*TXT) GetStructInfo ¶
func (s *TXT) GetStructInfo() manifest.StructInfo
GetStructInfo returns current value of StructInfo of the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*TXT) PTTCMOSOffset0Offset ¶
PTTCMOSOffset0Offset returns the offset in bytes of field PTTCMOSOffset0
func (*TXT) PTTCMOSOffset0TotalSize ¶
PTTCMOSOffset0Size returns the size in bytes of the value of field PTTCMOSOffset0
func (*TXT) PTTCMOSOffset1Offset ¶
PTTCMOSOffset1Offset returns the offset in bytes of field PTTCMOSOffset1
func (*TXT) PTTCMOSOffset1TotalSize ¶
PTTCMOSOffset1Size returns the size in bytes of the value of field PTTCMOSOffset1
func (*TXT) PrettyString ¶
PrettyString returns the content of the structure in an easy-to-read format.
func (*TXT) PwrDownIntervalOffset ¶
PwrDownIntervalOffset returns the offset in bytes of field PwrDownInterval
func (*TXT) PwrDownIntervalTotalSize ¶
PwrDownIntervalSize returns the size in bytes of the value of field PwrDownInterval
func (*TXT) PwrMBaseOffsetOffset ¶
PwrMBaseOffsetOffset returns the offset in bytes of field PwrMBaseOffset
func (*TXT) PwrMBaseOffsetTotalSize ¶
PwrMBaseOffsetSize returns the size in bytes of the value of field PwrMBaseOffset
func (*TXT) ReadDataFrom ¶
ReadDataFrom reads the TXT from 'r' excluding StructInfo, in format defined in the document #575623.
func (*TXT) Rehash ¶
func (s *TXT) Rehash()
Rehash sets values which are calculated automatically depending on the rest data. It is usually about the total size field of an element.
func (*TXT) RehashRecursive ¶
func (s *TXT) RehashRecursive()
RehashRecursive calls Rehash (see below) recursively.
func (*TXT) Reserved0Offset ¶
Reserved0Offset returns the offset in bytes of field Reserved0
func (*TXT) Reserved0TotalSize ¶
Reserved0Size returns the size in bytes of the value of field Reserved0
func (*TXT) Reserved1Offset ¶
Reserved1Offset returns the offset in bytes of field Reserved1
func (*TXT) Reserved1TotalSize ¶
Reserved1Size returns the size in bytes of the value of field Reserved1
func (*TXT) Reserved2Offset ¶
Reserved2Offset returns the offset in bytes of field Reserved2
func (*TXT) Reserved2TotalSize ¶
Reserved2Size returns the size in bytes of the value of field Reserved2
func (*TXT) Reserved3Offset ¶
Reserved3Offset returns the offset in bytes of field Reserved3
func (*TXT) Reserved3TotalSize ¶
Reserved3Size returns the size in bytes of the value of field Reserved3
func (*TXT) SInitMinSVNAuthOffset ¶
SInitMinSVNAuthOffset returns the offset in bytes of field SInitMinSVNAuth
func (*TXT) SInitMinSVNAuthTotalSize ¶
SInitMinSVNAuthSize returns the size in bytes of the value of field SInitMinSVNAuth
func (*TXT) SegmentCountOffset ¶
SegmentCountOffset returns the offset in bytes of field SegmentCount
func (*TXT) SegmentCountTotalSize ¶
SegmentCountSize returns the size in bytes of the value of field SegmentCount
func (*TXT) SetNumberOffset ¶
SetNumberOffset returns the offset in bytes of field SetNumber
func (*TXT) SetNumberTotalSize ¶
SetNumberSize returns the size in bytes of the value of field SetNumber
func (*TXT) SetStructInfo ¶
func (s *TXT) SetStructInfo(newStructInfo manifest.StructInfo)
SetStructInfo sets new value of StructInfo to the structure.
StructInfo is a set of standard fields with presented in any element ("element" in terms of document #575623).
func (*TXT) StructInfoOffset ¶
StructInfoOffset returns the offset in bytes of field StructInfo
func (*TXT) StructInfoTotalSize ¶
StructInfoSize returns the size in bytes of the value of field StructInfo
type TXTControlFlags ¶
type TXTControlFlags uint32
func (TXTControlFlags) BackupActionPolicy ¶
func (flags TXTControlFlags) BackupActionPolicy() BackupActionPolicy
func (TXTControlFlags) ExecutionProfile ¶
func (flags TXTControlFlags) ExecutionProfile() ExecutionProfile
func (TXTControlFlags) IsSACMRequestedToExtendStaticPCRs ¶
func (flags TXTControlFlags) IsSACMRequestedToExtendStaticPCRs() bool
PrettyString-true: Default setting. S-ACM is requested to extend static PCRs PrettyString-false: S-ACM is not requested to extend static PCRs
func (TXTControlFlags) MemoryScrubbingPolicy ¶
func (flags TXTControlFlags) MemoryScrubbingPolicy() MemoryScrubbingPolicy
func (TXTControlFlags) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
func (TXTControlFlags) ReadFrom ¶
func (v TXTControlFlags) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads the TXTControlFlags from 'r' in binary format.
func (TXTControlFlags) ResetAUXControl ¶
func (flags TXTControlFlags) ResetAUXControl() ResetAUXControl
func (TXTControlFlags) TotalSize ¶
func (v TXTControlFlags) TotalSize() uint64
TotalSize returns the total size measured through binary.Size.
Source Files
¶
- Reserved.go
- Reserved_manifestcodegen.go
- bpmh.go
- bpmh_manifestcodegen.go
- manifest.go
- manifest_manifestcodegen.go
- manifest_nocodegen.go
- pcd.go
- pcd_manifestcodegen.go
- pm.go
- pm_manifestcodegen.go
- se.go
- se_manifestcodegen.go
- signature.go
- signature_manifestcodegen.go
- txt.go
- txt_control_flags.go
- txt_control_flags_manifestcodegen.go
- txt_manifestcodegen.go