ias

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnclaveKeyAddress

func GetEnclaveKeyAddress(quote *ias.Quote) (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 string, signature []byte, signingCertDer []byte, currentTime time.Time) error

Types

type AttestationVerificationReport

type AttestationVerificationReport struct {
	ias.AttestationVerificationReport
}

func ParseAndValidateAVR

func ParseAndValidateAVR(report string) (*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