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:)
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.