Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Shredha_K_
Beginner
136 Views

Execute sleep() inside an enclave

Jump to solution

Hi,

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

Thanks in advance

0 Kudos

Accepted Solutions
Anusha_K_Intel
Employee
136 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
137 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

Shredha_K_
Beginner
136 Views

Thank you Anusha :)

chaoshun_z_
Beginner
136 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
136 Views

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