Documentation
¶
Index ¶
- Variables
- type Sgx
- func (sgx *Sgx) GetCertChain(sel ar.KeySelection) ([]*x509.Certificate, error)
- func (sgx *Sgx) GetKeyHandles(sel ar.KeySelection) (crypto.PrivateKey, crypto.PublicKey, error)
- func (sgx *Sgx) Init(c *ar.DriverConfig) error
- func (sgx *Sgx) Lock() error
- func (sgx *Sgx) Measure(nonce []byte) (ar.Measurement, error)
- func (s *Sgx) Name() string
- func (sgx *Sgx) Unlock() error
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
Click to show internal directories.
Click to hide internal directories.