amdsevsnp

package
v0.12.9 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package amdsevsnp contains minimal functionality required to fetch attestation reports inside an enlightened guest.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchRawSNPReport

func FetchRawSNPReport(reportData []byte) ([]byte, error)

FetchRawSNPReport returns attestation report bytes.

func IsSNP added in v0.12.0

func IsSNP() bool

Types

type Report

type Report struct {
	Version          uint32
	GuestSVN         uint32
	Policy           uint64
	FamilyID         string
	ImageID          string
	VMPL             uint32
	SignatureAlgo    uint32
	PlatformVersion  uint64
	PlatformInfo     uint64
	AuthorKeyEn      uint32
	ReportData       string
	Measurement      string
	HostData         []byte
	IDKeyDigest      string
	AuthorKeyDigest  string
	ReportID         string
	ReportIDMA       string
	ReportTCB        uint64
	ChipID           string
	CommittedSVN     string
	CommittedVersion string
	LaunchSVN        string
	Signature        string
}

Report represents parsed attestation report.

func FetchParsedSNPReport

func FetchParsedSNPReport(reportData []byte) (Report, error)

FetchParsedSNPReport parses raw attestation response into proper structs.

Jump to

Keyboard shortcuts

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