From patchwork Thu Sep 10 11:42:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 77139 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 79C11A04B5; Thu, 10 Sep 2020 13:46:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DA0FE1C0CC; Thu, 10 Sep 2020 13:46:14 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 3614B1BFC3 for ; Thu, 10 Sep 2020 13:46:14 +0200 (CEST) IronPort-SDR: R3kb6KVMuEuXyT/NGH85CZYbfJUpac5iR889BfYRVBdGhHwQ//R91Y3/RE5NUmChguTLN/OkyI r6AigyggKVEA== X-IronPort-AV: E=McAfee;i="6000,8403,9739"; a="146233888" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="146233888" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 04:46:13 -0700 IronPort-SDR: ym25caV4AncwZOOFSOYtqaUwgX/p+cO/2j7voHW1f9QDGd3Ili1M+lnAz+MDWG+dS1uIbuP4Rx 7A3Dz08TC2oA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="317883496" Received: from akusztax-mobl1.ger.corp.intel.com ([10.104.121.43]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 04:46:12 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: akhil.goyal@nxp.com, fiona.trahe@intel.com, anoobj@marvell.com, Arek Kusztal Date: Thu, 10 Sep 2020 13:42:35 +0200 Message-Id: <20200910114236.344-2-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20200910114236.344-1-arkadiuszx.kusztal@intel.com> References: <20200910114236.344-1-arkadiuszx.kusztal@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 1/2] app/test: remove list end references from asym crypto X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch removes RTE_CRYPTO_ASYM_OP_LIST_END reference from asymmetric crypto tests. Signed-off-by: Arek Kusztal --- app/test/test_cryptodev_asym.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_asym.c b/app/test/test_cryptodev_asym.c index dc62ed7bf..63a6bba4f 100644 --- a/app/test/test_cryptodev_asym.c +++ b/app/test/test_cryptodev_asym.c @@ -542,7 +542,8 @@ test_one_case(const void *test_case, int sessionless) printf(" %u) TestCase %s %s\n", test_index++, tc.modex.description, test_msg); } else { - for (i = 0; i < RTE_CRYPTO_ASYM_OP_LIST_END; i++) { + for (i = RTE_CRYPTO_ASYM_OP_ENCRYPT; + i <= RTE_CRYPTO_ASYM_OP_SHARED_SECRET_COMPUTE; i++) { if (tc.modex.xform_type == RTE_CRYPTO_ASYM_XFORM_RSA) { if (tc.rsa_data.op_type_flags & (1 << i)) { if (tc.rsa_data.key_exp) { @@ -1028,7 +1029,8 @@ static inline void print_asym_capa( rte_crypto_asym_xform_strings[capa->xform_type]); printf("operation supported -"); - for (i = 0; i < RTE_CRYPTO_ASYM_OP_LIST_END; i++) { + for (i = RTE_CRYPTO_ASYM_OP_ENCRYPT; + i <= RTE_CRYPTO_ASYM_OP_SHARED_SECRET_COMPUTE; i++) { /* check supported operations */ if (rte_cryptodev_asym_xform_capability_check_optype(capa, i)) printf(" %s", From patchwork Thu Sep 10 11:42:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 77140 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DFB59A04B5; Thu, 10 Sep 2020 13:46:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 396E31C0D4; Thu, 10 Sep 2020 13:46:21 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D59791C0D2 for ; Thu, 10 Sep 2020 13:46:19 +0200 (CEST) IronPort-SDR: u1VcRBsZi2R+rvx3kLkTNeg5IgFIlOp8zwloUpQFWvyMXWUkPbHfEVrwl6igeQG1+vySSalZsr hYsyFrsX3LUA== X-IronPort-AV: E=McAfee;i="6000,8403,9739"; a="222713079" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="222713079" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 04:46:18 -0700 IronPort-SDR: 4st7+K47zkpVJpWvE0J0wbDIeWc4+6+CucH14AXIXMzAINFiCY1848xKdV2fHDmkSEI6awMWl8 J391p0qfmFHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="317883511" Received: from akusztax-mobl1.ger.corp.intel.com ([10.104.121.43]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 04:46:17 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: akhil.goyal@nxp.com, fiona.trahe@intel.com, anoobj@marvell.com, Arek Kusztal Date: Thu, 10 Sep 2020 13:42:36 +0200 Message-Id: <20200910114236.344-3-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20200910114236.344-1-arkadiuszx.kusztal@intel.com> References: <20200910114236.344-1-arkadiuszx.kusztal@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 2/2] cryptodev: remove list ends from asymmetric crypto api X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch removes RTE_CRYPTO_ASYM_XFORM_TYPE_LIST_END, RTE_CRYPTO_ASYM_OP_LIST_END, RTE_CRYPTO_RSA_PADDING_TYPE_LIST_END enumerators from asymmetric crypto API. When asymmetric API will no more be experimental adding new entries will be possible without ABI breakage. Signed-off-by: Arek Kusztal --- lib/librte_cryptodev/rte_crypto_asym.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/librte_cryptodev/rte_crypto_asym.h b/lib/librte_cryptodev/rte_crypto_asym.h index 9c866f553..915a586c1 100644 --- a/lib/librte_cryptodev/rte_crypto_asym.h +++ b/lib/librte_cryptodev/rte_crypto_asym.h @@ -92,10 +92,8 @@ enum rte_crypto_asym_xform_type { /**< Elliptic Curve Digital Signature Algorithm * Perform Signature Generation and Verification. */ - RTE_CRYPTO_ASYM_XFORM_ECPM, + RTE_CRYPTO_ASYM_XFORM_ECPM /**< Elliptic Curve Point Multiplication */ - RTE_CRYPTO_ASYM_XFORM_TYPE_LIST_END - /**< End of list */ }; /** @@ -114,9 +112,8 @@ enum rte_crypto_asym_op_type { /**< DH Private Key generation operation */ RTE_CRYPTO_ASYM_OP_PUBLIC_KEY_GENERATE, /**< DH Public Key generation operation */ - RTE_CRYPTO_ASYM_OP_SHARED_SECRET_COMPUTE, + RTE_CRYPTO_ASYM_OP_SHARED_SECRET_COMPUTE /**< DH Shared Secret compute operation */ - RTE_CRYPTO_ASYM_OP_LIST_END }; /** @@ -131,9 +128,8 @@ enum rte_crypto_rsa_padding_type { */ RTE_CRYPTO_RSA_PADDING_OAEP, /**< RSA PKCS#1 OAEP padding scheme */ - RTE_CRYPTO_RSA_PADDING_PSS, + RTE_CRYPTO_RSA_PADDING_PSS /**< RSA PKCS#1 PSS padding scheme */ - RTE_CRYPTO_RSA_PADDING_TYPE_LIST_END }; /**