Documentation
¶
Index ¶
- 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
- type SnpCertTableEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snp ¶
type Snp struct {
// contains filtered or unexported fields
}
Snp is a structure required for implementing the Measure method of the attestation report Measurer interface
func (*Snp) GetCertChain ¶ added in v0.6.0
func (snp *Snp) GetCertChain(sel ar.KeySelection) ([]*x509.Certificate, error)
GetCertChain returns the certificate chain for the specified key
func (*Snp) GetKeyHandles ¶ added in v0.8.0
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 ¶ added in v0.6.0
func (snp *Snp) Init(c *ar.DriverConfig) error
Init initializaes the SNP driver with the specifified configuration
func (*Snp) Lock ¶ added in v0.6.0
Lock implements the locking method for the attestation report signer interface
type SnpCertTableEntry ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.