Backport uadk engine patch from linaro. Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com> (cherry picked from commit 4f6b3e8022834a09849728415c9ea73d7fdb794a)
29 lines
729 B
Diff
29 lines
729 B
Diff
From cf720869f7637e41ff1094d8bc640180fca55f75 Mon Sep 17 00:00:00 2001
|
|
From: Kai Ye <yekai13@huawei.com>
|
|
Date: Tue, 15 Mar 2022 17:07:59 +0800
|
|
Subject: [PATCH 36/36] cipher: sm4-ecb algorithm is deleted by mistake
|
|
|
|
Because sm4-ecb alg is deleted by mistake. So this alg
|
|
not be found in hardware V3.
|
|
|
|
Signed-off-by: Kai Ye <yekai13@huawei.com>
|
|
---
|
|
src/uadk_cipher.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/uadk_cipher.c b/src/uadk_cipher.c
|
|
index d6dd8e8..5ebad64 100644
|
|
--- a/src/uadk_cipher.c
|
|
+++ b/src/uadk_cipher.c
|
|
@@ -104,6 +104,7 @@ static int cipher_930_nids[] = {
|
|
NID_aes_128_xts,
|
|
NID_aes_256_xts,
|
|
NID_sm4_cbc,
|
|
+ NID_sm4_ecb,
|
|
NID_des_ede3_cbc,
|
|
NID_des_ede3_ecb,
|
|
NID_aes_128_cfb128,
|
|
--
|
|
2.24.4
|
|
|