Documentation ¶
Index ¶
- Constants
- type Snp
- func (snp *Snp) GetCertChain() ([]*x509.Certificate, error)
- func (snp *Snp) GetSigningKeys() (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 (snp *Snp) Unlock() error
Constants ¶
View Source
const ( PEM = iota DER = iota )
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() ([]*x509.Certificate, error)
func (*Snp) GetSigningKeys ¶ added in v0.6.0
GetSigningKeys returns the TLS private and public key 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
Click to show internal directories.
Click to hide internal directories.