Documentation ¶
Overview ¶
Package TDX implements attestation for Intel TDX.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Available ¶
func Available() bool
Available returns true if the TDX device is available and can be opened.
func GetSelectedMeasurements ¶
func GetSelectedMeasurements(open OpenFunc, selection []int) (measurements.M, error)
GetSelectedMeasurements returns the selected measurements from the RTMRs.
Types ¶
type Device ¶
type Device interface { io.ReadWriteCloser Fd() uintptr }
Device is an interface for a TDX device.
func IsTDXDevice ¶
func IsTDXDevice(device io.ReadWriteCloser) (Device, bool)
IsTDXDevice checks if the given device is a TDX guest device.
type Issuer ¶
Issuer is the TDX attestation issuer.
func NewIssuer ¶
func NewIssuer(log attestation.Logger) *Issuer
NewIssuer initializes a new TDX Issuer.
type Validator ¶
Validator is the TDX attestation validator.
func NewValidator ¶
func NewValidator(cfg *config.QEMUTDX, log attestation.Logger) *Validator
NewValidator initializes a new TDX Validator.
Click to show internal directories.
Click to hide internal directories.