39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From f5787232f4f5cb09445bfc87d20cb2b43f5e5ea3 Mon Sep 17 00:00:00 2001
|
|
From: Longfang Liu <liulongfang@huawei.com>
|
|
Date: Mon, 11 Mar 2024 16:14:34 +0800
|
|
Subject: [PATCH 33/44] uadk_tool: fix aead performance test issue
|
|
|
|
In the current UADK code, due to the new support for aead stream mode,
|
|
a new msg_state state has been added. If the initial value is not
|
|
assigned, an error will occur in the block mode check.
|
|
As a result, the performance test cannot be executed.
|
|
|
|
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
|
|
---
|
|
uadk_tool/benchmark/sec_uadk_benchmark.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/uadk_tool/benchmark/sec_uadk_benchmark.c b/uadk_tool/benchmark/sec_uadk_benchmark.c
|
|
index c99ae89..92e967a 100644
|
|
--- a/uadk_tool/benchmark/sec_uadk_benchmark.c
|
|
+++ b/uadk_tool/benchmark/sec_uadk_benchmark.c
|
|
@@ -1165,6 +1165,7 @@ static void *sec_uadk_aead_async(void *arg)
|
|
areq.mac_bytes = auth_size;
|
|
areq.assoc_bytes = SEC_AEAD_LEN;
|
|
areq.in_bytes = g_pktlen;
|
|
+ areq.msg_state = 0;
|
|
if (pdata->is_union)
|
|
areq.mac_bytes = 32;
|
|
if (areq.op_type) // decrypto
|
|
@@ -1396,6 +1397,7 @@ static void *sec_uadk_aead_sync(void *arg)
|
|
areq.assoc_bytes = SEC_AEAD_LEN;
|
|
areq.in_bytes = g_pktlen;
|
|
areq.mac_bytes = g_maclen;
|
|
+ areq.msg_state = 0;
|
|
if (areq.op_type) // decrypto
|
|
areq.out_bytes = g_pktlen + 16; // aadsize = 16;
|
|
else
|
|
--
|
|
2.25.1
|
|
|