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

Redistribute compiled binary in development mode

Yin__Hang
Beginner
408 Views

Hi all,

I'm trying to create a binary to test hardware. I compiled my binary in hardware mode with a development cert. It can create enclave without any problem. However when I transfer the compiled binary to another computer with PSW and SGX Driver installed, it complained "SGX_ERROR_UNEXPECTED" when initializing the enclave. Does it mean the development binary are bonded to the host CPU? Did I make any mistake?

Looking for advise.

 

Thanks!

0 Kudos
2 Replies
Junli_S_Intel
Employee
408 Views

NO, the development binary is NOT bonded to the host CPU.  Can you confirm that your two environment use the same version PSW ? And could you confirm that the SGX has been enabled in the platform?

0 Kudos
Yin__Hang
Beginner
408 Views

Thanks for the quick reply. Indeed I made a mistake. I installed a wrong version of PSW (2.8 vs 2.7). After reinstall the PSW everything worked like a charm!

0 Kudos
Reply