From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 75EC2A00C5; Thu, 15 Sep 2022 10:26:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54B0C4021D; Thu, 15 Sep 2022 10:26:48 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3520B40156 for ; Thu, 15 Sep 2022 10:26:47 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28ENmLmE023137; Thu, 15 Sep 2022 01:26:43 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=ndQgzeK3531jRPCds7W60bj4HYZpa2Oj/P13fzt+7H0=; b=MuuFxbKHsfjb6BQvqC4KKlDmdWv53dt+vM3ode8ISasMwa+IRH0h5c6yTzPtbCvrHewm nlrz7jLJeTxFrB4TvnPNbpUjqFIYbeyWbxo4nfIH7LpYo9rVg05y0ZJJ6vqJ9nJSWjh1 EXGVOvKYxLR9QTDINycKDq1jvDvmDYOga0U0r2UcjsYjqMIYhcCYTlrcHzIP0T/nadFg FbwQsMWLd+M4PRWjcigONT/PFLW2PFR9DvamEBj776hfVIwoIjhQOoUaT3CNwtILfkIS J6hJBgmOCsqWNWzTP2KG+wKwl5AfZU+bPHVgO9zyvvgqGnt3w/bya9M5iAi1DvZ3lS/9 EQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3jjy027c3r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 15 Sep 2022 01:26:43 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 15 Sep 2022 01:26:41 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 15 Sep 2022 01:26:41 -0700 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id EB29E3F7043; Thu, 15 Sep 2022 01:26:38 -0700 (PDT) From: Volodymyr Fialko To: , Akhil Goyal , Fan Zhang , Ravi Kumar CC: , , Volodymyr Fialko Subject: [PATCH] cryptodev: add missing algorithm strings Date: Thu, 15 Sep 2022 10:26:35 +0200 Message-ID: <20220915082635.418873-1-vfialko@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: OSRDhW2gCYiLIIuSfOCYvJsVKjsl-00Y X-Proofpoint-ORIG-GUID: OSRDhW2gCYiLIIuSfOCYvJsVKjsl-00Y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-15_04,2022-09-14_04,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org SHA3 family algorithms were missing in the array of algorithm strings. Fixes: 1df800f89518 ("crypto/ccp: support SHA3 family") Signed-off-by: Volodymyr Fialko --- lib/cryptodev/rte_cryptodev.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c index 42f3221052..35661f5347 100644 --- a/lib/cryptodev/rte_cryptodev.c +++ b/lib/cryptodev/rte_cryptodev.c @@ -130,6 +130,15 @@ rte_crypto_auth_algorithm_strings[] = { [RTE_CRYPTO_AUTH_SHA512] = "sha2-512", [RTE_CRYPTO_AUTH_SHA512_HMAC] = "sha2-512-hmac", + [RTE_CRYPTO_AUTH_SHA3_224] = "sha3-224", + [RTE_CRYPTO_AUTH_SHA3_224_HMAC] = "sha3-224-hmac", + [RTE_CRYPTO_AUTH_SHA3_256] = "sha3-256", + [RTE_CRYPTO_AUTH_SHA3_256_HMAC] = "sha3-256-hmac", + [RTE_CRYPTO_AUTH_SHA3_384] = "sha3-384", + [RTE_CRYPTO_AUTH_SHA3_384_HMAC] = "sha3-384-hmac", + [RTE_CRYPTO_AUTH_SHA3_512] = "sha3-512", + [RTE_CRYPTO_AUTH_SHA3_512_HMAC] = "sha3-512-hmac", + [RTE_CRYPTO_AUTH_KASUMI_F9] = "kasumi-f9", [RTE_CRYPTO_AUTH_SNOW3G_UIA2] = "snow3g-uia2", [RTE_CRYPTO_AUTH_ZUC_EIA3] = "zuc-eia3" -- 2.25.1