README.txt 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. ----------------------------
  2. Purpose of SealedData
  3. ----------------------------
  4. The project demonstrates:
  5. - How an application enclave can encrypt and integrity-protect enclave secrets
  6. to store them outside the enclave
  7. - How an application enclave can use Monotonic Counter to implement
  8. replay-protected policy, and Trusted Time to enforce time based policy
  9. ------------------------------------
  10. How to Build/Execute the Sample Code
  11. ------------------------------------
  12. 1. Install Intel(R) Software Guard Extensions (Intel(R) SGX) SDK for Linux* OS
  13. 2. Make sure your environment is set:
  14. $ source ${sgx-sdk-install-path}/environment
  15. 3. Build the project with the prepared Makefile:
  16. a. Hardware Mode, Debug build:
  17. $ make
  18. b. Hardware Mode, Pre-release build:
  19. $ make SGX_PRERELEASE=1 SGX_DEBUG=0
  20. c. Hardware Mode, Release build:
  21. $ make SGX_DEBUG=0
  22. d. Simulation Mode, Debug build:
  23. $ make SGX_MODE=SIM
  24. e. Simulation Mode, Pre-release build:
  25. $ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0
  26. f. Simulation Mode, Release build:
  27. $ make SGX_MODE=SIM SGX_DEBUG=0
  28. 4. Execute the binary directly:
  29. $ ./app
  30. 5. Remember to "make clean" before switching build mode