attestation

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 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 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 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 {
	VerifyWithCoRIM(report []byte, manifest *corim.UnsignedCorim) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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