Skip to content

Commit 9f2ee17

Browse files
GUO Zihuaopsiff
authored andcommitted
keys: Allow automatic module signature with SM3
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8JZPP -------------------------------- Support SM3 algorithm for module automatic signature during "make modules_install" and "make modules_sign". Signed-off-by: GUO Zihua <guozihua@huawei.com> Reviewed-by: Xiu Jianfeng <xiujianfeng@huawei.com> Reviewed-by: Chao Liu <liuchao173@huawei.com> Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent d0263be commit 9f2ee17

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

kernel/module/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ config MODULE_SIG_SHA512
257257
bool "Sign modules with SHA-512"
258258
select CRYPTO_SHA512
259259

260+
config MODULE_SIG_SM3
261+
bool "Sign modules with SM3"
262+
select CRYPTO_SM3
263+
260264
endchoice
261265

262266
config MODULE_SIG_HASH
@@ -267,6 +271,7 @@ config MODULE_SIG_HASH
267271
default "sha256" if MODULE_SIG_SHA256
268272
default "sha384" if MODULE_SIG_SHA384
269273
default "sha512" if MODULE_SIG_SHA512
274+
default "sm3" if MODULE_SIG_SM3
270275

271276
choice
272277
prompt "Module compression mode"

0 commit comments

Comments
 (0)