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 D9A7045ADE; Tue, 8 Oct 2024 13:48:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA44B406BA; Tue, 8 Oct 2024 13:48:50 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mails.dpdk.org (Postfix) with ESMTP id BD9974026F for ; Tue, 8 Oct 2024 13:48:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728388129; x=1759924129; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=prhdKXEdVPVBwTMMODwsjZftF0ncQSwGkDoeZtD6xA8=; b=h+bGF4vcJ3fQ1qZ02rTJiTFWq6GXwXozfPv1yoGQI3joNLERV93l8957 TZFeCq1txpEGD1N5q5RXU9X/O4FTIXbjwtguN5rEQd2s36gYytIt1YN1p 0RbgDN6OBjWrDdmYRkZTgKSHRFIVkSdL+RqiaxXqKLHhlA5SLMB6I8GLL clIyZE6pAmkOFaZgApQg7xZinDGCmzmTX2UCW6I+TKbgwHJqzLySU5agK 9yX5BCYAq6Qi00IZGkxhcEC0h+r11Agtvcq6ZXUs76f0bxfUXP5bT8Pqy zzodrcYTqTsMjRiBUQiagF4WtBu8oBmEBHrSvGZhE4pjn9QbZS8jAGn9V w==; X-CSE-ConnectionGUID: qkk1JX9WRFaxa2d9s2q36g== X-CSE-MsgGUID: +aLgkdFlR1CTJbT0YBF/TA== X-IronPort-AV: E=McAfee;i="6700,10204,11218"; a="27526061" X-IronPort-AV: E=Sophos;i="6.11,186,1725346800"; d="scan'208";a="27526061" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2024 04:48:48 -0700 X-CSE-ConnectionGUID: lHdh7bV8QDyJkbbT/wsX6g== X-CSE-MsgGUID: 4AlupzhXSWSVwcHyr2hU8A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,186,1725346800"; d="scan'208";a="106562980" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Oct 2024 04:48:47 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 8 Oct 2024 04:48:47 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 8 Oct 2024 04:48:46 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Tue, 8 Oct 2024 04:48:46 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.44) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 8 Oct 2024 04:48:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aEbaCGmGG6s3Li3cIYC6EpvVDxE2V/Nam+/HwembWmYF4TQuKjHU9POSO9/HtVNiyHmSIv0QV+lQHV8A4nZuDjME8S3Syi65DodwHD7h2IwI/5KO/l5hdQTO/hX9I3xh+IWb2fWVkCof6pbTWgbddGt/cd66eoWh+PuZLCZRw5BkpsX5VkYO2cRR6rlHSmQvVR+MilNaezu2Xun0Cc7ScozS3grdrdpKzQkaw36Hzwdi2BHiTeU69YVbc/VW6vC2YV3WHGjWZ/CmzvgsUIDvvzc45/Sd0aaKp+GeHTjCKw1fClWGS6PL5Y3ObezXxK/uWhJ7GcMVpkSJFbGIecJtKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yG7ZSeU/YEggZisWfDzqmsX81C/BWBEvL66txdpiESI=; b=ONBn0ZwRykkYg5jtC7e6C4DOr7mddoulC/bvTxdIQgYvilBWoKUMdgFaeoz3l0F9RpqV/bLSrf8aQMnk5Rq5bWiD72lX+tC5H+xDRCLT793ztFNUgIvTFUZDWbjgKkDDg6cxeuC50snLZZPvyVGscw/vNJHvm/YBT5tZo9YHi0dkV8SLLa0rbSWjuiibsHNlcXt4S0rieXy3boHqTBheg5veBZjGC1v8wfocuw7xraFfERiKa2/Akv/9cKJulHzHNqWeXv6oTo7LpGGk6jjJReiK+zgjmFMcLAIu9AQTB3MxgFL+sdjqUiqBri8XkZ5lvTliV+kLd3q98eTck597Ig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH0PR11MB5013.namprd11.prod.outlook.com (2603:10b6:510:30::21) by IA0PR11MB7380.namprd11.prod.outlook.com (2603:10b6:208:430::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.22; Tue, 8 Oct 2024 11:48:43 +0000 Received: from PH0PR11MB5013.namprd11.prod.outlook.com ([fe80::1c54:1589:8882:d22b]) by PH0PR11MB5013.namprd11.prod.outlook.com ([fe80::1c54:1589:8882:d22b%3]) with mapi id 15.20.8026.020; Tue, 8 Oct 2024 11:48:43 +0000 From: "Kusztal, ArkadiuszX" To: Akhil Goyal , "dev@dpdk.org" CC: "Dooley, Brian" Subject: RE: [EXTERNAL] [PATCH v3 1/4] cryptodev: add partial sm2 feature flag Thread-Topic: [EXTERNAL] [PATCH v3 1/4] cryptodev: add partial sm2 feature flag Thread-Index: AQHbGVXX2VLjzxxiW0G6HOK0eFTcALJ8vMWAgAAAXOA= Date: Tue, 8 Oct 2024 11:48:43 +0000 Message-ID: References: <20240929172912.87859-1-arkadiuszx.kusztal@intel.com> <20241008062845.11071-1-arkadiuszx.kusztal@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB5013:EE_|IA0PR11MB7380:EE_ x-ms-office365-filtering-correlation-id: e643683a-30b3-4a5b-1045-08dce78f2925 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?h5lplea6GwXVsdcqPmb8+KJj/1xSBHtgfvZXuO5x0sbdz9LOJOcPqyhgOAAe?= =?us-ascii?Q?9I731GEvU80XMsa5+UU0g3JJFB7bMtAYsk6N8IkBmeFj3l54NXhrhz6Ge4iE?= =?us-ascii?Q?5erZ7xDATFs7xMYZiNZFYd4N3S1Q/8196kmOQKvhb6NvcpGxMjXZTogzBfOC?= =?us-ascii?Q?aNOv3DeWWSvsxuWzHMOi7TUmE05EHCOEZPhl7/fIfGhwsEtUsYCiHqtuasJU?= =?us-ascii?Q?ncLhZEjrlmkgC1bS6zxRFDflq365KNDnZ7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eXQtte9NFp2X+qohCS3SMxrI2noiBt1A05U/1RrEzPFIi1ksGn+N2y7?= =?us-ascii?Q?8VkEkKl8TRLHmtv6xWj4vF0cKUYd9ryrqA71vWleWjHwUPipJ3cP3U46wuaD?= =?us-ascii?Q?So7hCPGVmiXACfmQS1qhxRbZKPrn6ILOVYjDQaAEFbbXD1mDQ65UEwkTVA/i?= =?us-ascii?Q?GvyLsSuaF2HdJyVVSuIcYGjGr+eDHGrtSMV/VQB3K5SHrw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5013.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9abhnkd4zjKm16deekh879JxReNn7Qvc9RUPqRk+hJDqSvoq+Eq/hu2nsdom?= =?us-ascii?Q?sRGL0YzSFy9q0dvtKAekU3R0+AlIj/12iLuYu509MUxsGm5DPbfUnsetq0rt?= =?us-ascii?Q?yGXzbIzSHif7T/rG419HVMGz2o9gEUJXLzbXAr67qyB4Bfksr1589EKiyEr3?= =?us-ascii?Q?aLUeHlSlm91dWagM8SaGWO+wtCiJPtsczpmXoqK3Ivq2kWzEjs0e06P8xKU4?= =?us-ascii?Q?oMW28ftkCqelvZf+oXpaRicIiBw++TT6I27G/zWN/vScFJHc+VrfKxNnuX5R?= =?us-ascii?Q?H16S2yhbeD8c5PRJkoCpTza/y/kFleBXmzMxXnATZciObCeneWIOSgc5H3ef?= =?us-ascii?Q?f84JwEO3oqqVpeMW/x/1hov9czWDYYg9x8Os0dmGtGipjia5bJMQbgWinZfJ?= =?us-ascii?Q?XvcyAOYtQtVKtHxpXCH6gipovcN9k76SGdI3edg8fmmav/t10hQw6NbIHHas?= =?us-ascii?Q?VDg8cEwTZSHbvKsbrmqe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ascii?Q?EqIFQX+5P9m/3yT5qVE8kRdIAMlv+/qjagX44a/RDRGNDf3fl0ZoDK2Rtyxe?= =?us-ascii?Q?pMznJbOBarXi4I1LNeTq1/+z43YmbiaG1Jshj2EhR8bsbgm6/YeZgOhmvfyH?= =?us-ascii?Q?MfCJ6+A86wMoE2h05f3i8p/I8JJZ1Y4KydqHikgBEjr26PPPTcURmpT7ds/5?= =?us-ascii?Q?tcy8TSH6Wuhwx/PUybVck8oLfTMANzvEAx4LWOfg7VNUMALULsDKQ50y7dxx?= =?us-ascii?Q?/Q=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5013.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e643683a-30b3-4a5b-1045-08dce78f2925 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2024 11:48:43.6136 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ncvxjwwKDnpTX5+yY/7b7zVTvMOp4uChIHkessmpukZA0zyjebuGtBlv0cxX0KzgTAR3nGhFdAfT5OTovuKa+lQF7oAcdUYYAfQACGH8cs4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7380 X-OriginatorOrg: 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 > -----Original Message----- > From: Akhil Goyal > Sent: Tuesday, October 8, 2024 1:47 PM > To: Kusztal, ArkadiuszX ; dev@dpdk.org > Cc: Dooley, Brian > Subject: RE: [EXTERNAL] [PATCH v3 1/4] cryptodev: add partial sm2 feature= flag >=20 > > Due to complex ways of handling asymmetric cryptography algorithms, > > capabilities may differ between hardware and software PMDs, or even > > between hardware PMDs. One of the examples are algorithms that need an > > additional round of hashing, like SM2. > > > > Signed-off-by: Arkadiusz Kusztal > > --- > > lib/cryptodev/rte_cryptodev.h | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/lib/cryptodev/rte_cryptodev.h > > b/lib/cryptodev/rte_cryptodev.h index bec947f6d5..c0e816b17f 100644 > > --- a/lib/cryptodev/rte_cryptodev.h > > +++ b/lib/cryptodev/rte_cryptodev.h > > @@ -554,6 +554,8 @@ rte_cryptodev_asym_get_xform_string(enum > > rte_crypto_asym_xform_type xform_enum); /**< Support inner checksum > > computation/verification */ > > #define RTE_CRYPTODEV_FF_SECURITY_RX_INJECT (1ULL << 28) > > /**< Support Rx injection after security processing */ > > +#define RTE_CRYPTODEV_FF_ASYM_PARTIAL_SM2 (1ULL << 29) > > +/**< Support the elliptic curve part only in SM2 */ > > > This would need an update in doc/guides/cryptodevs/features/default.ini a= s > well. >=20 > However, it would be better to use the capability thing. > https://patches.dpdk.org/project/dpdk/patch/20241004181255.916-1- > gmuthukrishn@marvell.com/ >=20 > This patch add SM2 op specific capability. > It would be better to add this partial SM2 in the enum rte_crypto_sm2_op_= capa > defined in the above patch. +1.