처음 SGX 프로젝트를 간단하게 작성하려고합니다. 그래서 나는 거의 Lars Richter's blog에서 복사 한이 메인 호스트 응용 프로그램 루틴이 있습니다Loading Enclave : CreateFile()로 파일을 열 수 없습니다.
#define ENCLAVE_FILE _T("Enclave.signed.dll")
#include <tchar.h>
#include <cstdio>
#include "sgx_urts.h"
#include "Enclave_u.h"
int main()
{
sgx_enclave_id_t eid;
sgx_status_t ret = SGX_SUCCESS;
sgx_launch_token_t token = { 0 };
int updated = 0;
ret = sgx_create_enclave(ENCLAVE_FILE, SGX_DEBUG_FLAG, &token, &updated, &eid, NULL);
if (ret != SGX_SUCCESS) {
printf("\nApp: error %#x, failed to create enclave.\n", ret);
}
scanf("\n");
return 0;
}
그것은 잘 컴파일 (I 인텔 C++ 비주얼 스튜디오 2015와 17.0 컴파일러를 사용하고 있습니다)을하지만로드되지 않습니다 고립 된. 닐 지적
[sgx_create_enclavew ..\urts\win\urts.cpp:195] Couldn't open file with CreateFile()
App: error 0x200f, failed to create enclave.
Enclave.signed.dll이 sgx_create_enclave 어딘가에 있습니까? –
솔루션의 디버그 폴더에 있습니다. –
그리고 sgx_create_enclave (그게 무엇이든)가 거기에서 찾을 수 있다고 생각하게 만드는 이유는 무엇입니까? –