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

About Libc functions in enclave.

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
Highlighted
Employee
34 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