How does SGX windows SDK launch an enclave?
I think it will first launch the Launch Enclave with le.signed.dll, and then use this Launch Enclave to launch other enclaves. Is this right?
When I use sgx_create_enclave interface with le.signed.dll, the return value(error number) is 0x2001. So, how to launch the Launch Enclave?
Thanks in advance!
There is no need to load the launch enclave directly. The SGX Platform Software (PSW) handles that for you when the "Intel SGX AESM" service loads during Windows boot. If you are having trouble loading your built enclave with sgx_create_enclave(), check that you have installed the PSW and the "Intel SGX AESM" service is running.
As Dan mentioned the Intel SGX AESM service is started during Windows boot and should persist until shutdown.
The "Untrusted Library Functions" and "Trusted Libraries - > Platform Services Functions" sections of the SDK Users Guide include the public interface functions supported by the AESM service.
In addition, the Sample Applications demonstrate the use of these services.