!37 [sync] PR-34: Fix sm3 algorithm name

From: @openeuler-sync-bot 
Reviewed-by: @zhujianwei001 
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2022-08-02 01:25:21 +00:00 committed by Gitee
commit f2d24d4ae6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 39c3519f6c6c3a71826762dff9736e00ca17fc2e Mon Sep 17 00:00:00 2001
From: luhuaxin <luhuaxin1@huawei.com>
Date: Thu, 28 Jul 2022 00:32:12 +0800
Subject: [PATCH] fix sm3 algorithm name
Signed-off-by: luhuaxin <luhuaxin1@huawei.com>
---
lib/kernel_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/kernel_lib.c b/lib/kernel_lib.c
index 2f0caff..d6733f2 100644
--- a/lib/kernel_lib.c
+++ b/lib/kernel_lib.c
@@ -38,7 +38,7 @@ const char *const hash_algo_name[HASH_ALGO__LAST] = {
[HASH_ALGO_TGR_128] = "tgr128",
[HASH_ALGO_TGR_160] = "tgr160",
[HASH_ALGO_TGR_192] = "tgr192",
- [HASH_ALGO_SM3_256] = "sm3-256",
+ [HASH_ALGO_SM3_256] = "sm3",
};
const int hash_digest_size[HASH_ALGO__LAST] = {
--
2.33.0

View File

@ -1,6 +1,6 @@
name: digest-list-tools
Version: 0.3.95
Release: 5
Release: 6
Summary: Utilities for IMA Digest Lists extension
Source0: https://gitee.com/openeuler/%{name}/repository/archive/v%{version}.tar.gz
@ -12,6 +12,7 @@ Patch0: fix-multiple-definition-of-pgp_algo_mapping.patch
Patch1: fix-digestlist-conf-warning.patch
Patch2: fix-a-typo-in-kernel_lib.h.patch
Patch3: fix-duplicated-kernel-parameters.patch
Patch4: Fix-sm3-algorithm-name.patch
BuildRequires: autoconf automake libcurl-devel libtool rpm-devel dracut gzip
BuildRequires: libcap-devel libcmocka-devel libselinux-devel
@ -123,6 +124,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/%{name}.1.gz
%changelog
* Sat Jul 30 2022 luhuaxin <luhuaxin1@huawei.com> - 0.3.95-6
- Fix sm3 algorithm name
* Thu Dec 2 2021 Anakin Zhang <zhangtianxing3@huawei.com> - 0.3.95-5
- Fix typo and duplicated kernel parameters