README.txt 957 B

1234567891011121314151617181920212223242526272829
  1. ------------------------
  2. Purpose of SampleEnclave
  3. ------------------------
  4. The project demonstrates several fundamental usages of Intel(R) Software Guard
  5. Extensions (SGX) SDK:
  6. - Initializing and destroying an enclave
  7. - Creating ECALLs or OCALLs
  8. - Calling trusted libraries inside the enclave
  9. ------------------------------------
  10. How to Build/Execute the Sample Code
  11. ------------------------------------
  12. 1. Install Intel(R) SGX SDK for Linux* OS
  13. 2. Build the project with the prepared Makefile:
  14. a. Hardware Mode, Debug build:
  15. $ make SGX_MODE=HW SGX_DEBUG=1
  16. b. Hardware Mode, Pre-release build:
  17. $ make SGX_MODE=HW SGX_PRERELEASE=1
  18. c. Hardware Mode, Release build:
  19. $ make SGX_MODE=HW
  20. d. Simulation Mode, Debug build:
  21. $ make SGX_DEBUG=1
  22. e. Simulation Mode, Pre-release build:
  23. $ make SGX_PRERELEASE=1
  24. f. Simulation Mode, Release build:
  25. $ make
  26. 3. Execute the binary directly:
  27. $ ./app