sbellem / sgx-iot

Intel SGX code sample: Gateway Key Provisioning and Secure Signing. From https://software.intel.com/content/www/us/en/develop/articles/code-sample-gateway-key-provisioning-and-secure-signing-using-intel-software-guard.html.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Added signature verification to the example #14

Closed michael-yxchen closed 3 years ago

michael-yxchen commented 3 years ago
  1. The major contribution of this PR is adding a signature verification command to the sgx-iot enclave application. It loads the sealed public key and signature from files and verifies that the input file (Sensor_Data) is appropriately signed. The command is named --verify and run_demo_sgxra.sh is updated with an example
  2. Added a signature seal and save step to the --sign command of the application. This is necessary as --verify uses a signature sealed by the enclave
  3. Changed nix.build to use local files to build instead of pulling from Github repo. Otherwise local changes are not reflected in the compiled app/library. I suppose we can leave a note for developers to keep that in mind, and keep the source pulling from github for demo purposes
michael-yxchen commented 3 years ago

Opening another PR because incoming branch has changed