Questions tagged [sgx]

Intel SGX is a set of CPU instruction extensions that allows application developers to create applications that retain the confidentiality and integrity of select data and code using Secure Enclaves.

Intel SGX is a set of CPU instruction extensions that allows application developers to create applications that retain the confidentiality and integrity of select data and code using secure Enclaves.

Enclaves are protected areas of execution. Application code can be put into an enclave via special instructions and software made available to developers via the Intel SGX SDK. The SDK and documentation are available at:

Requirements

SGX requires 6th Generation Intel Core Processors (Skylake) or later.

The Windows SDK requires a 64-bit version of Windows 7 or above, and the Microsoft Universal C Runtime.

The Linux SDK requires Ubuntu Desktop-16.04-LTS 64-bit.

175 questions
0
votes
1 answer

Why we need the enclave identity of initiator or responder in DH secure session establishment?

I'm developing a sgx application using sgx_dh API. The workflow can be summarized as follows (two roles here are dh_initiator, dh_i in short, and dh_responder, i.e., dh_r.): step0: Initiate session in dh_i and dh_r side; step1: dh_r generates msg1…
tuziYou
  • 33
  • 5
0
votes
1 answer

Unable to install Graphene-SGX on Ubuntu 18.04

I am not able to install Graphene properly (https://graphene.readthedocs.io/en/latest/building.html). While running the sample code, I am getting the following error Cannot open device /dev/gsgx. Please make sure the Graphene SGX kernel module is…
0
votes
0 answers

Build SGX-SDK with LLVM

I have cloned the source for sgx-sdk from git repo. I want to build it with LLVM instead of gcc. I have tried make CC=clang-7 CXX=clang++-7 sdk but it seems to be running into one problem after the other. Eg. There were bunch of CFLAGS options…
kshh23
  • 36
  • 6
0
votes
2 answers

How do I check if Intel SGX SDK and Intel SGX SSL are installed?

I'm writing an SGX application on a server in my institute. I need to know whether the Intel SGX SDK and Intel SGX SSL are already installed. The server is running Ubuntu. Is there a way to check this?
TheDarkTron
  • 304
  • 4
  • 13
0
votes
1 answer

sgx: There are zero EPC sections

I use i7-8700 and asus tuf z370 motherboard now. I already changed SGX option to "software controlled"(there are no option "enabled") I tried to use kvm-sgx following this document I compiled kernel to 5.0.0 and I checked and changed grub to use…
nam
  • 15
  • 5
0
votes
1 answer

How to use Intel SGX platform services with Hyperledger Sawtooth?

I am trying to use hyperledger-sawtooth along side intel sgx. I have installed the sawtooth on ubuntu machine but i am trying to figure out how to use intel sgx alongside it ? What are the benefits of using it alongside sgx services ?
asing177
  • 934
  • 2
  • 13
  • 34
0
votes
2 answers

Intel SGX training lab: cannot compile examples (sgx_tstdcxx.lib missing)

I've installed the latest version of Intel SGX SDK and PSW on Windows 10 (build 18362.356). I downloaded the Intel SGX Lab Bundle and opened the first solution (Lab 1.1 Feature Detection). When I compile any project in that solution, the linker…
Jämes
  • 6,945
  • 4
  • 40
  • 56
0
votes
0 answers

Use Mbedtls-SGX on Windows

I have an application which has an Intel SGX Enclave. I want, from within the enclave, to create a https connection to a server (so that the session keys and other secrets are hidden in the enclave). I saw the mbedtls-sgx github page…
Anca Faur
  • 1
  • 2
0
votes
1 answer

Hello world in C using SGX

I noticed some people able to write an SGX code in C code. I tried to do that, Assume I have the following code. Still I don't know how to write a Makefile that can compile these file As I didn't find much information online on how to compile…
user1584540
  • 21
  • 1
  • 1
  • 5
0
votes
1 answer

What is the SGX_CDECL macro?

I'm trying to understand how to create my own sgx application, so I'm scrutinizing SDK samples. I'd like to know what the usage of SGX_CDECL is? in the sample below as well as in general /* Application entry */ int SGX_CDECL main(int argc, char…
user11321136
0
votes
1 answer

Encoding for x86 VMCS field "ENCLV-Exiting Bitmap"

The Intel® 64 and IA-32 Architectures Software Developer's Manual Volume 3C: System Programming Guide, Part 3 includes the following description of a control field component of the virtual machine control structure (VMCS): 24.6.17 ENCLV-Exiting…
eggyal
  • 122,705
  • 18
  • 212
  • 237
0
votes
2 answers

using CMake to complie cause SGX_ERROR_UNEXPECTED?

I am trying to learn intel sgx sdk recently. Today i found a problem in my code and can not find any explain in intel DOC or WEB. The code will return SGX_ERROR_UNEXPECTED when i call sgx_create_enclave in some situations. I think there are…
siqian Wei
  • 25
  • 4
0
votes
1 answer

Intel SGX Running Executable on Remote Machine

I have been porting some code to SGX, in Linux, which I would like to run on a remote server in the end. I observed that if I build the program and then use the same executable to run the program inside SGX on a different machine, different from the…
Mayank
  • 214
  • 1
  • 7
0
votes
1 answer

Intel SGX Passing c++ class/struct as void* to enclave and casting it back

Note:- This question is very similar to Passing C++ struct to enclave from app in Intel SGX . I am posting it again as the post is almost 1 year old, hoping that there might be some solution. Please delete this if you think this is duplicate. I am…
Naveen KH
  • 153
  • 2
  • 11
0
votes
1 answer

Enclave field not working, but there is no error

I'm trying make simple code call an enclave field and just add 1. I'm reference this site : https://software.intel.com/en-us/articles/getting-started-with-sgx-sdk-f... After it finishes, there is no error, but the enclave code is not working. Here…