Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Help for Working with SGX's nuget version

Nexus007
Beginner
1,121 Views

I have a 6th gen intel 6600U processor laptop with SGX supported.
I want to use it but from the intel's website i got sdk package with nuget and no exe version.
In running code after integrating it with Visual Studio (which i am not sure if done properly) has many errors.
Compiling .edl file or enclave project is not creating a "_u.h" file and i am confused how to use it.
Can you guide me from how to install the intel's sgx using nuget to using it with Visual Studio.
i am very confused.
SampleEnclave project is also throwing a lot of errors.


Regards
Harshil Kankane

0 Kudos
3 Replies
Francisco_C_Intel
1,100 Views

Hi,

 

You'll need to "Find and Install" the Intel.SGX.SDK package as described

https://learn.microsoft.com/en-us/nuget/consume-packages/install-use-packages-visual-studio

 

The SGX SDK Installation document ("Intel SGX Installation Guide for Windows OS") has some screenshots as well. The basic steps are

 

Tools-> NuGet Package Manager->Manage Nuget Packages for Solution

 

Then find Intel.SGX.SDK and "Install" it (this will get the nuget package from nuget.org by default, which is OK and easiest way to install it). 

Make sure you select all the projects in your solution that need it (both Apps and Enclaves).

It should look something like this when you are done:

 

Francisco_C_Intel_0-1726710112401.png

 

Please let me know if you are still having issues installing or run into any new ones.

 

Thanks,

Francisco

0 Kudos
Nexus007
Beginner
1,093 Views

Hey Thanks for replying back.

Can you guide me on how to run the SampleEnclave project code on windows.
This might seem a very basic doubt but,
I am new to Sgx and nuget.

I tried copying the Enclave folder files to enclave project and the App files to a Console C++ project.
But still there were many header errors and unable to open "Enclave_u.h" file.
Can you help please
Thanks

Regards

0 Kudos
Francisco_C_Intel
950 Views

Hi,

 

A good explainer on how to use a Nuget is

Quickstart: Install and use a NuGet package in Visual Studio (Windows only) | Microsoft Learn

 

There are links to videos on that site as well.

 

Once you are able to install and use a Nuget package, you'll just need to repeat those steps, except that you should use the SGX SDK Nuget package instead of the Newtonsoft.Json package that they used in their example.

 

Are you able to follow their steps to get the Newtonsoft.Json package working?

 

Francisco

0 Kudos
Reply