[][src]Module graphene_sgx::sgx

SGX constants and types.

Structs

QuoteHasher

Hasher that can be used for building enclave quote with custom data hash contained in quote's report data.

SgxAttributes

Enclave attributes.

SgxMiscAttribute

Enclave misc select and attributes.

SgxQuote

Enclave quote.

SgxQuoteBody

Body of the enclave quote.

SgxReport

Cryptographic enclave report. Layout of this struct up to the bytes field matches sgx_report_t from the SGX SDK.

SgxReportBody

Body of the cryptographic enclave report. Layout of this struct matches sgx_report_body_t from the SGX SDK.

SgxTargetInfo

Information specifying the target enclave for quote generation. Layout of this struct up to the bytes field matches sgx_target_info_t from the SGX SDK.

Enums

SgxQuoteSignType

Linkability type of an EPID quote. IAS verification reports of quotes generated by the same platform contain the same epidPseudonym field if the quotes were generated using linkable signatures.

Constants

SGX_FLAGS_DEBUG
SGX_FLAGS_EINITTOKEN_KEY
SGX_FLAGS_INITTED
SGX_FLAGS_KSS
SGX_FLAGS_MODE64BIT
SGX_FLAGS_PROVISION_KEY
SGX_FLAGS_RESERVED
SGX_HASH_SIZE

Size of SGX hashes (SHA-256).

SGX_MAC_SIZE

Size of SGX MACs (AES-128-CMAC).

SGX_REPORT_DATA_SIZE

Size of custom data in enclave report.

SGX_XFRM_AVX
SGX_XFRM_AVX512
SGX_XFRM_LEGACY
SGX_XFRM_MPX
SGX_XFRM_RESERVED

Functions

expand_report_data

Convert byte slice into SgxReportData (extending with zeros if size is less than 64).

parse_measurement

Parse hex string as SgxMeasurement.

Type Definitions

SgxBasename

Quote basename (SPID for EPID quotes).

SgxConfigId

Config ID (KSS only).

SgxConfigSvn

Config security version number (KSS only).

SgxCpuSvn

CPU security version number.

SgxEpidGroupId

EPID group ID.

SgxIsvExtProdId

ISV extended product ID.

SgxIsvFamilyId

ISV family ID.

SgxIsvSvn

ISV security version number.

SgxKey

Cryptographic key. Usually AES-128-GCM.

SgxKeyId

Cryptographic key id (derivation material).

SgxMac

MAC (AES-128-CMAC) data.

SgxMeasurement

Enclave cryptographic measurement.

SgxMiscSelect

Extended SSA frame feature select (future functional extensions).

SgxProdId

Product ID.

SgxReportData

Custom data in enclave report.

SgxSpid

Service Provider ID (EPID attestation).