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

About Libc functions in enclave.

sera_l_
Beginner
667 Views

I have a question about using libc in enclave.

Should I make all wrapper function (ocall) of libc for using libc functions in enclave?

when I see some example code of others, They make only wrapper functions of  libc functions like open, read, mkdir.

But some functions like memcpy, memset are used directly without wrapping. 

please help me:)

0 Kudos
1 Reply
Anusha_K_Intel
Employee
667 Views

Hi,

As for the C++ standard library(libc++), most functions will work just  as its untrusted counterpart,

But here is a high level summary of features that are not supported inside the enclave for which you need to use an OCALL:

  • Input/output (I/O)-related functions and classes like <iostream>
  • Functions depending on local libraries
  • Any other functions that require system calls line open,read,mkdir.

Regards,

Anusha.

0 Kudos
Reply