Documentation
¶
Index ¶
- Constants
- func GetCcel(path string) ([]ar.Artifact, error)
- func GetMeasurement(nonce []byte) ([]byte, error)
- type Tdx
- func (tdx *Tdx) GetCertChain(keyType ar.KeySelection) ([]*x509.Certificate, error)
- func (tdx *Tdx) GetKeyHandles(sel ar.KeySelection) (crypto.PrivateKey, crypto.PublicKey, error)
- func (tdx *Tdx) Init(c *ar.DriverConfig) error
- func (tdx *Tdx) Lock() error
- func (tdx *Tdx) Measure(nonce []byte) ([]ar.Measurement, error)
- func (s *Tdx) Name() string
- func (tdx *Tdx) Unlock() error
- func (tdx *Tdx) UpdateCerts() error
- func (tdx *Tdx) UpdateMetadata(metadata map[string][]byte) error
Constants ¶
View Source
const (
DEFAULT_CCEL_ACPI_TABLE = "/sys/firmware/acpi/tables/data/CCEL"
)
Variables ¶
This section is empty.
Functions ¶
func GetMeasurement ¶
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) 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) Unlock ¶
Lock implements the unlocking method for the attestation report signer interface
func (*Tdx) UpdateCerts ¶
Click to show internal directories.
Click to hide internal directories.