Documentation ¶
Index ¶
- Constants
- func GetEKAndOperator(quote *ias.Quote) (common.Address, common.Address, error)
- func GetRARootCert() *x509.Certificate
- func SetAllowDebugEnclaves()
- func UnsetAllowDebugEnclaves()
- func VerifyReport(report []byte, signature []byte, signingCertDer []byte, currentTime time.Time) error
- type AttestationVerificationReport
Constants ¶
View Source
const (
ReportDataVersion uint8 = 1
)
Variables ¶
This section is empty.
Functions ¶
func GetEKAndOperator ¶ added in v0.2.5
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.
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.
Click to show internal directories.
Click to hide internal directories.