Intel Confidential Computing
Discussion board focused on Intel Confidential Computing technologies and how they can protect data and AI security, privacy, and sovereignty.

Execute sleep() inside an enclave

Shredha_K_
Novice
4,463 Views

Hi,

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

Thanks in advance

0 Kudos
1 Solution
Anusha_K_Intel
Employee
4,463 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
Anusha_K_Intel
Employee
4,464 Views

Hi,

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

0 Kudos
Shredha_K_
Novice
4,463 Views

Thank you Anusha :)

0 Kudos
chaoshun_z_
Beginner
4,463 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
you_w_
New Contributor III
4,463 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
Reply