Skip to content

Commit f3d8889

Browse files
authored
Merge pull request #15 from dongbeiouba/mod1
增加1级密码模块使用说明文档
2 parents b4f7bb0 + 163ea67 commit f3d8889

7 files changed

+74
-3
lines changed

docs/api/ossl_syslog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 概述
1+
# OSSL_syslog日志接口
22

33
OSSL_syslog()函数用于向操作系统(syslog)输出日志,日志的类别为daemon。
44

docs/api/tsapi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 概述
1+
# TSAPI文档
22

33
Tongsuo密码库给应用程序提供的API,包括获取熵、生成随机数、SM2密钥对生成、SM2签名、SM2验签、SM2加密、SM2解密、SM2密钥导入、SM2密钥导出、
44
SM2密钥信封导入、SM2密钥信封导出、SM2密钥生成、SM2密钥删除、SM2密钥更新、SM4加密、SM4解密、SM3杂凑等功能。

docs/api/tsapi_sdf.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 概述
1+
# Tongsuo SDF接口文档
22

33
Tongsuo提供的SDF接口,需要结合密码设备使用,实际上封装了密码设备提供的SDF接口,提供对密码设备的统一访问能力。
44

docs/features/crypto-module-L1.md

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# 1级密码模块使用说明
2+
3+
## 密码模块基本信息
4+
5+
3个1级密码模块的产品名称、版本号、代码分支、证书和检测报告如下:
6+
7+
|平台|产品名称|版本号|代码分支|证书|检测报告|
8+
|---|---|---|---|---|---|
9+
|Android|BabaSSL移动端软件密码模块|8.2.1|8.2.1-gm|[证书](../../static/pdf/BabaSSL移动端软件密码模块证书.pdf)|待补充|
10+
|iOS|BabaSSL IOS端软件密码模块|8.3.0|8.3.0-gm|[证书](../../static/pdf/BabaSSL-IOS端软件密码模块证书.pdf)|待补充|
11+
|Linux|应用安全软件密码模块(Linux版)|8.3.1|8.3.1-gm|[证书](../../static/pdf/应用安全软件密码模块(Linux版)证书.pdf)|[检测报告](../../static/pdf/应用安全软件密码模块(Linux版)-检测报告.pdf)|
12+
13+
## 构建和安装
14+
15+
Android构建:
16+
17+
```bash
18+
git checkout 8.2.1-gm
19+
20+
# 构建测试版
21+
# ./config --prefix=/opt/babassl no-shared no-hw no-hw-padlock no-static-engine enable-tls1_3 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers no-evp-cipher-api-compat no-status no-dynamic-ciphers no-optimize-chacha no-rsa-multi-prime-key-compat no-session-lookup no-session-reused-type no-global-session-cache no-verify-sni no-skip-scsv enable-ntls enable-ssl-trace --debug -fPIC enable-gm
22+
23+
# 构建发布版
24+
./config --prefix=/opt/babassl no-shared no-hw no-hw-padlock no-static-engine enable-tls1_3 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers no-evp-cipher-api-compat no-status no-dynamic-ciphers no-optimize-chacha no-rsa-multi-prime-key-compat no-session-lookup no-session-reused-type no-global-session-cache no-verify-sni no-skip-scsv enable-ntls enable-ssl-trace --release -fPIC enable-gm
25+
26+
make -j
27+
28+
make install
29+
30+
# 为保证软件的完整性,需要使用符合要求的硬件生成二进制签名,步骤略
31+
32+
# 查看版本号
33+
TONGSUO_NO_SELF_TEST_INTEGRITY=1 TONGSUO_NO_PASSWORD=1 \
34+
/opt/babassl/bin/openssl version -g
35+
```
36+
37+
iOS构建:
38+
39+
```bash
40+
git checkout 8.3.0-gm
41+
42+
# 构建测试版
43+
# ./config no-shared enable-threads enable-tls1_3 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers no-evp-cipher-api-compat no-req-status no-status no-crypto-mdebug-count no-dynamic-ciphers no-optimize-chacha no-rsa-multi-prime-key-compat no-session-lookup no-session-reused-type no-global-session-cache no-verify-sni no-skip-scsv enable-ntls enable-crypto-mdebug-count enable-crypto-mdebug-backtrace enable-ssl-trace --debug -fPIC --prefix=/opt/babassl enable-gm --with-rand-seed=getrandom,egd,rtc -DSSL_DEBUG -DOPENSSL_NO_INTEGRITY
44+
45+
# 构建发布版
46+
./config no-shared enable-threads enable-tls1_3 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers no-evp-cipher-api-compat no-req-status no-status no-crypto-mdebug-count no-dynamic-ciphers no-optimize-chacha no-rsa-multi-prime-key-compat no-session-lookup no-session-reused-type no-global-session-cache no-verify-sni no-skip-scsv enable-ntls enable-crypto-mdebug-count enable-crypto-mdebug-backtrace enable-ssl-trace --release -fPIC --prefix=/opt/babassl enable-gm --with-rand-seed=getrandom,egd,rtc
47+
48+
make -j
49+
50+
make install
51+
52+
# 为保证软件的完整性,需要使用符合要求的硬件生成二进制签名,步骤略
53+
54+
# 查看版本号
55+
OPENSSL_NO_INTEGRITY=1 OPENSSL_NO_AUTH=1 \
56+
/opt/babassl/bin/openssl version -g
57+
58+
```
59+
60+
Linux构建:
61+
62+
```bash
63+
git checkout 8.3.1-gm
64+
65+
# 构建过程同与iOS构建过程相同
66+
```
67+
68+
## 免责声明
69+
70+
- 所有用户在使用以上密码模块时,请务必遵守密码相关的法律法规和有关部门的要求,否则由此产生的法律责任由使用方自行承担。
71+
- 以上密码模块的源代码仅供参考,如果基于以上源代码再次申请商用密码产品认证或其他资质,请务必遵守相关的密码产品检测现行标准和要求,具体要求以实际选择的商用密码检测机构为准。
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)