attestation

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AttestationPolicyPath string

Functions

func SevSnpGuestDeviceExists added in v0.7.0

func SevSnpGuestDeviceExists() bool

func SevSnpGuestvTPMExists added in v0.7.0

func SevSnpGuestvTPMExists() bool

func TDXGuestDeviceExists added in v0.7.0

func TDXGuestDeviceExists() bool

Types

type Config

type Config struct {
	*check.Config
	*PcrConfig
}

type EmptyProvider added in v0.6.0

type EmptyProvider struct{}

func (*EmptyProvider) Attestation added in v0.6.0

func (e *EmptyProvider) Attestation(teeNonce []byte, vTpmNonce []byte) ([]byte, error)

func (*EmptyProvider) AzureAttestationToken added in v0.6.0

func (e *EmptyProvider) AzureAttestationToken(nonce []byte) ([]byte, error)

func (*EmptyProvider) TeeAttestation added in v0.6.0

func (e *EmptyProvider) TeeAttestation(teeNonce []byte) ([]byte, error)

func (*EmptyProvider) VTpmAttestation added in v0.6.0

func (e *EmptyProvider) VTpmAttestation(vTpmNonce []byte) ([]byte, error)

type PcrConfig

type PcrConfig struct {
	PCRValues PcrValues `json:"pcr_values"`
}

type PcrValues

type PcrValues struct {
	Sha256 map[string]string `json:"sha256"`
	Sha384 map[string]string `json:"sha384"`
	Sha1   map[string]string `json:"sha1"`
}

type PlatformType added in v0.6.0

type PlatformType int
const (
	SNP PlatformType = iota
	VTPM
	SNPvTPM
	Azure
	TDX
	NoCC
)

func CCPlatform added in v0.6.0

func CCPlatform() PlatformType

CCPlatform returns the type of the confidential computing platform.

type Provider added in v0.6.0

type Provider interface {
	Attestation(teeNonce []byte, vTpmNonce []byte) ([]byte, error)
	TeeAttestation(teeNonce []byte) ([]byte, error)
	VTpmAttestation(vTpmNonce []byte) ([]byte, error)
	AzureAttestationToken(tokenNonce []byte) ([]byte, error)
}

type Verifier added in v0.7.0

type Verifier interface {
	VerifyAttestation(report []byte, teeNonce []byte, vTpmNonce []byte) error
	VerifTeeAttestation(report []byte, teeNonce []byte) error
	VerifVTpmAttestation(report []byte, vTpmNonce []byte) error
	JSONToPolicy(path string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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