eattest

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package eattest provides functionality for attesting SGX enclaves.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestation

type Attestation struct {
	GetSelfReport      func() (attestation.Report, error)
	GetRemoteReport    func(reportData []byte) ([]byte, error)
	VerifyRemoteReport func(reportBytes []byte) (attestation.Report, error)
}

Attestation represents SGX attestation methods.

func NewAttestation

func NewAttestation() Attestation

NewAttestation creates a new instance of Attestation with default methods.

func (Attestation) GetReport

func (attest Attestation) GetReport(userData []byte) ([]byte, error)

GetReport requests a remote attestation report for the provided user data.

func (Attestation) Verify

func (attest Attestation) Verify(reportData []byte) ([]byte, error)

Verify verifies the authenticity of the remote attestation report. It compares the remote report with the local SGX report and ensures they match.

Jump to

Keyboard shortcuts

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