The following structures are used by context-switchless calls, which is experimental, and subject to changes.
Create an enclave from an enclave image file.
This function creates an enclave from an enclave image file. On successful return, the enclave is fully initialized and ready to use.
- Parameters
-
path | The path of an enclave image file in ELF-64 format. This file must have been linked with the oecore library and signed by the oesign tool. |
type | The type of enclave supported by the enclave image file.
- OE_ENCLAVE_TYPE_SGX - An SGX enclave
|
flags | These flags control how the enclave is run. It is the bitwise OR of zero or more of the following flags
- OE_ENCLAVE_FLAG_SIMULATE - runs the enclave in simulation mode
- OE_ENCLAVE_FLAG_DEBUG - runs the enclave in debug mode. DO NOT SHIP CODE with this flag
|
configs | Array of additional enclave creation configurations for the specific enclave type. |
config_count | The number of configurations in the configs. |
ocall_table | Pointer to table of ocall functions generated by oeedger8r. |
ocall_count | The number of functions in the ocall_table. |
enclave | This points to the enclave instance upon success. |
- Returns
- Returns OE_OK on success.