swdriver

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StoragePath string
	Url         string
	Metadata    [][]byte
	Serializer  ar.Serializer
}

type Paths

type Paths struct {
	TLSCert     string
	DeviceSubCa string
	Ca          string
}

Paths specifies the paths to store the certificates

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 NewSwDriver

func NewSwDriver(c Config) (*Sw, error)

NewSwDriver returns a new object for software-based measurements and signing

func (*Sw) GetCertChain

func (s *Sw) GetCertChain() ar.CertChain

func (*Sw) GetSigningKeys

func (s *Sw) GetSigningKeys() (crypto.PrivateKey, crypto.PublicKey, error)

GetSigningKeys returns the TLS private and public key as a generic crypto interface

func (*Sw) Lock

func (s *Sw) Lock()

Lock implements the locking method for the attestation report signer interface

func (*Sw) Unlock

func (s *Sw) Unlock()

Lock implements the unlocking method for the attestation report signer interface

type SwCertRequest

type SwCertRequest struct {
	Version    int
	CertParams []byte
	PubKey     []byte
}

type SwCertResponse

type SwCertResponse struct {
	Version int
	Certs   ar.CertChain
}

Jump to

Keyboard shortcuts

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