Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Sam5
New Contributor I
59 Views

Dllmain() in SGX

Jump to solution

Hi,

Can the untrusted process load the dll via LoadLibrary so as to automatically execute the codes in Dllmain()? Or should we still need to create an enclave first so as to call the Dllmain() function in it?

-Thanks

0 Kudos

Accepted Solutions
59 Views

Hi Sam,

sgx_create_enclave has more input and output parameters when compared to LoadLibrary(Ex) function call. So you cannot load an enclave DLL using LoadLibrary(Ex). It may work (I am not sure, haven't tried it), but if it does you would have a 'normal' DLL, not an enclave.

-Surenthar

View solution in original post

2 Replies
60 Views

Hi Sam,

sgx_create_enclave has more input and output parameters when compared to LoadLibrary(Ex) function call. So you cannot load an enclave DLL using LoadLibrary(Ex). It may work (I am not sure, haven't tried it), but if it does you would have a 'normal' DLL, not an enclave.

-Surenthar

View solution in original post

Sam5
New Contributor I
59 Views

Thanks Surenthar...