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

Unable to run SGX LocalAttestation example in Simulator on Linux cloud instance (AWS)

Cipolla__Henry
Beginner
466 Views

Even though Amazon's instances don't support SGX, I am trying to get a simulation environment working to play with. The SampleEnclave example works fine but LocalAttestation example keeps returning 2002. This should work given everything is run in software, right? 

LocalAttestation$ make clean ; make SGX_MODE=SIM ; ./app

But the output I get is:

The project has been built in debug simulation mode.

Load Enclave Failure
Available Enclaves
Enclave1 - EnclaveID 0
Enclave2 - EnclaveID 0
Enclave3 - EnclaveID 0Enclave1_test_create_session Ecall failed: Error code is 2002

Hit a key....

Am I missing something obvious and silly?

0 Kudos
1 Reply
Cipolla__Henry
Beginner
466 Views

Adding some debugging information to the example, the error I'm getting is 0x3002 "The enclave is not authorized." Again, I would have thought this doesn't happen when you use the simulator. Is there a requirement I'm missing?

0 Kudos
Reply