Versions in this module Expand all Collapse all v1 v1.0.0 Jul 29, 2019 Changes in this version + const ACMChipsetTypeBios + const ACMChipsetTypeBiosRevoc + const ACMChipsetTypeSinit + const ACMChipsetTypeSinitRevoc + const ACMSizeOffset + const ACMSubTypeReset + const ACMTypeChipset + const ACMUUIDV3 + const ACMVendorIntel + const FourGiB + const LCPDataFileSignature + const LCPMaxLists + const LCPPolHAlgSHA1 + const LCPPolicyElementCustom + const LCPPolicyElementMLE + const LCPPolicyElementMLE2 + const LCPPolicyElementPCONF + const LCPPolicyElementPCONF2 + const LCPPolicyElementSBIOS + const LCPPolicyElementSBIOS2 + const LCPPolicyElementSTM2 + const LCPSignatureAlgNone + const LCPSignatureAlgRSAPKCS15 + const SHA1DigestSize + const SHA256DigestSize + const SHA384DigestSize + const SHA512DigestSize + const SM3DigestSize + const TPMAlgoECDSA + const TPMAlgoNULL + const TPMAlgoRSASSA + const TPMAlgoSHA1 + const TPMAlgoSHA256 + const TPMAlgoSHA384 + const TPMAlgoSHA512 + const TPMAlgoSM2 + const TPMAlgoSM3_256 + const TPMExtPolicyAlgAgile + const TPMExtPolicyBoth + const TPMExtPolicyEmbeddedAlgs + const TPMExtPolicyIllegal + const TPMFamilyDTPM12 + const TPMFamilyDTPM20 + const TPMFamilyDTPMBoth + const TPMFamilyIllegal + const TPMFamilyPTT20 + func AddressRangesIsDMAProtected(first, end uint64) (bool, error) + func AllowsVMXInSMX() (bool, error) + func ArchitectureTXTSupport() (bool, error) + func CPUSignature() uint32 + func GetFitPointer(data []byte) (uint64, error) + func HasMTRR() bool + func HasSMRR() (bool, error) + func HasSMX() bool + func HasVMX() bool + func IA32FeatureControlIsLocked() (bool, error) + func IA32PlatformID() (uint64, error) + func IsReservedInE810(start uint64, end uint64) (bool, error) + func LookupIOAddress(addr uint64, regs VTdRegisters) ([]uint64, error) + func LookupSize(header []byte) (int64, error) + func NVReadAll(conn io.ReadWriteCloser, index uint32) []byte + func ParseACM(data []byte) (*ACM, *Chipsets, *Processors, *TPMs, error) + func ProcessorBrandName() string + func ReadPhys(addr int64, data UintN) error + func ReadPhysBuf(addr int64, buf []byte) error + func TXTLeavesAreEnabled() (bool, error) + func VersionString() string + func WritePhys(addr int64, data UintN) error + type ACM struct + ChipsetID uint16 + CodeControl uint32 + Date uint32 + EntryPoint uint32 + ErrorEntryPoint uint32 + Flags uint16 + GDTBase uint32 + GDTLimit uint32 + HeaderLen uint32 + HeaderVersion uint32 + Info ACMInfo + KeySize uint32 + ModuleSubType uint16 + ModuleType uint16 + ModuleVendor uint32 + PubExp uint32 + PubKey [256]uint8 + Reserved2 [64]uint8 + Scratch [143]uint32 + ScratchSize uint32 + SeSVN uint16 + SegSel uint32 + Signatur [256]uint8 + Size uint32 + TxtSVN uint16 + func (a *ACM) PrettyPrint() + type ACMInfo struct + ACMVersion uint8 + ChipsetACMType uint8 + ChipsetIDList uint32 + Length uint16 + MinMleHeaderVersion uint32 + OSSinitDataVersion uint32 + ProcessorIDList uint32 + Reserved [3]uint8 + TPMInfoList uint32 + TxtCaps uint32 + Uuid UUID + Version uint8 + type ACMStatus struct + ACMStarted bool + ClassCode uint8 + MajorErrorCode uint8 + MinorErrorCode uint16 + ModuleType uint8 + Valid bool + func ReadACMStatus() (ACMStatus, error) + type ChipsetID struct + DeviceID uint16 + ExtendedID uint16 + Flags uint32 + Reserved uint16 + RevisionID uint16 + VendorID uint16 + type Chipsets struct + Count uint32 + IDList []ChipsetID + func (c *Chipsets) PrettyPrint() + type DMAProtectedRange struct + Lock bool + Size uint8 + Top uint16 + type FitEntry struct + Address uint64 + CVType uint8 + CheckSum uint8 + OrigSize [3]uint8 + Version uint16 + func ExtractFit(data []byte) ([]FitEntry, error) + func GetFitHeader(data []byte) (FitEntry, error) + func (entry *FitEntry) Size() uint32 + func (fit *FitEntry) CheckSumValid() bool + func (fit *FitEntry) FancyPrint() + func (fit *FitEntry) Type() FitEntryType + type FitEntryType uint16 + const BIOSPolicyRec + const BIOSStartUpMod + const BootPolicyManifest + const CSESecBoot + const FeaturePolicyDelRec + const FitHeader + const JumpDebugPol + const KeyManifestRec + const MCUpdate + const StartUpACMod + const TPMPolicyRec + const TXTPolicyRec + const UnusedEntry + type LCPHash struct + func (p *LCPHash) PrettyPrint() string + type LCPList struct + TPM12PolicyList LCPPolicyList + type LCPPolicy struct + DataRevocationCounters [LCPMaxLists]uint16 + HashAlg uint8 + MaxBIOSACMinVersion uint8 + MaxSINITMinVersion uint8 + PolicyControl uint32 + PolicyHash [20]byte + PolicyType uint8 + Reserved1 uint8 + Reserved2 uint16 + Reserved3 uint32 + SINITMinVersion uint8 + Version uint16 + func ParsePolicy(policy []byte) (*LCPPolicy, error) + func (p *LCPPolicy) PrettyPrint() + type LCPPolicyCustom struct + Data []byte + UUID LCPUUID + type LCPPolicyData struct + FileSignature [32]uint8 + NumLists uint8 + PolicyLists []LCPList + Reserved [3]uint8 + func ParsePolicyData(policyData []byte) (*LCPPolicyData, error) + func (pd *LCPPolicyData) PrettyPrint() + type LCPPolicyElement struct + Custom *LCPPolicyCustom + MLE *LCPPolicyMLE + PCONF *LCPPolicyPCONF + PolicyEltControl uint32 + SBIOS *LCPPolicySBIOS + Size uint32 + Type uint32 + type LCPPolicyList struct + PolicyElementSize uint32 + PolicyElements []LCPPolicyElement + Reserved uint8 + SignaturAlg uint8 + Signature *LCPSignature + Version uint16 + type LCPPolicyList2 struct + PolicyElementSize uint32 + PolicyElements []LCPPolicyElement + SignaturAlg uint16 + Version uint16 + type LCPPolicyMLE struct + HashAlg uint8 + Hashes [][20]byte + NumHashes uint16 + SINITMinVersion uint8 + type LCPPolicyPCONF struct + NumPCRInfos uint16 + PCRInfos []TPMPCRInfoShort + type LCPPolicySBIOS struct + FallbackHash LCPHash + HashAlg uint8 + Hashes []LCPHash + NumHashes uint16 + Reserved1 [3]uint8 + Reserved2 uint16 + type LCPSignature struct + PubkeySize uint16 + PubkeyValue []byte + RevocationCounter uint16 + SigBlock []byte + type LCPUUID struct + type ProcessorID struct + FMS uint32 + FMSMask uint32 + PlatformID uint64 + PlatformMask uint64 + type Processors struct + Count uint32 + IDList []ProcessorID + func (p *Processors) PrettyPrint() + type SMRR struct + Active bool + PhysBase uint64 + PhysMask uint64 + func GetSMRRInfo() (SMRR, error) + type TPMPCRInfoShort struct + DigestAtRelease [20]byte + LocalityAtRelease uint8 + PCRSelect []int + type TPMs struct + AlgID []uint16 + Capabilities uint32 + Count uint16 + func (t *TPMs) PrettyPrint() + type TXTBiosData struct + BiosSinitSize uint32 + MleFlags *TXTBiosMLEFlags + NumLogProcs uint32 + Reserved1 uint64 + Reserved2 uint64 + SinitFlags *uint32 + Version uint32 + func ParseBIOSDataRegion(heap []byte) (TXTBiosData, error) + type TXTBiosMLEFlags struct + IsClientState bool + IsLegacyState bool + IsServerState bool + SupportsACPIPPI bool + type TXTErrorCode struct + ClassCode uint8 + MajorErrorCode uint8 + MinorErrorCode uint16 + ModuleType uint8 + ProcessorSoftware bool + SoftwareSource bool + Type1Reserved uint8 + ValidInvalid bool + type TXTRegisterSpace struct + AcmStatus uint64 + Did uint16 + Dpr DMAProtectedRange + E2Sts uint64 + ErrorCode TXTErrorCode + ErrorCodeRaw uint32 + FsbIf uint32 + HeapBase uint32 + HeapSize uint32 + IdExt uint16 + MleJoin uint32 + PublicKey [4]uint64 + QpiIf uint32 + Rid uint16 + SinitBase uint32 + SinitSize uint32 + Sts TXTStatus + TxtReset bool + Vid uint16 + func ReadTXTRegs() (TXTRegisterSpace, error) + type TXTStatus struct + Locality1Open bool + Locality2Open bool + MemConfigLock bool + PrivateOpen bool + SenterDone bool + SexitDone bool + type UUID struct + Field1 uint32 + Field2 uint16 + Field3 uint16 + Field4 uint16 + Field5 [6]uint8 + type Uint16 uint16 + func (u *Uint16) Size() int64 + func (u *Uint16) String() string + type Uint32 uint32 + func (u *Uint32) Size() int64 + func (u *Uint32) String() string + type Uint64 uint64 + func (u *Uint64) Size() int64 + func (u *Uint64) String() string + type Uint8 uint8 + func (u *Uint8) Size() int64 + func (u *Uint8) String() string + type UintN interface + Size func() int64 + String func() string + type VTdRegisters struct + AdvancedFaultLog uint64 + Capabilities uint64 + ContextCommand uint64 + ExtendedCapabilities uint64 + FaultEventAddress uint32 + FaultEventControl uint32 + FaultEventData uint32 + FaultEventUpperAddress uint32 + FaultStatus uint32 + FixedRangeMTRR16K_80000 uint64 + FixedRangeMTRR16K_A0000 uint64 + FixedRangeMTRR4K_C0000 uint64 + FixedRangeMTRR4K_C8000 uint64 + FixedRangeMTRR4K_D0000 uint64 + FixedRangeMTRR4K_D8000 uint64 + FixedRangeMTRR4K_E0000 uint64 + FixedRangeMTRR4K_E8000 uint64 + FixedRangeMTRR4K_F0000 uint64 + FixedRangeMTRR4K_F8000 uint64 + FixedRangeMTRR64K_00000 uint64 + GlobalCommand uint32 + GlobalStatus uint32 + InterruptRemappingTableAddress uint64 + InvalidationCompletionEventAddress uint32 + InvalidationCompletionEventControl uint32 + InvalidationCompletionEventData uint32 + InvalidationCompletionEventUpperAddress uint32 + InvalidationCompletionStatus uint32 + InvalidationQueueAddress uint64 + InvalidationQueueHead uint64 + InvalidationQueueTail uint64 + MTRRCapability uint64 + MTRRDefaultType uint64 + PageRequestEventAddress uint32 + PageRequestEventControl uint32 + PageRequestEventData uint32 + PageRequestEventUpperAddress uint32 + PageRequestQueueAddress uint64 + PageRequestQueueHead uint64 + PageRequestQueueTail uint64 + PageRequestStatus uint32 + ProtectedHighMemoryBase uint64 + ProtectedHighMemoryLimit uint64 + ProtectedLowMemoryBase uint32 + ProtectedLowMemoryLimit uint32 + ProtectedMemoryEnable uint32 + Reserved1 uint32 + Reserved10 uint64 + Reserved11 uint64 + Reserved12 uint64 + Reserved2 uint32 + Reserved3 uint64 + Reserved4 uint64 + Reserved5 uint32 + Reserved6 uint32 + Reserved7 uint64 + Reserved8 uint32 + RootTableAddress uint64 + VariableRangeMTRRBase0 uint64 + VariableRangeMTRRBase1 uint64 + VariableRangeMTRRBase2 uint64 + VariableRangeMTRRBase3 uint64 + VariableRangeMTRRBase4 uint64 + VariableRangeMTRRBase5 uint64 + VariableRangeMTRRBase6 uint64 + VariableRangeMTRRBase7 uint64 + VariableRangeMTRRBase8 uint64 + VariableRangeMTRRBase9 uint64 + VariableRangeMTRRMask0 uint64 + VariableRangeMTRRMask1 uint64 + VariableRangeMTRRMask2 uint64 + VariableRangeMTRRMask3 uint64 + VariableRangeMTRRMask4 uint64 + VariableRangeMTRRMask5 uint64 + VariableRangeMTRRMask6 uint64 + VariableRangeMTRRMask7 uint64 + VariableRangeMTRRMask8 uint64 + VariableRangeMTRRMask9 uint64 + Version uint32 + VirtualCommand uint64 + VirtualCommandCapability uint64 + VirtualCommandResponse uint64