Documentation ¶
Index ¶
- Constants
- Variables
- func ConnectTPM(tpmPath string) error
- func FITVectorIsSet() (bool, error)
- func IBBCoversFIT() (bool, error)
- func IBBCoversFITVector() (bool, error)
- func Test01CheckForIntelCPU() (bool, error)
- func Test02WeybridgeOrLater() (bool, error)
- func Test03CPUSupportsTXT() (bool, error)
- func Test04ChipsetSupportsTXT() (bool, error)
- func Test05TXTRegisterSpaceAccessible() (bool, error)
- func Test06SupportsSMX() (bool, error)
- func Test07SupportVMX() (bool, error)
- func Test08Ia32FeatureCtrl() (bool, error)
- func Test09SMXIsEnabled() (bool, error)
- func Test10HasGetSecLeaves() (bool, error)
- func Test11TXTNotDisabled() (bool, error)
- func Test12IBBMeasured() (bool, error)
- func Test13IBBIsTrusted() (bool, error)
- func Test14TXTRegistersLocked() (bool, error)
- func Test15NoBIOSACMErrors() (bool, error)
- func Test16TPMPresent() (bool, error)
- func Test17TPMIsLocked() (bool, error)
- func Test18PSIndexIsSet() (bool, error)
- func Test19AUXIndexIsSet() (bool, error)
- func Test20LCPPolicyIsValid() (bool, error)
- func Test21PCR0IsSet() (bool, error)
- func Test22HasFIT() (bool, error)
- func Test23HasBIOSACM() (bool, error)
- func Test24HasIBB() (bool, error)
- func Test25HasBIOSPolicy() (bool, error)
- func Test26IBBCoversResetVector() (bool, error)
- func Test27NoIBBOverlap() (bool, error)
- func Test28NoBIOSACMOverlap() (bool, error)
- func Test29BIOSACMIsBelow4G() (bool, error)
- func Test30PolicyAllowsTXT() (bool, error)
- func Test31BIOSACMValid() (bool, error)
- func Test32BIOSACMSizeCorrect() (bool, error)
- func Test33BIOSACMAlignmentCorrect() (bool, error)
- func Test34BIOSACMMatchesChipset() (bool, error)
- func Test35BIOSACMMatchesCPU() (bool, error)
- func Test36TXTReservedInE820() (bool, error)
- func Test37TXTMemoryIsDPR() (bool, error)
- func Test38HostbridgeDPRCorrect() (bool, error)
- func Test39SINITInTXT() (bool, error)
- func Test40SINITMatchesChipset() (bool, error)
- func Test41SINITMatchesCPU() (bool, error)
- func Test42NoSINITErrors() (bool, error)
- func Test43BIOSDATAREGIONPresent() (bool, error)
- func Test44HasMTRR() (bool, error)
- func Test45HasSMRR() (bool, error)
- func Test46ValidSMRR() (bool, error)
- func Test47ActiveSMRR() (bool, error)
- func Test48ActiveIOMMU() (bool, error)
- func Test49ActiveTBOOT() (bool, error)
- func Test50ServerModeTXT() (bool, error)
- func Test51ReleaseFusedFSBI() (bool, error)
- func TestTXTDPRisLock() (bool, error)
- type Test
- type TestResult
Constants ¶
View Source
const FITSize int64 = 16 * 1024 * 1024
16MiB
View Source
const FITVector = 0xFFFFFFC0
View Source
const FourGiB int64 = 0x100000000
View Source
const ResetVector = 0xFFFFFFF0
Variables ¶
View Source
var (
TestsCPU = [...]*Test{
&test01checkforintelcpu,
&test02waybridgeorlater,
&test03cpusupportstxt,
&test04chipsetsupportstxt,
&test05txtregisterspaceaccessible,
&test06supportssmx,
&test07supportvmx,
&test08ia32featurectrl,
&test10hasgetsecleaves,
&test11txtnotdisabled,
&test12ibbmeasured,
&test13ibbistrusted,
&test14txtregisterslocked,
}
)
View Source
var (
TestsFIT = [...]*Test{
&testfitvectorisset,
&test22hasfit,
&test23hasbiosacm,
&test24hasibb,
&test25haslcpTest,
&test26ibbcoversresetvector,
&ibbcoversfitvector,
&ibbcoversfit,
&test27noibboverlap,
&test28nobiosacmoverlap,
&test29nobiosacmisbelow4g,
&test30policyallowstxt,
}
)
View Source
var (
TestsMemory = [...]*Test{
&test36memoryisreserved,
&test37txtmemoryisdpr,
&testtxtdprislocked,
&test38hostbridgeDPRcorrect,
&test39sinitintxt,
&test40sinitmatcheschipset,
&test41sinitmatchescpu,
&test42nosiniterrors,
&test43biosdataregionpresent,
&test44hasmtrr,
&test45hassmrr,
&test46validsmrr,
&test47activesmrr,
&test48activeiommi,
&test49activetboot,
&test50servermodetext,
&test51releasefusedfsbi,
}
)
View Source
var (
TestsTPM = [...]*Test{
&test16tpmispresent,
&test17tpmislocked,
&test18psindexisset,
&test19auxindexisset,
&test20lcppolicyisvalid,
}
)
Functions ¶
func ConnectTPM ¶
Connects to a TPM device (virtual or real) at the given path
func FITVectorIsSet ¶
func IBBCoversFIT ¶
func IBBCoversFITVector ¶
func Test01CheckForIntelCPU ¶
Check we're running on a Intel CPU
func Test02WeybridgeOrLater ¶
Check we're running on Weybridge
func Test04ChipsetSupportsTXT ¶
Check whether chipset supports TXT
func Test05TXTRegisterSpaceAccessible ¶
Check if the TXT register space is accessible
func Test09SMXIsEnabled ¶
func Test10HasGetSecLeaves ¶
Check for needed GETSEC leaves
func Test11TXTNotDisabled ¶
Check TXT_DISABLED bit in TXT_ACM_STATUS
func Test12IBBMeasured ¶
Verify that the IBB has been measured
func Test13IBBIsTrusted ¶
Check that the IBB was deemed trusted Only set in Signed Policy mode
func Test14TXTRegistersLocked ¶
Verify that the TXT register space is locked
func Test15NoBIOSACMErrors ¶
Check that the BIOS ACM has no startup error
func Test16TPMPresent ¶
Checks whether a TPM is present and answers to GetCapability
func Test20LCPPolicyIsValid ¶
PS index contains a valid LCP policy
func Test21PCR0IsSet ¶
Reads PCR-00 and checks whether if it's not the EmptyDigest
func Test22HasFIT ¶
func Test23HasBIOSACM ¶
func Test24HasIBB ¶
func Test25HasBIOSPolicy ¶
func Test27NoIBBOverlap ¶
func Test28NoBIOSACMOverlap ¶
func Test29BIOSACMIsBelow4G ¶
func Test30PolicyAllowsTXT ¶
func Test31BIOSACMValid ¶
func Test35BIOSACMMatchesCPU ¶
func Test36TXTReservedInE820 ¶
func Test37TXTMemoryIsDPR ¶
func Test39SINITInTXT ¶
func Test41SINITMatchesCPU ¶
func Test42NoSINITErrors ¶
func Test44HasMTRR ¶
func Test45HasSMRR ¶
func Test46ValidSMRR ¶
func Test47ActiveSMRR ¶
func Test48ActiveIOMMU ¶
func Test49ActiveTBOOT ¶
func Test50ServerModeTXT ¶
func Test51ReleaseFusedFSBI ¶
func TestTXTDPRisLock ¶
Types ¶
type Test ¶
type Test struct { Name string Required bool Result TestResult ErrorText string // contains filtered or unexported fields }
type TestResult ¶
type TestResult int
const ( ResultNotRun TestResult = iota ResultDependencyFailed ResultFail ResultPass )
func (TestResult) String ¶
func (t TestResult) String() string
Click to show internal directories.
Click to hide internal directories.