README.txt 1.1 KB

1234567891011121314151617181920212223242526272829
  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. 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. 3. Execute the binary directly:
  27. $ ./app
  28. 4. Remember to "make clean" before switching build mode