提交 3ae87076 编写于 作者: G GUO Zihua 提交者: Zheng Zengkai

keys: Allow automatic module signature with SM3

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5K5HM
CVE: NA

--------------------------------

Support SM3 algorithm for module automatic signature during
"make modules_install" and "make modules_sign".
Signed-off-by: NGUO Zihua <guozihua@huawei.com>
Reviewed-by: NXiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: NChao Liu <liuchao173@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 147378c2
......@@ -2307,6 +2307,9 @@ config MODULE_SIG_SHA512
bool "Sign modules with SHA-512"
select CRYPTO_SHA512
config MODULE_SIG_SM3
bool "Sign modules with SM3"
select CRYPTO_SM3
endchoice
config MODULE_SIG_HASH
......@@ -2317,6 +2320,7 @@ config MODULE_SIG_HASH
default "sha256" if MODULE_SIG_SHA256
default "sha384" if MODULE_SIG_SHA384
default "sha512" if MODULE_SIG_SHA512
default "sm3" if MODULE_SIG_SM3
config MODULE_COMPRESS
bool "Compress modules on installation"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册