- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to create multiple enclaves in a single application?
Sample code(or link to it ) would be better. Need it for my academic project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sushant.
The only thing you really need to do to load multiple enclaves is to make sure they are named differently. The LocalAttestation sample actually loads up 3 different enclaves (simply named Enclave1, Enclave2, and Enclave3).
https://github.com/intel/linux-sgx/tree/master/SampleCode/LocalAttestation
Hope this helps.
Scott
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sushant.
The only thing you really need to do to load multiple enclaves is to make sure they are named differently. The LocalAttestation sample actually loads up 3 different enclaves (simply named Enclave1, Enclave2, and Enclave3).
https://github.com/intel/linux-sgx/tree/master/SampleCode/LocalAttestation
Hope this helps.
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. And how do you generate "Enclave1_private.pem" file for each enclave?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use OpenSSL to generate the keys you need. See the "Enclave Signing Tool" section of the latest SGX Dev Ref for Linux for examples of how to do so:
But, just as an FYI, unless you want/plan to whitelist each enclave signing key separately, you probably want to use the same signing key for all your enclaves.
Regards.
Scott

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page