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

Get enclave ID of caller from inside an OCALL

lieser__philippe
Beginner
389 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
389 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

0 Kudos
Reply