snpdriver

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PEM = iota
	DER = iota
)

Variables

This section is empty.

Functions

func GetSnpMeasurement

func GetSnpMeasurement(nonce []byte) ([]byte, error)

GetSnpMeasurement retrieves the AMD SEV-SNP attestation report and returns it as a byte array

Types

type Config

type Config struct {
	Url string
}

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 NewSnpDriver

func NewSnpDriver(c Config) (*Snp, error)

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

type VcekRequest

type VcekRequest struct {
	Version int
	ChipId  [64]byte
	Tcb     uint64
}

type VcekResponse

type VcekResponse struct {
	Version int
	Vcek    []byte
}

Jump to

Keyboard shortcuts

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