Documentation
¶
Index ¶
- Constants
- type 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
- 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) 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) SEOffset() uint64
- func (s *Manifest) SETotalSize() uint64
- func (bpm Manifest) StructInfo() StructInfo
- 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 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 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
- 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
- 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() 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
- type StructInfo
Constants ¶
const ( CachingTypeWriteProtect = CachingType(iota) CachingTypeWriteBack CachingTypeReserved0 CachingTypeReserved1 )
const StructureIDBPMH = "__ACBP__"
StructureIDBPMH is the StructureID (in terms of the document #575623) of element 'BPMH'.
const StructureIDPM = "__PMDA__"
StructureIDPM is the StructureID (in terms of the document #575623) of element 'PM'.
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'.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BPMH ¶
type BPMH struct { StructInfo `id:"__ACBP__" version:"0x10"` HdrStructVersion uint8 `json:"HdrStructVersion"` PMBPMVersion uint8 `json:"bpmhRevision"` // PrettyString: BPM SVN BPMSVN bg.SVN `json:"bpmhSNV"` // PrettyString: ACM SVN Auth ACMSVNAuth bg.SVN `json:"bpmhACMSVN"` Reserved0 [1]byte `require:"0" json:"bpmhReserved0,omitempty"` NEMDataStack Size4K `json:"bpmhNEMStackSize"` }
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) 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() bg.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) HdrStructVersionOffset ¶
HdrStructVersionOffset returns the offset in bytes of field HdrStructVersion
func (*BPMH) HdrStructVersionTotalSize ¶
HdrStructVersionSize returns the size in bytes of the value of field HdrStructVersion
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) PMBPMVersionOffset ¶
PMBPMVersionOffset returns the offset in bytes of field PMBPMVersion
func (*BPMH) PMBPMVersionTotalSize ¶
PMBPMVersionSize returns the size in bytes of the value of field PMBPMVersion
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 bg.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 CachingType ¶
type CachingType uint8
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 IBBSegment ¶
type IBBSegment struct { Reserved [2]byte `require:"0" json:"ibbSegReserved"` Flags uint16 `json:"ibbSegFlags"` Base uint32 `json:"ibbSegBase"` Size uint32 `json:"ibbSegSize"` }
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 { // PrettyString: BPMH: Header BPMH `rehashValue:"rehashedBPMH()" json:"bpmHeader"` // PrettyString: SE: Header SE []SE `json:"bpmSE"` // PrettyString: PME: Platform Manufacturer PME *PM `json:"bpmPME,omitempty"` // PrettyString: PMSE: Signature PMSE Signature `json:"bpmSignature"` }
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) 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) 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) 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 PBETValue ¶
type PBETValue uint8
func (PBETValue) PrettyString ¶
PrettyString returns the bits of the flags in an easy-to-read format.
func (*PBETValue) SetDuration ¶
type PM ¶
type PM struct { StructInfo `id:"__PMDA__" version:"0x10"` DataSize uint16 `json:"pcDataSize"` Data []byte `json:"pcData"` }
func (*PM) DataOffset ¶
DataOffset returns the offset in bytes of field Data
func (*PM) DataSizeOffset ¶
DataSizeOffset returns the offset in bytes of field DataSize
func (*PM) DataSizeTotalSize ¶
DataSizeSize returns the size in bytes of the value of field DataSize
func (*PM) DataTotalSize ¶
DataSize returns the size in bytes of the value of field Data
func (*PM) GetStructInfo ¶
func (s *PM) GetStructInfo() bg.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) SetStructInfo ¶
func (s *PM) SetStructInfo(newStructInfo bg.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 SE ¶
type SE struct { StructInfo `id:"__IBBS__" version:"0x10"` Reserved0 [1]byte `require:"0" json:"seReserved0,omitempty"` Reserved1 [1]byte `require:"0" json:"seReserved1,omitempty"` PBETValue PBETValue `json:"sePBETValue"` Flags SEFlags `json:"seFlags"` // PrettyString: IBB MCHBAR IBBMCHBAR uint64 `json:"seIBBMCHBAR"` // PrettyString: VT-d BAR VTdBAR uint64 `json:"seVTdBAR"` // PrettyString: DMA Protection 0 Base Address PMRLBase uint32 `json:"seDMAProtBase0"` // PrettyString: DMA Protection 0 Limit Address PMRLLimit uint32 `json:"seDMAProtLimit0"` // PrettyString: DMA Protection 1 Base Address Reserved2 [8]byte `json:"seDMAProtBase1"` // PrettyString: DMA Protection 2 Limit Address Reserved3 [8]byte `json:"seDMAProtLimit1"` PostIBBHash bg.HashStructureFill `json:"sePostIBBHash"` IBBEntryPoint uint32 `json:"seIBBEntry"` Digest bg.HashStructure `json:"seDigestList"` IBBSegments []IBBSegment `countType:"uint8" json:"seIBBSegments,omitempty"` }
PrettyString: IBB Segments Element
func (*SE) DigestOffset ¶
DigestOffset returns the offset in bytes of field Digest
func (*SE) DigestTotalSize ¶
DigestSize returns the size in bytes of the value of field Digest
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() bg.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) 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) PMRLBaseOffset ¶
PMRLBaseOffset returns the offset in bytes of field PMRLBase
func (*SE) PMRLBaseTotalSize ¶
PMRLBaseSize returns the size in bytes of the value of field PMRLBase
func (*SE) PMRLLimitOffset ¶
PMRLLimitOffset returns the offset in bytes of field PMRLLimit
func (*SE) PMRLLimitTotalSize ¶
PMRLLimitSize returns the size in bytes of the value of field PMRLLimit
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) Reserved3Offset ¶
Reserved3Offset returns the offset in bytes of field Reserved3
func (*SE) Reserved3TotalSize ¶
Reserved3Size returns the size in bytes of the value of field Reserved3
func (*SE) SetStructInfo ¶
func (s *SE) SetStructInfo(newStructInfo bg.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
func (SEFlags) AuthorityMeasure ¶
PrettyString-true: Extend Authority Measurements into the Authority PCR 7 PrettyString-false: Do not extend into the Authority PCR 7
func (SEFlags) DMAProtection ¶
PrettyString-true: Enable DMA Protection PrettyString-false: Disable DMA Protection
func (SEFlags) Locality3Startup ¶
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 ¶
PrettyString-true: BIOS supports Top Swap remediation action PrettyString-false: BIOS does not support Top Swap remediation action
func (SEFlags) TPMFailureLeavesHierarchiesEnabled ¶
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:"0x10"` bg.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() bg.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 bg.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.