corda/SampleCode/LocalAttestation
Angie Chinchilla 9441de4c38 Initial release of Intel SGX for Linux.
This release is used in conjunction with the linux-sgx-driver Intial release:
https://github.com/01org/linux-sgx-driver
commit-id: 0e865ce5e6b297a787bcdc12d98bada8174be6d7

Intel-id: 33399

Signed-off-by: Angie Chinchilla <angie.v.chinchilla@intel.com>
2016-06-23 18:51:53 -04:00
..
App Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
Enclave1 Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
Enclave2 Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
Enclave3 Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
Include Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
LocalAttestationCode Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
Untrusted_LocalAttestation Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
.cproject Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
.project Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
Makefile Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00
README.txt Initial release of Intel SGX for Linux. 2016-06-23 18:51:53 -04:00

---------------------------
Purpose of LocalAttestation
---------------------------
The project demonstrates:
- How to establish a protected channel
- Secret message exchange using enclave to enclave function calls

------------------------------------
How to Build/Execute the Sample Code
------------------------------------
1. Install Intel(R) SGX SDK for Linux* OS
2. Build the project with the prepared Makefile:
    a. Hardware Mode, Debug build:
        $ make SGX_MODE=HW SGX_DEBUG=1
    b. Hardware Mode, Pre-release build:
        $ make SGX_MODE=HW SGX_PRERELEASE=1
    c. Hardware Mode, Release build:
        $ make SGX_MODE=HW
    d. Simulation Mode, Debug build:
        $ make SGX_DEBUG=1
    e. Simulation Mode, Pre-release build:
        $ make SGX_PRERELEASE=1
    f. Simulation Mode, Release build:
        $ make
3. Execute the binary directly:
    $ ./app