snpdriver

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

func (snp *Snp) GetSigningKeys() (crypto.PrivateKey, crypto.PublicKey, error)

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

func (snp *Snp) Lock() error

Lock implements the locking method for the attestation report signer interface

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 added in v0.6.0

func (snp *Snp) Unlock() error

Lock implements the unlocking method for the attestation report signer interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL