diff --git "a/docs/zh/docs/secGear/\345\274\200\345\217\221secGear\345\272\224\347\224\250\347\250\213\345\272\217.md" "b/docs/zh/docs/secGear/\345\274\200\345\217\221secGear\345\272\224\347\224\250\347\250\213\345\272\217.md" index 52a9a346bbcc7c453f0813d23042f9b82b3c7e46..c41e8ea0e24d8bfe2bececc8370419ceef13d65e 100644 --- "a/docs/zh/docs/secGear/\345\274\200\345\217\221secGear\345\272\224\347\224\250\347\250\213\345\272\217.md" +++ "b/docs/zh/docs/secGear/\345\274\200\345\217\221secGear\345\272\224\347\224\250\347\250\213\345\272\217.md" @@ -1,11 +1,10 @@ # secGear 开发指南 - 这里给出使用 secGear 开发一个 C 语言程序 helloworld 的例子,方便用户理解使用 secGear 开发应用程序。 ## 下载样例 -``` +```shell git clone https://gitee.com/openeuler/secGear.git ``` @@ -51,7 +50,7 @@ cd examples/helloworld 基于secGear做机密计算应用拆分改造,类似于独立功能模块提取,识别敏感数据处理逻辑,提取成独立的lib库,部署在可信执行环境中,对非安全侧提供的接口定义在EDL文件中。 -开发步骤如下图所示。 +开发步骤如下图所示: 1. 开发非安全侧main函数及接口,管理enclave并调用安全侧函数。 2. 开发EDL文件(类似C语言头文件定义非安全侧与安全侧交互接口) @@ -78,8 +77,6 @@ mkdir debug && cd debug && cmake -DENCLAVE=GP .. && make && sudo make install /vendor/bin/secgear_helloworld ``` - - ### x86环境 ```shell @@ -94,4 +91,3 @@ mkdir debug && cd debug && cmake .. && make && sudo make install // run helloworld ./examples/helloworld/host/secgear_helloworld ``` -