Giter Site home page Giter Site logo

go-with-intel-sgx's Introduction

Go with Intel SGX

license

go-with-intel-sgx shows how to call C/C++ functions of Intel SGX enclave in Go language using cgo interface.

After compiling in each sample codes in a SampleCode directory, it creates a libtee which calls C/C++ functions for using enclave functionalities.

How to test

source $SGX_SDK/environment # not needed when you already have it
git clone https://github.com/rupc/go-with-intel-sgx
cd go-with-intel-sgx/SampleCode/Cxx11SGXDemo/
make && make cgo

(It is tested under SGX v2.5)

TODO

Currently, I only added Cxx11SGXDemo which is one of the official sample codes by linux-sgx. A plan to add more sample examples as in sgxsdk/SampleCode/ (e.g., RemoteAttestation) is going to be done.

go-with-intel-sgx's People

Contributors

digawp avatar mjkim avatar rupc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-with-intel-sgx's Issues

make cgo can't work

Dear go-with-intel-sgx developer,
official sample can work correctly on my machine, but make cgo doesn't work since cannot find some .h files, here is the results I got:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. go run cgo.go
# command-line-arguments
In file included from ./cgo.go:4:0:
./App/App.h:40:48: fatal error: sgx_error.h: No such file or directory
compilation terminated.
Makefile:273: recipe for target 'cgo' failed
make: *** [cgo] Error 2

I would be grateful if you can tell me what's going on. ๐Ÿ˜‰

error with Make

make and other such build commands do not work, make cgo works since the library has already been built and included in the repository. Can someone elaborate on how to build the Enclave and library?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.