ias

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ReportDataVersion uint8 = 1
)

Variables

This section is empty.

Functions

func GetEKAndOperator added in v0.2.5

func GetEKAndOperator(quote *ias.Quote) (common.Address, common.Address, error)

func GetRARootCert

func GetRARootCert() *x509.Certificate

func SetAllowDebugEnclaves

func SetAllowDebugEnclaves()

SetAllowDebugEnclave will enable running and communicating with enclaves with debug flag enabled in AVR for the remainder of the process' lifetime.

func UnsetAllowDebugEnclaves

func UnsetAllowDebugEnclaves()

UnsetAllowDebugEnclave will disable running and communicating with enclaves with debug flag enabled in AVR for the remainder of the process' lifetime.

func VerifyReport

func VerifyReport(report []byte, signature []byte, signingCertDer []byte, currentTime time.Time) error

Types

type AttestationVerificationReport

type AttestationVerificationReport struct {
	ias.AttestationVerificationReport
}

func ParseAndValidateAVR

func ParseAndValidateAVR(report []byte) (*AttestationVerificationReport, error)

func (AttestationVerificationReport) GetTimestamp

func (avr AttestationVerificationReport) GetTimestamp() time.Time

GetTimestamp returns the timestamp of attestation. The timestamp is truncated to seconds.

Jump to

Keyboard shortcuts

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