README.txt 1.1 KB

1234567891011121314151617181920212223242526272829
  1. ---------------------------
  2. Purpose of LocalAttestation
  3. ---------------------------
  4. The project demonstrates:
  5. - How to establish a protected channel
  6. - Secret message exchange using enclave to enclave function calls
  7. ------------------------------------
  8. How to Build/Execute the Sample Code
  9. ------------------------------------
  10. 1. Install Intel(R) Software Guard Extensions (Intel(R) SGX) SDK for Linux* OS
  11. 2. Make sure your environment is set:
  12. $ source ${sgx-sdk-install-path}/environment
  13. 3. Build the project with the prepared Makefile:
  14. a. Hardware Mode, Debug build:
  15. $ make
  16. b. Hardware Mode, Pre-release build:
  17. $ make SGX_PRERELEASE=1 SGX_DEBUG=0
  18. c. Hardware Mode, Release build:
  19. $ make SGX_DEBUG=0
  20. d. Simulation Mode, Debug build:
  21. $ make SGX_MODE=SIM
  22. e. Simulation Mode, Pre-release build:
  23. $ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0
  24. f. Simulation Mode, Release build:
  25. $ make SGX_MODE=SIM SGX_DEBUG=0
  26. 4. Execute the binary directly:
  27. $ ./app
  28. 5. Remember to "make clean" before switching build mode