登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
8
Star
1
Fork
50
src-anolis-os
/
openssl
代码
Issues
3
Pull Requests
2
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
21
SM2: Add distid parameter for signature sign and verify
已合并
Tianjia Zhang:sm2za
src-anolis-os:a8
Tianjia Zhang
创建于 2022-11-28 16:56
克隆/下载
HTTPS
SSH
复制
下载 Email Patch
下载 Diff 文件
According to the specifications GM/T 0003.2-2012 and GM/T 0003.5-2012, the SM2 algorithm signature requires a Za value when generating the hash required for signature. The Za value is generated by the fixed parameter of the elliptic curve, the public key and the user entered identifiable ID. This patch adds a distid parameter to specify the ID during signature sign and verification. An example usage for generating a self signed CA certificate is as follows: openssl ecparam -genkey -name SM2 -text -out ca.key openssl req -verbose -new -days 10000 -x509 \ -sm3 -sigopt "distid:1234567812345678" \ -config genkey.conf \ -key ca.key \ -out ca.crt The genkey.conf file content is as follows: [ req ] distinguished_name = req_distinguished_name prompt = no string_mask = utf8only x509_extensions = v3_ca [ req_distinguished_name ] O = rfc8998-CA CN = RFC8998 certificate signing key emailAddress = ca@rfc8998-ca [ v3_ca ] basicConstraints=CA:TRUE subjectKeyIdentifier=hash authorityKeyIdentifier=keyid:always,issuer [ skid ] basicConstraints=CA:TRUE subjectKeyIdentifier=12345678 authorityKeyIdentifier=keyid:always,issuer
此 Pull Request 需要通过一些审核项
类型
指派人员
状态
审查
Meredith
geliwei
jiangbo.jacob
已完成
(0/0人)
怎样手动合并此 Pull Request
git checkout a8
git pull https://gitee.com/uudiin/openssl.git sm2za
git push origin a8
评论
23
提交
1
文件
2
检查
代码问题
0
批量操作
展开设置
折叠设置
审查
Code Owner
审查人员
gongwen2021
gongwen2021
happy_orange
happy_orange
geliwei
geliwei
casparant
casparant
ZhouWeitao
yunqi-zwt
jiangbo.jacob
jiangbojacob
forrest_ly
forrest_ly
Meredith
yueeranna
未设置
最少人数
0
测试
gongwen2021
gongwen2021
happy_orange
happy_orange
geliwei
geliwei
casparant
casparant
ZhouWeitao
yunqi-zwt
jiangbo.jacob
jiangbojacob
forrest_ly
forrest_ly
Meredith
yueeranna
未设置
最少人数
0
优先级
不指定
严重
主要
次要
不重要
标签
anolis_cla_pass
anolis_test_pass
关联 Issue
未关联
Pull Request 合并后将关闭上述关联 Issue
里程碑
未关联里程碑
参与者
(4)
1
https://gitee.com/src-anolis-os/openssl.git
git@gitee.com:src-anolis-os/openssl.git
src-anolis-os
openssl
openssl
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册