MCPcopy Create free account
hub / github.com/conflow-dev/ConFlow / initialize_enclave

Function initialize_enclave

sgx_tf_ops/App/App.cpp:127–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127unsigned long int initialize_enclave()
128{
129 sgx_status_t ret = SGX_ERROR_UNEXPECTED;
130 unsigned long int eid;
131 /* Call sgx_create_enclave to initialize an enclave instance */
132 /* Debug Support: set 2nd parameter to 1 */
133 ret = sgx_create_enclave("/home/zhangyan/jhrsgx/privacy_test/privacy_tf/sgx_tf_ops/enclave.signed.so", SGX_DEBUG_FLAG, NULL, NULL, &eid, NULL);
134 if (ret != SGX_SUCCESS) {
135 printf("Failed to create enclave, ret code: %d\n", ret);
136 print_error_message(ret);
137 throw ret;
138 }
139 printf("initialize %lu finish.\n",eid);
140 return eid;
141}
142
143
144void destroy_enclave(unsigned long int eid)

Callers

nothing calls this directly

Calls 2

printfFunction · 0.85
print_error_messageFunction · 0.85

Tested by

no test coverage detected