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

Execute sleep() inside an enclave

Shredha_K_
Novice
513 Views

Hi,

Is it possible to execute a sleep() inside an enclave. 

Thanks in advance

0 Kudos
1 Solution
Anusha_K_Intel
Employee
513 Views

Hi,

Os calls(sleep()) cannot be used directly inside the enclave. We can use an OCALL to execute them.

View solution in original post

4 Replies
Anusha_K_Intel
Employee
514 Views

Hi,

Os calls(sleep()) cannot be used directly inside the enclave. We can use an OCALL to execute them.

Shredha_K_
Novice
513 Views

Thank you Anusha :)

chaoshun_z_
Beginner
513 Views

OCALL may not safe since the sleep action will be performed by untrusted part​, so I implemented sleep by using "sgx_get_trusted_time"

 

 

 

you_w_
New Contributor III
513 Views

I think If you really need this, just make an OCALL. But in this way the time sleep()ed may not be accurate.

Reply