- The library in
libcreates anenclave.signed.soand anuntrusted.so; and - The application in
appcreates an enclave from the trusted DSO usingsgx_create_enclave_from_buffer_exand loads the untrusted DSO usingdlopen
The application then invokes multiple ecalls.
First compile library:
.../lib$ make genkey
.../lib$ make SGX_MODE=HW
Then compile application and execute:
.../app$ make SGX_MODE=HW
.../app$ ./app_ex
Clean with:
.../lib$ make clean
.../lib$ make delkey
.../app$ make clean
NOTE: The private key life cycle is independent of the rest of the code. Generate the private key with $ make genkey and remove it with $ make delkey. These targets uses OpenSSL.
BSD-3-Clause
Copyright 2022 Daniel Andrade.