Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Get enclave ID of caller from inside an OCALL

lieser__philippe
Beginner
152 Views

Hello,

from inside an OCALL, I would like to get the enclave ID (sgx_enclave_id_t) of the enclave calling this OCALL function.

Does someone know if and how this is possible?

0 Kudos
1 Reply
Francisco_C_Intel
152 Views

No.

I believe you'll need to save it to a global variable (if there's only one instance of an enclave) or pass it as a parameter from the app to the enclave so that the enclave can then pass it to the ocall.

Francisco

Reply