tdxdriver

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_CCEL_ACPI_TABLE = "/sys/firmware/acpi/tables/data/CCEL"
)

Variables

This section is empty.

Functions

func GetCcel

func GetCcel(path string) ([]ar.Artifact, error)

func GetMeasurement

func GetMeasurement(nonce []byte) ([]byte, error)

Types

type Tdx

type Tdx struct {
	*ar.DriverConfig
	// contains filtered or unexported fields
}

Tdx is a structure required for implementing the Measure method of the attestation report Measurer interface

func (*Tdx) GetCertChain

func (tdx *Tdx) GetCertChain(keyType ar.KeySelection) ([]*x509.Certificate, error)

GetCertChain returns the certificate chain for the specified key

func (*Tdx) GetKeyHandles

func (tdx *Tdx) GetKeyHandles(sel ar.KeySelection) (crypto.PrivateKey, crypto.PublicKey, error)

GetKeyHandles returns private and public key handles as a generic crypto interface

func (*Tdx) Init

func (tdx *Tdx) Init(c *ar.DriverConfig) error

Init initializes the TDX driver with the specifified configuration

func (*Tdx) Lock

func (tdx *Tdx) Lock() error

Lock implements the locking method for the attestation report signer interface

func (*Tdx) Measure

func (tdx *Tdx) Measure(nonce []byte) ([]ar.Measurement, error)

Measure implements the attestation reports generic Measure interface to be called as a plugin during attestation report generation

func (*Tdx) Name

func (s *Tdx) Name() string

Name returns the name of the driver

func (*Tdx) Unlock

func (tdx *Tdx) Unlock() error

Lock implements the unlocking method for the attestation report signer interface

func (*Tdx) UpdateCerts

func (tdx *Tdx) UpdateCerts() error

func (*Tdx) UpdateMetadata

func (tdx *Tdx) UpdateMetadata(metadata map[string][]byte) error

Jump to

Keyboard shortcuts

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