Documentation
¶
Index ¶
- Constants
- func GetAllowDebugEnclaves() bool
- func GetAttributesFromSgxReport(report *pcs.SgxReport) (*sgx.Attributes, error)
- func GetSgxReportFromQuote(quote *pcs.Quote) (*pcs.SgxReport, error)
- func HashTrustRootCert() [32]byte
- func ParseQuote(raw []byte) (*pcs.Quote, error)
- func SetAllowDebugEnclaves()
- func UnsetAllowDebugEnclaves()
- type QuoteBody
- type QuoteVerificationOutput
- func (vo QuoteVerificationOutput) Digest() [32]byte
- func (vo QuoteVerificationOutput) GetEnclaveIdentity() sgx.EnclaveIdentity
- func (vo QuoteVerificationOutput) IsDebug() (bool, error)
- func (vo QuoteVerificationOutput) ReportData() []byte
- func (o *QuoteVerificationOutput) ToBytes() []byte
- func (vo QuoteVerificationOutput) ValidityNotAfter() time.Time
- type TCBStatus
- type ValidityIntersection
- type ZKDCAPVerifierInfo
- type ZKVMType
Constants ¶
View Source
const ( TEETypeSGX = 0 QEVersion3 = 3 )
Variables ¶
This section is empty.
Functions ¶
func GetAllowDebugEnclaves ¶
func GetAllowDebugEnclaves() bool
func GetAttributesFromSgxReport ¶
func GetAttributesFromSgxReport(report *pcs.SgxReport) (*sgx.Attributes, error)
func HashTrustRootCert ¶
func HashTrustRootCert() [32]byte
func SetAllowDebugEnclaves ¶
func SetAllowDebugEnclaves()
func UnsetAllowDebugEnclaves ¶
func UnsetAllowDebugEnclaves()
Types ¶
type QuoteVerificationOutput ¶
type QuoteVerificationOutput struct { Version uint16 QuoteVersion uint16 TeeType uint32 TcbStatus TCBStatus MinTCBEvaluationDataNumber uint32 Fmspc [6]byte SGXIntelRootCAHash [32]byte Validity ValidityIntersection QuoteBody QuoteBody AdvisoryIds []string }
func ParseQuoteVerificationOutput ¶
func ParseQuoteVerificationOutput(raw []byte) (*QuoteVerificationOutput, error)
func (QuoteVerificationOutput) Digest ¶
func (vo QuoteVerificationOutput) Digest() [32]byte
func (QuoteVerificationOutput) GetEnclaveIdentity ¶
func (vo QuoteVerificationOutput) GetEnclaveIdentity() sgx.EnclaveIdentity
func (QuoteVerificationOutput) IsDebug ¶
func (vo QuoteVerificationOutput) IsDebug() (bool, error)
func (QuoteVerificationOutput) ReportData ¶
func (vo QuoteVerificationOutput) ReportData() []byte
func (*QuoteVerificationOutput) ToBytes ¶
func (o *QuoteVerificationOutput) ToBytes() []byte
func (QuoteVerificationOutput) ValidityNotAfter ¶
func (vo QuoteVerificationOutput) ValidityNotAfter() time.Time
type ValidityIntersection ¶
TCBStatus represents the status of the TCB.
func (ValidityIntersection) ValidateTime ¶
func (vi ValidityIntersection) ValidateTime(tm time.Time) bool
type ZKDCAPVerifierInfo ¶
type ZKDCAPVerifierInfo struct { ZKVMType ZKVMType // contains filtered or unexported fields }
func ParseZKDCAPVerifierInfo ¶
func ParseZKDCAPVerifierInfo(raw []byte) (*ZKDCAPVerifierInfo, error)
func (*ZKDCAPVerifierInfo) GetRISC0ImageID ¶
func (vi *ZKDCAPVerifierInfo) GetRISC0ImageID() ([32]byte, error)
func (*ZKDCAPVerifierInfo) IsRISC0 ¶
func (vi *ZKDCAPVerifierInfo) IsRISC0() bool
func (*ZKDCAPVerifierInfo) ToBytes ¶
func (vi *ZKDCAPVerifierInfo) ToBytes() []byte
Click to show internal directories.
Click to hide internal directories.