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 467E5A0503; Fri, 20 May 2022 09:05:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A686242BF1; Fri, 20 May 2022 09:03:38 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 01AAA42BEB for ; Fri, 20 May 2022 09:03:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653030217; x=1684566217; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=lGGqjVscYWDAOVT5Zz2MCtfWjEC2Q6troKymjk2cK60=; b=aWWMoS5onqnJohFIsQKk5IcmNwmBftCOhqvXnklRHq3sBGEKbfBXsCAr QtD3UZ/r+C904IMAnchryui87fe/BdVG+GYISrR0I4jQz8KSzkk0Rg188 VgqTvUCsQSlPepEhIKruCeu+YtZ//1KgfZZEY+aKJeVEmw0ODPTCxy/Mg PB/mfBGobg3IOC87GC50c2/4vQ7OkeniUfCO+vHYuUU08iSOyqLXcXhXz ot8fOcgwOt6KOnghjj7ciP2ubeVbxMcuqI0278NPhg1Wi7EGedvpukxMx 41Iy8j5/DuIgyzWfpre5thv5ksDfQ5RhtB82WIJm6944XtSY94zXOLqoP w==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="333140424" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="333140424" 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:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="599058493" Received: from silpixa00399302.ir.intel.com ([10.237.214.136]) by orsmga008.jf.intel.com with ESMTP; 20 May 2022 00:03:35 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, anoobj@marvell.com, roy.fan.zhang@intel.com, Arek Kusztal Subject: [PATCH 27/40] common/cpt: move RSA padding into separate struct Date: Fri, 20 May 2022 06:54:32 +0100 Message-Id: <20220520055445.40063-28-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 - move RSA padding into separate struct. This commit reflects changes to the asymmetric crypto API. Signed-off-by: Arek Kusztal --- drivers/common/cpt/cpt_ucode_asym.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/cpt/cpt_ucode_asym.h b/drivers/common/cpt/cpt_ucode_asym.h index f5d91f2583..1105a0c125 100644 --- a/drivers/common/cpt/cpt_ucode_asym.h +++ b/drivers/common/cpt/cpt_ucode_asym.h @@ -327,7 +327,7 @@ cpt_rsa_prep(struct asym_op_params *rsa_params, /* Result buffer */ rlen = mod_len; - if (rsa_op.pad == RTE_CRYPTO_RSA_PADDING_NONE) { + if (rsa_op.padding.type == RTE_CRYPTO_RSA_PADDING_NONE) { /* Use mod_exp operation for no_padding type */ vq_cmd_w0.s.opcode.minor = CPT_MINOR_OP_MODEX; vq_cmd_w0.s.param2 = exp_len; @@ -412,7 +412,7 @@ cpt_rsa_crt_prep(struct asym_op_params *rsa_params, /* Result buffer */ rlen = mod_len; - if (rsa_op.pad == RTE_CRYPTO_RSA_PADDING_NONE) { + if (rsa_op.padding.type == RTE_CRYPTO_RSA_PADDING_NONE) { /*Use mod_exp operation for no_padding type */ vq_cmd_w0.s.opcode.minor = CPT_MINOR_OP_MODEX_CRT; } else { -- 2.13.6