Documentation
¶
Index ¶
- Variables
- func GetMeasurement(nonce []byte, vmpl int) ([]byte, error)
- type Snp
- func (snp *Snp) GetCertChain(sel ar.KeySelection) ([]*x509.Certificate, error)
- func (snp *Snp) GetKeyHandles(sel ar.KeySelection) (crypto.PrivateKey, crypto.PublicKey, error)
- func (snp *Snp) Init(c *ar.DriverConfig) error
- func (snp *Snp) Lock() error
- func (snp *Snp) Measure(nonce []byte) ([]ar.Measurement, error)
- func (s *Snp) Name() string
- func (snp *Snp) Unlock() error
- func (snp *Snp) UpdateCerts() error
- func (snp *Snp) UpdateMetadata(metadata map[string][]byte) error
- type SnpCertTableEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var (
VlekUuid = []byte{0xa8, 0x07, 0x4b, 0xc2, 0xa2, 0x5a, 0x48, 0x3e, 0xaa, 0xe6, 0x39, 0xc0, 0x45, 0xa0, 0xb8, 0xa1}
)
Functions ¶
Types ¶
type Snp ¶
type Snp struct {
*ar.DriverConfig
// contains filtered or unexported fields
}
Snp is a structure required for implementing the Measure method of the attestation report Measurer interface
func (*Snp) GetCertChain ¶
func (snp *Snp) GetCertChain(sel ar.KeySelection) ([]*x509.Certificate, error)
GetCertChain returns the certificate chain for the specified key
func (*Snp) GetKeyHandles ¶
func (snp *Snp) GetKeyHandles(sel ar.KeySelection) (crypto.PrivateKey, crypto.PublicKey, error)
GetKeyHandles returns private and public key handles as a generic crypto interface
func (*Snp) Init ¶
func (snp *Snp) Init(c *ar.DriverConfig) error
Init initializaes the SNP driver with the specifified configuration
func (*Snp) Measure ¶
func (snp *Snp) 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 (*Snp) Unlock ¶
Lock implements the unlocking method for the attestation report signer interface
func (*Snp) UpdateCerts ¶
type SnpCertTableEntry ¶
Click to show internal directories.
Click to hide internal directories.