From patchwork Fri May 20 05:54:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 111503 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 11E57A0503; Fri, 20 May 2022 09:04:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01CA542BD9; Fri, 20 May 2022 09:03:20 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id E4D8D42BD4 for ; Fri, 20 May 2022 09:03:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653030199; x=1684566199; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Pgjgqo5KoSGNippml0XkX+84DU32L1+pqSxPjdAFGZ8=; b=N8FafYJgiW/eSolFqm3x8WdW0paVaZAKsbeb0y/cf8CDtGE1yH32PgwJ RtLxG+8rtuHZaBS/OObhCjQm4XYQQN4sC+CpNry9uv3ZKgRxHkJPAXqtY XYwj5apEseoqHbNjYnmsDvY3vC429ACZ2tX+nK3+XmK2TpQwocBbqMAmg N6rbAMTRjWdrPnTmAMj32gYYu9kgR1BqeCRjRBqtS/2mH5vAP9ZB6o0ip T5C9JCsANTiFPTsULYVLjZcnBuClwlPQW1VO2hAp7oA6MuG3OMuqLHXcG sQFu4CEX2UeoONCbysU7NBXmtfW4VaRyCccCOcvRiEB4tUZqbIMFx2DBN Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="333140382" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="333140382" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2022 00:03:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="599058363" Received: from silpixa00399302.ir.intel.com ([10.237.214.136]) by orsmga008.jf.intel.com with ESMTP; 20 May 2022 00:03:17 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, anoobj@marvell.com, roy.fan.zhang@intel.com, Arek Kusztal Subject: [PATCH 19/40] cryptodev: changed order of dh fields Date: Fri, 20 May 2022 06:54:24 +0100 Message-Id: <20220520055445.40063-20-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20220520055445.40063-1-arkadiuszx.kusztal@intel.com> References: <20220520055445.40063-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 - changed order of Diffie-Hellman struct fields. Now order of Diffie-Hellman struct members corresponds to order of operation in Diffie-Hellman key exchange. Signed-off-by: Arek Kusztal --- lib/cryptodev/rte_crypto_asym.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h index 728a98f02e..52cb1c5c80 100644 --- a/lib/cryptodev/rte_crypto_asym.h +++ b/lib/cryptodev/rte_crypto_asym.h @@ -379,6 +379,13 @@ struct rte_crypto_rsa_op_param { struct rte_crypto_dh_op_param { enum rte_crypto_asym_ke_type op_type; /**< Key exchange operation type */ + rte_crypto_uint priv_key; + /**< + * Output generated private key when op_type is + * DH PRIVATE_KEY_GENERATION + * Input when op_type is DH SHARED_SECRET_COMPUTATION. + * + */ rte_crypto_uint pub_key; /**< * Output generated public key when op_type is @@ -387,15 +394,6 @@ struct rte_crypto_dh_op_param { * SHARED_SECRET_COMPUTATION * */ - - rte_crypto_uint priv_key; - /**< - * Output generated private key when op_type is - * DH PRIVATE_KEY_GENERATION - * Input when op_type is DH SHARED_SECRET_COMPUTATION. - * - */ - rte_crypto_uint shared_secret; /**< * Output with calculated shared secret