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
1
vote
0 answers

how to make sure you have a working DCAP setup

I have installed gramine and DCAP using the fifth step:5. Install dependencies for DCAP of link https://gramine.readthedocs.io/en/stable/devel/building.html?highlight=dcap#install-dependencies-for-dcap my questions are that: how can I make sure that…
sama
  • 333
  • 2
  • 11
1
vote
0 answers

SGX psw faced issue

I am installing SGX psw when I run make psw I get error error: ‘SGX_XFRM_PKRU’ was not declared in this scope; did you mean ‘SGX_XFRM_AVX’? 121 | se_misc_attr->secs_attr.xfrm &= ~(SGX_XFRM_PKRU); I have to mention that I have run source…
sama
  • 333
  • 2
  • 11
1
vote
0 answers

Execute dotnet with startup diagnostics on console

No, it's not about my own log entries via ILogger or Console.. The application doesn't even come that far. No, I can't use third-party diagnostics like EventPipe, PerfView, ... The following is given I'm trying to run a simple dotnet application…
masterchris_99
  • 2,683
  • 7
  • 34
  • 55
1
vote
1 answer

cxxrt::bad_alloc despite large EPC

I am running the following piece of code inside an SGX enclave: void test_enclave_size() { unsigned int i = 0; const unsigned int MB = 1024 * 1024; try { for (; i < 10000; i++) { char* tmp = new char[MB]; } …
JRose
  • 1,382
  • 2
  • 5
  • 18
1
vote
1 answer

aesm_service returned error: 1 in Gramine

when I want to run the sample code helloworld.py in gramine I get the error: /gramine/CI-Examples/python$ gramine-sgx ./python scripts/helloworld.py Gramine is starting. Parsing TOML manifest file, this may take some time... error: aesm_service…
sama
  • 333
  • 2
  • 11
1
vote
2 answers

How to know wether Intel SGX DCAP is installed

How should I know if Intel SGX DCAP is installed or not? the server is running ubuntu 20.4. Is there a way to check this?
sama
  • 333
  • 2
  • 11
1
vote
1 answer

MYSQL Client and server inside intel sgx

I have a MySQL Server which is inside SGX and serves the Clients which submits sql queries to the server to run the queries inside the intel SGX. My question is that which protocol should be used for connection of these two machines (sql server(with…
sama
  • 333
  • 2
  • 11
1
vote
0 answers

Intel SGX root key

I am building an app that uses Intel SGX to sign a certain type of activities the app performs. Within a Secure Enclave I generate a statement X of the kind "operation A was performed with result B". Next, I generate a one-time key Y to sign this…
1
vote
1 answer

Cannot install Ubuntu 20.04 "SGX disabled by BIOS"

I am trying to boot Ubuntu 20.04 on ASUS® VivoBook x507ua but I am getting the following error message after choosing bootable USB driver [ 0.108692] x86/cpu: SGX disabled by BIOS Unable to find a medium container a life file system Attempt…
1
vote
0 answers

sgx_rijndael128GCM_encrypt does not encrypt

I am trying to use sgx_rijndael128GCM_encrypt to encrypt some data but the buffer remains empaty. I dont know why or what i am doing wrong. This is the code I am using, if there is any errors please mention them. As far as I think, there will be…
1
vote
1 answer

Copying a Public key Mod from an Intel SGX Enclave to Untrusted area

I am developing a C pseudo-API in which Java code calls C code through the JNI, in which it connects to an Intel SGX Enclave. I have a function in which I create an RSA-Key pair to be used further on. Create RSA Pair: sgx_status_t…
1
vote
1 answer

how so many codes run in SGX? isn't there any limitation?

sgx is widely used in edge/cloud computing. in fact they use SGX to run the user's code. but it's strange for me. what is the capacity of SGX? i mean how many codes we can run in SGX? doesn't it have limitation? how they run all of the user's code…
capstonene
  • 179
  • 11
1
vote
1 answer

SGX developement environment

I need to test run the following code SGXROP for my Bachelor's project. To achieve this, I want to have a development environment for SGX without the required hardware (both my computers have SGX compatible CPUs but I would prefer to have an…
1
vote
1 answer

How to write Confidential/SGX apps with Golang?

I would like to develop and deploy my Go microservices as SGX-/Confidential Computing app. What are the requirements?
jayare
  • 33
  • 2
1
vote
2 answers

http safe call using sgx enclave

I have a situation: I have a scenario that I must connect to a web server and I need to keep the response data safe: I connect to a REST API that will return credit card data. I sign the key in the trusted code and I sent the HTTP request in the…