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 CB7D045AE9; Tue, 8 Oct 2024 21:29:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EA2AB40BA2; Tue, 8 Oct 2024 21:29:35 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 6EA7840695 for ; Tue, 8 Oct 2024 21:29:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728415774; x=1759951774; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=UOwWtiwGQf+HNv+azj4scXfslXaBMxymda/iUSg0+jk=; b=D7w69BYWhXfQ+B1rsW7TDfXxkdsOyUOH22/MVQWkwJMHIH4OzVzHDY0t RDhOS8zXqWnZjAaJYMmyObXC166i1mU1LELQ1aFB/N5FVGV5IPIsY4mZz 7J5U/5hEo8AiXOem6BK+xj0NxWp+A9//L5Y563cAbIwYBme1zhRQDMJqQ 6m1afEumGIfGad6DvF5YwYMvsVuc3tfc3rNYh6HTtyt1N/FF/V5LPE9+M 7H6xWuIMHuZmyGmEEGBsjgZ0biLlkkjftcV+MccCJ2xPpCbHQzaivUUGq 5Cxcv8b2TooPpss2bght9fdDl+e2neM175EHYwagzDf9q8GxFCsgfMnGo w==; X-CSE-ConnectionGUID: 9h8jwWPFRq2wCPcHMrI7fQ== X-CSE-MsgGUID: ITNQJwvAQk++26CpbWJ3rw== X-IronPort-AV: E=McAfee;i="6700,10204,11219"; a="27808841" X-IronPort-AV: E=Sophos;i="6.11,187,1725346800"; d="scan'208";a="27808841" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2024 12:29:34 -0700 X-CSE-ConnectionGUID: blon5TMMQ9u5ciuztrDf8g== X-CSE-MsgGUID: nZx81yGJRdW48GgoFSGcAg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,187,1725346800"; d="scan'208";a="80540582" Received: from silpixa00399302.ir.intel.com ([10.237.214.22]) by fmviesa004.fm.intel.com with ESMTP; 08 Oct 2024 12:29:32 -0700 From: Arkadiusz Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, brian.dooley@intel.com, Arkadiusz Kusztal Subject: [PATCH v4 1/4] cryptodev: reorder structures in asym crypto header Date: Tue, 8 Oct 2024 19:14:30 +0100 Message-Id: <20241008181433.57591-2-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20241008181433.57591-1-arkadiuszx.kusztal@intel.com> References: <20241008062845.11071-1-arkadiuszx.kusztal@intel.com> <20241008181433.57591-1-arkadiuszx.kusztal@intel.com> 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 Asymmetric-crypto header has a simple structure that allows to keep logically separate blocks together. Therefore, xforms, ops, and generic structs may be appropriately ordered. This patch moves sm2-op structs to be placed along other algorithms-op structs. Signed-off-by: Arkadiusz Kusztal --- lib/cryptodev/rte_crypto_asym.h | 68 ++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h index 157f597d5d..1b54774fee 100644 --- a/lib/cryptodev/rte_crypto_asym.h +++ b/lib/cryptodev/rte_crypto_asym.h @@ -600,40 +600,6 @@ struct rte_crypto_ecpm_op_param { }; /** - * Asymmetric crypto transform data - * - * Structure describing asym xforms. - */ -struct rte_crypto_asym_xform { - struct rte_crypto_asym_xform *next; - /**< Pointer to next xform to set up xform chain.*/ - enum rte_crypto_asym_xform_type xform_type; - /**< Asymmetric crypto transform */ - - union { - struct rte_crypto_rsa_xform rsa; - /**< RSA xform parameters */ - - struct rte_crypto_modex_xform modex; - /**< Modular Exponentiation xform parameters */ - - struct rte_crypto_modinv_xform modinv; - /**< Modular Multiplicative Inverse xform parameters */ - - struct rte_crypto_dh_xform dh; - /**< DH xform parameters */ - - struct rte_crypto_dsa_xform dsa; - /**< DSA xform parameters */ - - struct rte_crypto_ec_xform ec; - /**< EC xform parameters, used by elliptic curve based - * operations. - */ - }; -}; - -/** * SM2 operation capabilities */ enum rte_crypto_sm2_op_capa { @@ -710,6 +676,40 @@ struct rte_crypto_sm2_op_param { }; /** + * Asymmetric crypto transform data + * + * Structure describing asym xforms. + */ +struct rte_crypto_asym_xform { + struct rte_crypto_asym_xform *next; + /**< Pointer to next xform to set up xform chain.*/ + enum rte_crypto_asym_xform_type xform_type; + /**< Asymmetric crypto transform */ + + union { + struct rte_crypto_rsa_xform rsa; + /**< RSA xform parameters */ + + struct rte_crypto_modex_xform modex; + /**< Modular Exponentiation xform parameters */ + + struct rte_crypto_modinv_xform modinv; + /**< Modular Multiplicative Inverse xform parameters */ + + struct rte_crypto_dh_xform dh; + /**< DH xform parameters */ + + struct rte_crypto_dsa_xform dsa; + /**< DSA xform parameters */ + + struct rte_crypto_ec_xform ec; + /**< EC xform parameters, used by elliptic curve based + * operations. + */ + }; +}; + +/** * Asymmetric Cryptographic Operation. * * Structure describing asymmetric crypto operation params. -- 2.13.6