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

Dllmain() in SGX

Sam5
Nouveau contributeur I
947 Visites

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 Compliments
1 Solution
Surenthar_S_Intel
947 Visites

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

Voir la solution dans l'envoi d'origine

0 Compliments
2 Réponses
Surenthar_S_Intel
948 Visites

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

0 Compliments
Sam5
Nouveau contributeur I
947 Visites

Thanks Surenthar...

0 Compliments
Répondre