Crate graphene_sgx

Crate graphene_sgx 

Source

Modules§

sgx
SGX constants and types.

Macros§

impl_struct
Converts struct definition into a C-compatible one. repr(C) is added, as well as bitwise-zero Default initialization and bitwise-copy Clone.
map_attestation_error
Implements From an error type for AttestationError.
offset_of
Computes offset of a struct field, in bytes.

Structs§

AttestationReport
IAS attestation report. See IAS API specification for details.
AttestationResponse
Raw bytes of IAS report and signature.
AttestationVerifier
Attestation verifier enables easy checking of various attestation evidence properties.

Enums§

AttestationResult

Functions§

get_quote
Returns SGX quote of the currently executing enclave. user_data will be included in the quote’s report_data field (max 64 bytes, will be padded with zeros if shorter).
get_report
Returns SGX report of the currently executing enclave. user_data will be included in the report’s report_data field (max 64 bytes, will be padded with zeros if shorter).
get_target_info
Returns SGX target info of the currently executing enclave.
is_graphene_enclave
Returns true if we’re executing inside Graphene’s SGX enclave.
set_protected_files_key
Set master key for Protected Files. The key is an AES-GCM-128 key in hex format (32 chars).