Intel SGX Error: What does the 8207 error mean when I cannot load the enclave correct

Intel SGX Error: What does the 8207 error mean when I cannot load the enclave correct

我制作了以下 enclave 和加载 enclave 的应用程序:

https://github.com/pc-magas/myFirstEnclave/tree/run_fail

如您所见,我加载了错误的 enclave 路径,因此应用无法按预期 运行,当示例中发生这种情况时,它 returns 错误:

SGX error code: 8207

Fail to initialize enclave.

但我无法理解 8207 错误代码的含义,据我所知,我没有在文档中提到错误代码:https://software.intel.com/en-us/node/709252

那么你能解释一下这个错误代码是什么意思吗?

8207(十进制)是 200F(十六进制),您的 link 显示:

0x200F | SGX_ERROR_ENCLAVE_FILE_ACCESS          | Can’t open enclave file.

这是你在走错路时所期望的。