Skip to content

wuyongzheng/minimal-sgx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Intel SGX Example

This is a minimal hello world-like sample program for Intel Software Guard Extensions. It consists of an untrusted app and a trusted enclave. The app passes two integers to the enclave which then computes their sum and returns it to the app. This code is based on digawp's hello-enclave

Prerequisites

To compile and run, you need:

  • A Linux system. Sorry. Windows is not supported, because real developers don't use Windows :)
  • Intel SGX SDK (for compiling)
  • Intel SGX PSW and Intel SGX Driver (for running)
  • An Intel CPU supporting SGX (for running).

How to compile

  1. Make sure SGX_SDK in the Makefile is correct.
  2. make

How to run

run ./app. You should see "Succeed: 8 + 17 = 25!"

About

Minimal Intel SGX Example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published