Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rupc/go-with-intel-sgx
Intel SGX with GoLang
https://github.com/rupc/go-with-intel-sgx
cgo golang intel-sgx
Last synced: 3 months ago
JSON representation
Intel SGX with GoLang
- Host: GitHub
- URL: https://github.com/rupc/go-with-intel-sgx
- Owner: rupc
- License: mit
- Created: 2017-07-16T09:24:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T15:55:04.000Z (over 5 years ago)
- Last Synced: 2024-06-16T04:34:55.555Z (5 months ago)
- Topics: cgo, golang, intel-sgx
- Language: C++
- Homepage:
- Size: 1.4 MB
- Stars: 45
- Watchers: 8
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-SGX-Open-Source - https://github.com/rupc/go-with-intel-sgx
- awesome-sgx - GO - Intel SGX with GoLang. (Programming Languages)
README
# Go with Intel SGX
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)]()**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](https://github.com/intel/linux-sgx/tree/sgx_2.5/SampleCode/Cxx11SGXDemo) which is one of the official sample codes by [linux-sgx](https://github.com/intel/linux-sgx/tree/sgx_2.5/). A plan to add more sample examples as in sgxsdk/SampleCode/ (e.g., RemoteAttestation) is going to be done.