attestation

package
v2.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SevSnpGuestDeviceExists

func SevSnpGuestDeviceExists() bool

func SevSnpGuestvTPMExists

func SevSnpGuestvTPMExists() bool

func TDXGuestDeviceExists

func TDXGuestDeviceExists() bool

Types

type EmptyProvider

type EmptyProvider struct{}

func (*EmptyProvider) Attestation

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

func (*EmptyProvider) AzureAttestationToken

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

func (*EmptyProvider) TeeAttestation

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

func (*EmptyProvider) VTpmAttestation

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

type PlatformType

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

func CCPlatform

func CCPlatform() PlatformType

CCPlatform returns the type of the confidential computing platform.

type Provider

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

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