snpdriver

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

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) Name added in v0.8.0

func (s *Snp) Name() string

Name returns the name of the driver

func (*Snp) Unlock added in v0.6.0

func (snp *Snp) Unlock() error

Lock implements the unlocking method for the attestation report signer interface

type SnpCertTableEntry added in v0.8.0

type SnpCertTableEntry struct {
	Uuid   [16]byte
	Offset uint32
	Length uint32
}

Jump to

Keyboard shortcuts

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