Confidential computing framework for developing enclave apps on top of hardware TEE
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 年前 | ||
| 7 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 4 个月前 | ||
| 10 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 年前 |

secGear
介绍
secGear是开源的机密计算项目,致力于提供简单、易用的机密计算软件栈及解决方案,降低机密计算的使用门槛,推动机密计算生态发展。
组件
| 目录 | 用途 |
|---|---|
| sdk/src | 统一SDK:屏蔽Intel SGX、鲲鹏Trustzone以及RISC-V蓬莱TEE等SDK差异,提供统一API,实现不同架构共源码,提供代码生成工具,使用户聚焦业务,提升开发效率。开发可参考HelloWorld开发流程。 |
| sdk/component | 安全组件:提供通用安全组件货架,支持传统lib库集成方式快速集成,构建机密计算解决方案。 |
| service | 提供通用安全服务,如远程证明统一框架 ,支持快速集成、部署远程证明服务。 |
Quick start
Quick start with Intel SGX
环境要求
- 处理器:需要支持 Intel SGX (Intel Software Guard Extensions)功能
- 操作系统:openEuler 21.03、openEuler 20.03 LTS SP2或更高版本
Build and Run
// install build require
sudo yum install -y cmake ocaml-dune linux-sgx-driver sgxsdk libsgx-launch libsgx-urts intel-sgx-ssl-devel
// clone secGear repository
git clone https://gitee.com/openeuler/secGear.git
// build secGear core sdk
/*
* note: secGear component/secure_channnel requires service/attestation/attestation-agent,
* which should be built first.
*/
cd secGear/sdk
source environment
mkdir debug && cd debug && cmake -DENCLAVE=GP .. && make && sudo make install
// build an example after installing secGear, e.g. helloworld
cd examples/helloworld
mkdir debug && cd debug
cmake -DENCLAVE=GP ..
make && sudo make install
// run helloworld
./examples/helloworld/host/secgear_helloworld
Quick start with ARM TrustZone
环境搭建
- 参考鲲鹏官网
- 操作系统:openEuler 21.03、openEuler 20.03 LTS SP2或更高版本
Build and Run
// install dependencies
sudo yum install -y cmake ocaml-dune itrustee_sdk-devel openssl-devel
// clone secGear repository
git clone https://gitee.com/openeuler/secGear.git
// build secGear core sdk
/*
* note: secGear component/secure_channnel requires service/attestation/attestation-agent,
* which should be built first.
*/
cd secGear/sdk
source environment
mkdir debug && cd debug && cmake -DENCLAVE=GP .. && make && sudo make install
// build an example after installing secGear, e.g. helloworld
cd examples/helloworld
mkdir debug && cd debug
cmake -DENCLAVE=GP ..
make && sudo make install
// run helloworld
/vendor/bin/secgear_helloworld
使用sdk进行开发,请参考Guide
编译&部署远程证明服务框架及组件,请参考attestation/README
如何贡献
我们非常欢迎新贡献者加入到项目中来,也非常高兴能为新加入贡献者提供指导和帮助。在您贡献代码前,需要先签署CLA。
如果您有任何疑问或讨论,请通过issue或发送邮件到dev@openeuler.org和我们进行联系。
-
会议
每个月单周周四下午14:30-15:30召开SIG组例会,您可通过订阅dev@openeuler.org方式收到例会会议通知。
License
Mulan Permissive Software License Version 2