platformsecurity

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// IDUndefined is a ID reserved for the zero-value only.
	IDUndefined = ID(iota)

	// IDIntelTXT is an ID corresponds to "Intel" TXT (pre-CBnT) platforms.
	IDIntelTXT

	// IDIntelCBnT is an ID corresponds to "Intel" CBnT platforms.
	IDIntelCBnT

	// IDAMDMilan is an ID corresponds to "AMD Milan".
	IDAMDMilan

	// EndOfID is a limiter for loops to iterate over ID-s.
	EndOfID
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID int

ID is an unique ID of a platform security configuration. Platform may combine for example Intel CPU + OpenTitan as RTM.

It differs from github.com/klauspost/cpuid.Vendor, because cpuid.Vendor defines CPU vendor, while a platform may combine for example Intel and Lattice (and this combination will have an additional ID).

func (ID) CPUVendorID

func (id ID) CPUVendorID() cpuid.Vendor

CPUVendorID return the vendor ID of the CPU used on the platform.

func (ID) String

func (id ID) String() string

String implements fmt.Stringer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL