linux-sgx: Improve the remote attestation (#1695)
The current implementation of remote attestation does not take into account the integrity of the wasm module. The SHA256 of the wasm module has been put into user_data to generate the quote, and more parameters are exposed for further verification.
This commit is contained in:
@ -4,9 +4,19 @@
|
||||
|
||||
set (LIB_RATS_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
if ("$ENV{SGX_SSL_DIR}" STREQUAL "")
|
||||
set (SGX_SSL_DIR "/opt/intel/sgxssl")
|
||||
else()
|
||||
set (SGX_SSL_DIR $ENV{SGX_SSL_DIR})
|
||||
endif()
|
||||
|
||||
if (NOT EXISTS ${SGX_SSL_DIR})
|
||||
message(FATAL_ERROR "Can not find SGX_SSL, please install it first")
|
||||
endif()
|
||||
|
||||
add_definitions (-DWASM_ENABLE_LIB_RATS=1)
|
||||
|
||||
include_directories(${LIB_RATS_DIR})
|
||||
include_directories(${LIB_RATS_DIR} ${SGX_SSL_DIR}/include)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user