Skip to content

Latest commit

 

History

History

helloworld

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

helloworld sample

This sample shows how to build an enclave application written in C.

The directory app contains the application code. This is the part that runs within the secure enclave.

enclave.conf defines SGX parameters like heap size or maximum thread count.

The sample can be built and run as follows:

mkdir build
cd build
cmake ..
make
erthost enclave.signed

When using simulation mode, use

OE_SIMULATION=1 erthost enclave.signed

to run the sample.

custom entry point

As stated here ertdeventry must not be used in production. For modern distributed applications, it is recommended to use MarbleRun. Alternatively, for a standalone application, you can write a custom entry point. An example is given in the directory custom_entry. It can be built and run as follows:

mkdir build
cd build
cmake ../custom_entry
make
erthost enclave.signed

custom host

If you need more control, you can also write a custom host in addition to your custom entry point. An example is given in the directory custom_host. It can be built and run as follows:

mkdir build
cd build
cmake ../custom_host
make
./helloworld_host enclave.signed