Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
[OLK-5.10]模块签名支持国密算法
Done
#I57J1N
Task
GUO Zihua
Opened this issue
2022-05-16 09:23
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 模块签名支持国密算法,需要内核支持国密证书加载,及国密算法签名的验证。 ## 背景: 内核全栈国密支持需要支持国密证书的加载(已经支持)以及国密模块签名的验证(需要提补丁)。其中国密模块签名验证需要内核正确解析PKCS#7格式的模块签名里的国密算法。 ## 验证方法: 1. 准备支持模块签名验证的环境。验证环境上使用国密证书进行验签。 2. 使用内核sign-files工具,对被测模块进行国密算法签名(哈希算法使用SM3,并使用国密证书和秘钥进行签名)。 3. 将签名后的模块上传至环境中,执行insmod插入模块。若签名后模块插入成功,未签名模块插入失败,则验证成功。 ## 验证结论: 未签名的test_nosig.ko安装失败,签名了的test_sig.ko安装成功。验证成功。 
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 模块签名支持国密算法,需要内核支持国密证书加载,及国密算法签名的验证。 ## 背景: 内核全栈国密支持需要支持国密证书的加载(已经支持)以及国密模块签名的验证(需要提补丁)。其中国密模块签名验证需要内核正确解析PKCS#7格式的模块签名里的国密算法。 ## 验证方法: 1. 准备支持模块签名验证的环境。验证环境上使用国密证书进行验签。 2. 使用内核sign-files工具,对被测模块进行国密算法签名(哈希算法使用SM3,并使用国密证书和秘钥进行签名)。 3. 将签名后的模块上传至环境中,执行insmod插入模块。若签名后模块插入成功,未签名模块插入失败,则验证成功。 ## 验证结论: 未签名的test_nosig.ko安装失败,签名了的test_sig.ko安装成功。验证成功。 
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
Assignees
Not set
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register