Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

create an enclave from ocall

Ang__Liso
Beginner
251 Views

I am not very sure if it is possible. I am trying to do the following:
 

sgx_status_t ocall_do_something(){

    sgx_create_enclave()

    ecall into the enclave created and do something inside this enclave

   sgx_destory_enclave()

}

but it seems the program stops in the middle of the ocall, when it is trying to memcpy the function arguments.

I would like to know if I can do something like this and what is the proper way of doing it.

Thanks.

0 Kudos
0 Replies
Reply