swdriver

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func (*Sw) Lock

func (s *Sw) Lock() error

Lock implements the locking method for the attestation report signer interface

func (*Sw) Measure added in v0.6.0

func (s *Sw) Measure(nonce []byte) (ar.Measurement, error)

func (*Sw) Name added in v0.8.0

func (s *Sw) Name() string

Name returns the name of the driver

func (*Sw) Unlock

func (s *Sw) 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