Update some patch for uadk from mainline. To get more infomation, please visit the homepage: https://github.com/Linaro/uadk Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
48 lines
1.3 KiB
Diff
48 lines
1.3 KiB
Diff
From 4e2b91f8079ad1195e20c730cda4e33643918257 Mon Sep 17 00:00:00 2001
|
|
From: Kai Ye <yekai13@huawei.com>
|
|
Date: Tue, 8 Mar 2022 16:14:17 +0800
|
|
Subject: [PATCH 085/109] drv/sec: support sm4-ecb alg by new fs
|
|
|
|
Kunpeng 920 can supports sm4-ecb by test, and has
|
|
been updated the chip fs.
|
|
|
|
Signed-off-by: Kai Ye <yekai13@huawei.com>
|
|
---
|
|
drv/hisi_sec.c | 4 ----
|
|
v1/drv/hisi_sec_udrv.c | 4 ----
|
|
2 files changed, 8 deletions(-)
|
|
|
|
diff --git a/drv/hisi_sec.c b/drv/hisi_sec.c
|
|
index 264d850..16fcb5f 100644
|
|
--- a/drv/hisi_sec.c
|
|
+++ b/drv/hisi_sec.c
|
|
@@ -656,10 +656,6 @@ static int fill_cipher_bd2_mode(struct wd_cipher_msg *msg,
|
|
|
|
switch (msg->mode) {
|
|
case WD_CIPHER_ECB:
|
|
- if (msg->alg == WD_CIPHER_SM4) {
|
|
- WD_ERR("kunpeng 920 not support ECB(SM4)!\n");
|
|
- return -WD_EINVAL;
|
|
- }
|
|
c_mode = C_MODE_ECB;
|
|
break;
|
|
case WD_CIPHER_CBC:
|
|
diff --git a/v1/drv/hisi_sec_udrv.c b/v1/drv/hisi_sec_udrv.c
|
|
index 7345baf..3e1e7d1 100644
|
|
--- a/v1/drv/hisi_sec_udrv.c
|
|
+++ b/v1/drv/hisi_sec_udrv.c
|
|
@@ -165,10 +165,6 @@ static int fill_cipher_bd2_mode(struct wcrypto_cipher_msg *msg,
|
|
|
|
switch (msg->mode) {
|
|
case WCRYPTO_CIPHER_ECB:
|
|
- if (msg->alg == WCRYPTO_CIPHER_SM4) {
|
|
- WD_ERR("kunpeng 920 not support ECB(SM4)!\n");
|
|
- return -WD_EINVAL;
|
|
- }
|
|
sqe->type2.c_mode = C_MODE_ECB;
|
|
break;
|
|
case WCRYPTO_CIPHER_CBC:
|
|
--
|
|
2.27.0
|
|
|