Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Beginner
123 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
Employee
123 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

0 Kudos
4 Replies
Employee
124 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

0 Kudos
Beginner
123 Views

Thank you Anusha :)

0 Kudos
Beginner
123 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"

 

 

 

0 Kudos
New Contributor III
123 Views

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

0 Kudos