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 490F3A0503; Fri, 20 May 2022 09:06:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57AAD42BD1; Fri, 20 May 2022 09:04:01 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 94BC942BFE for ; Fri, 20 May 2022 09:03:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653030239; x=1684566239; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=78qsQlFPG85bBUrWzk4rB0A7HRK/5KtLM7MlfmP8ZzM=; b=lxuIa94kUa5JxB91E4MiGr8qMRAcyY+ijR0YODdl2hGKoAP4i/vr8VW1 YbhqPsTs8jlsqXbcbbsiRg0lLO9Fy6UzMfEQelE8bSXfLvKQzgXr9Plai CQK1ItYNuZ97bVs9yOXP2Ikz2G5sDFTW0PnLfOS4qJLOjSodEYfrF0Zip OC4tdzpzSbg/xG20cx3oXXDc1lwVYdYiOTcrXd5/FU1rb9Svn26/Yjjq/ kEuLzESTkO0ZOUB1TuyalCKhReKiVEcc/e751rruRjQ+dsriMFWzISMOV RXRolJEZjHAyftaRQgncRMQrFvwGNBCIkynQyQr9ataUApVNLqXnfJtIZ A==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="333140497" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="333140497" 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:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="599058621" Received: from silpixa00399302.ir.intel.com ([10.237.214.136]) by orsmga008.jf.intel.com with ESMTP; 20 May 2022 00:03:57 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, anoobj@marvell.com, roy.fan.zhang@intel.com, Arek Kusztal Subject: [PATCH 35/40] common/cpt: reduce rsa struct to only necessary fields Date: Fri, 20 May 2022 06:54:40 +0100 Message-Id: <20220520055445.40063-36-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 - reduced rsa struct to only necessary fields. This commit reflects changes to the asymmetric crypto API. Signed-off-by: Arek Kusztal --- drivers/common/cpt/cpt_ucode_asym.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/common/cpt/cpt_ucode_asym.h b/drivers/common/cpt/cpt_ucode_asym.h index 1105a0c125..dafae61f6f 100644 --- a/drivers/common/cpt/cpt_ucode_asym.h +++ b/drivers/common/cpt/cpt_ucode_asym.h @@ -463,16 +463,16 @@ cpt_enqueue_rsa_op(struct rte_crypto_op *op, switch (rsa->op_type) { case RTE_CRYPTO_ASYM_OP_VERIFY: - cpt_rsa_prep(params, &sess->rsa_ctx, &rsa->sign); + cpt_rsa_prep(params, &sess->rsa_ctx, &rsa->input); break; case RTE_CRYPTO_ASYM_OP_ENCRYPT: - cpt_rsa_prep(params, &sess->rsa_ctx, &rsa->message); + cpt_rsa_prep(params, &sess->rsa_ctx, &rsa->input); break; case RTE_CRYPTO_ASYM_OP_SIGN: - cpt_rsa_crt_prep(params, &sess->rsa_ctx, &rsa->message); + cpt_rsa_crt_prep(params, &sess->rsa_ctx, &rsa->input); break; case RTE_CRYPTO_ASYM_OP_DECRYPT: - cpt_rsa_crt_prep(params, &sess->rsa_ctx, &rsa->cipher); + cpt_rsa_crt_prep(params, &sess->rsa_ctx, &rsa->input); break; default: op->status = RTE_CRYPTO_OP_STATUS_INVALID_ARGS; -- 2.13.6