Documentation
¶
Index ¶
- type Sw
- func (s *Sw) GetCertChain(sel ar.KeySelection) ([]*x509.Certificate, error)
- func (s *Sw) GetKeyHandles(sel ar.KeySelection) (crypto.PrivateKey, crypto.PublicKey, error)
- func (s *Sw) Init(c *ar.DriverConfig) error
- func (s *Sw) Lock() error
- func (s *Sw) Measure(nonce []byte) (ar.Measurement, error)
- func (s *Sw) Name() string
- func (s *Sw) Unlock() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sw ¶
type Sw struct {
// contains filtered or unexported fields
}
Sw is a struct required for implementing the signer and measurer interfaces of the attestation report to perform software measurements and signing
func (*Sw) GetCertChain ¶
func (s *Sw) GetCertChain(sel ar.KeySelection) ([]*x509.Certificate, error)
GetCertChain returns the certificate chain for the specified key
func (*Sw) GetKeyHandles ¶ added in v0.8.0
func (s *Sw) GetKeyHandles(sel ar.KeySelection) (crypto.PrivateKey, crypto.PublicKey, error)
GetKeyHandles returns private and public key handles as a generic crypto interface
func (*Sw) Init ¶ added in v0.6.0
func (s *Sw) Init(c *ar.DriverConfig) error
Init a new object for software-based signing
Click to show internal directories.
Click to hide internal directories.