Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Guy_M_
Novice
219 Views

WolfSSl with Intel SGX Code sample on Linux

Jump to solution

Hi,

Can someone please share a code sample in C++ of creating an SGX enclave using wolfSSL libraries on Linux?

0 Kudos
1 Solution
Jacob_B_2
New Contributor I
219 Views

Hi Guy,

There is a couple locations with wolfSSL examples up on GitHub. https://github.com/wolfSSL/wolfssl-examples/tree/master/SGX_Windows and https://github.com/wolfSSL/wolfssl-examples/tree/master/SGX_Linux. The Windows version of the example is written in C++, though the Linux version of the example is written in C not C++. The C version is really close to being able to just have the file extensions changed from .c to .cpp and compile. Any one with need for technical support or questions arising while working with wolfSSL with SGX can contact the support@wolfssl.com email, this will get through to a wolfSSL engineer that can provide farther assistance.

wolfSSL code for creating a library that can be used with the above examples can be found here https://www.wolfssl.com/download/ . The READMEs for how to build the library is located in the directories wolfssl-root/IDE/LINUX-SGX or wolfssl-root/IDE/WIN-SGX depending on if building with Windows Visual Studio or building on a Linux system. Each of these READMEs have a step by step instruction for getting the basic examples up and running while every README tries to be as clear as possible there is always room for improvement, if anything is unclear or could use improvement with the README feedback sent to support@wolfssl.com is taken into account with version updates.

More information about building wolfSSL with SGX on Linux can be found here https://www.wolfssl.com/wolfssl-with-intel-sgx-on-linux/.

Regards,
Jacob

View solution in original post

2 Replies
Jacob_B_2
New Contributor I
220 Views

Hi Guy,

There is a couple locations with wolfSSL examples up on GitHub. https://github.com/wolfSSL/wolfssl-examples/tree/master/SGX_Windows and https://github.com/wolfSSL/wolfssl-examples/tree/master/SGX_Linux. The Windows version of the example is written in C++, though the Linux version of the example is written in C not C++. The C version is really close to being able to just have the file extensions changed from .c to .cpp and compile. Any one with need for technical support or questions arising while working with wolfSSL with SGX can contact the support@wolfssl.com email, this will get through to a wolfSSL engineer that can provide farther assistance.

wolfSSL code for creating a library that can be used with the above examples can be found here https://www.wolfssl.com/download/ . The READMEs for how to build the library is located in the directories wolfssl-root/IDE/LINUX-SGX or wolfssl-root/IDE/WIN-SGX depending on if building with Windows Visual Studio or building on a Linux system. Each of these READMEs have a step by step instruction for getting the basic examples up and running while every README tries to be as clear as possible there is always room for improvement, if anything is unclear or could use improvement with the README feedback sent to support@wolfssl.com is taken into account with version updates.

More information about building wolfSSL with SGX on Linux can be found here https://www.wolfssl.com/wolfssl-with-intel-sgx-on-linux/.

Regards,
Jacob

View solution in original post

Guy_M_
Novice
219 Views

Thank you, Jacob, I think that now things are starting to get more clear.

Reply