sgxdriver

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ROOT_CA_CERT_NAME      = "Intel_SGX_Root_CA"
	INTERMEDIATE_CERT_NAME = "Intel_SGX_PCK_Processor_CA"
	PCK_CERT_NAME          = "Intel_SGX_PCK_Certificate"
	TCB_SIGNING_CERT_NAME  = "Intel_SGX_TCB_Signing"
)

Functions

This section is empty.

Types

type Sgx

type Sgx struct {
	// contains filtered or unexported fields
}

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

func (*Sgx) GetCertChain

func (sgx *Sgx) GetCertChain(sel ar.KeySelection) ([]*x509.Certificate, error)

GetCertChain returns the certificate chain for the specified key

func (*Sgx) GetKeyHandles added in v0.8.0

func (sgx *Sgx) GetKeyHandles(sel ar.KeySelection) (crypto.PrivateKey, crypto.PublicKey, error)

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

func (*Sgx) Init

func (sgx *Sgx) Init(c *ar.DriverConfig) error

Init initializes the SGX driver with the specifified configuration

func (*Sgx) Lock

func (sgx *Sgx) Lock() error

Lock implements the locking method for the attestation report signer interface

func (*Sgx) Measure

func (sgx *Sgx) 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 (*Sgx) Name added in v0.8.0

func (s *Sgx) Name() string

Name returns the name of the driver

func (*Sgx) Unlock

func (sgx *Sgx) Unlock() error

Lock implements the unlocking method for the attestation report signer interface

Jump to

Keyboard shortcuts

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