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 309E145ADE; Tue, 8 Oct 2024 13:46:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2EAF406BA; Tue, 8 Oct 2024 13:46:39 +0200 (CEST) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 0AF364026F for ; Tue, 8 Oct 2024 13:46:38 +0200 (CEST) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4988M8kX029625; Tue, 8 Oct 2024 04:46:38 -0700 Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2042.outbound.protection.outlook.com [104.47.73.42]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 42515u0bxq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Oct 2024 04:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kSBoC20Tgg8HJ77sFXI1NyvBT2T3qy3LoO5ost3/GABuVkzeeiqiItk1w+vqe93YSDH9vsE9zjSVKcfbNq59GXPDd1tbHTIa2ZRe4OQq4jX6mJL5Y2bTxUKtnLJ2+FQJc6jo5tnZqTBuxkWBt7nDTwJT8DU+N8JQWg5EkH9CyZx6iV3Dfp5c0DErb6QAd+Q+8oI1QNCALx6RjuzhwoXqU3bz51MtJD/RugPnt/4YzYKcRaTS6QHZ/BIp6xiOZj8Ra9SyDmWiOsMRGOIlfiYgha8AXQ6K2xKF/cd2jJJw1O7iP7ey7R6P8K8iBMHu6+TrPzP0NNaU2Ia2vcI4XLtE1A== 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=nWp7PvXI1GP9ooLdJL4BcetbiBuRs/e3k4SgnorOUBg=; b=THxbJV/WHWRhDah4II8YgB96vySsOItaE/6gQIY1zPmEOL/nLQk+hqGfiHFJx7OkZ4aO8ruv8ZH8St0w+OqY15vV0DY2vFTH0VotvymZlrrH474vO2Rt2F1kASxvanHa5zoW8IPFbSsKxXnw8fLVYSfEEt4sV9rjErpgMkEXRHk6YUJV917l6IdTJffPnyeHXKR2afbR5R+SK2fCrx5T5r9NnUKqWAlxrMoIa8eGkncImN/UzjEGDKDq8IHDFR+j+7JOtk3vp2Nj4FStDWhfm8sUXsBgAvXfBFI3utGYdaTEeUWCRTZCGzEPdhWrPRO05g6t7QNKL5MvpTOxMG21bA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nWp7PvXI1GP9ooLdJL4BcetbiBuRs/e3k4SgnorOUBg=; b=I3BRS2c22G0ia18iUTYwtIf1OYdJJgyOuMkKKqwgm6koNRJJz0M2QdpZKymCOgD/mNaiEGmLSeS4rRfJRQ6YmQfUYZE50prdXeOPZNFJxfkpoB6IiMyhGXa//C9Cl/jJ/y2QGFyDCxXzBsK2tV4pOj0kB5lt2EqOq9td0AEPIcw= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by BL1PR18MB4214.namprd18.prod.outlook.com (2603:10b6:208:312::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Tue, 8 Oct 2024 11:46:33 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::3c98:dd36:4897:a51d]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::3c98:dd36:4897:a51d%5]) with mapi id 15.20.8026.020; Tue, 8 Oct 2024 11:46:33 +0000 From: Akhil Goyal To: Arkadiusz Kusztal , "dev@dpdk.org" CC: "brian.dooley@intel.com" 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: AQHbGVXWLrcVhLB/okixN7OBKzm/kLJ8u6Mg Date: Tue, 8 Oct 2024 11:46:33 +0000 Message-ID: References: <20240929172912.87859-1-arkadiuszx.kusztal@intel.com> <20241008062845.11071-1-arkadiuszx.kusztal@intel.com> In-Reply-To: <20241008062845.11071-1-arkadiuszx.kusztal@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB4484:EE_|BL1PR18MB4214:EE_ x-ms-office365-filtering-correlation-id: c9119661-0c58-4380-5416-08dce78edb77 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?a3Mk3nMY7jXMgsgq2eXF1xKCdQIzuxDYryYNXRwg4F8pe1CqVQ71WbWMd9lv?= =?us-ascii?Q?qc/nxNfVEZSpChB05S5YGjY90Ezb835zrBU8hrB+Pj7QtyOOTYLdStjC0Kia?= =?us-ascii?Q?ic5JJunNWCdOcHq30uZrrmKb61ZTn0wWUAzEVoRrEXQSgXls/875nNJRT5Tf?= =?us-ascii?Q?B8CA8WjDWzSfAvsUm6aYcnX6VLuhGWEpoqIxDeVHAowX2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usb0ExwXqtY8rZDOscEtBDFmtFNNjk8b8Qo?= =?us-ascii?Q?Qc2cYG1KCjxZkfR8RzvLQSzfXWPsLn7vPYFi/DM1vjia+mPKHt7h/KmSI+sU?= =?us-ascii?Q?x0cyuQP1kiZ4e1aJUGmsgu7rKiusY+VEU7vHHRI8y8Fyz2xxJlaXVhrZ4ukb?= =?us-ascii?Q?Hx/3Jp0q6kUh5NHULzmbHrDFtRf+dMmwGQruwXF+K75lSL0P3QOM175/EUCy?= =?us-ascii?Q?rt7ZAXp4ccvG7ymSBtHIpElNQRJyjbZMG3wg2tnTIAM2Bg=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?RWE8FHPTegGbZU71BzB8uSHfK6ORbuzm2MA5RhhCcEq+qO6T9CYN0gvFH6tl?= =?us-ascii?Q?qeU7hA640K0YGlFS1TFH+Q9jFG6YtA9lMJXZHDhg6u8/hx0aakLv8GfdRmgj?= =?us-ascii?Q?Q9PdUWuDKgvuYT3Tz0L3khr/6IdhcxsgPVZDcwAlaXsGw2jL3uKNh8qFPtL6?= =?us-ascii?Q?V3rAI8Jp035Mvr299wXt52GFt3N6/HHJdU11VJ9pCfMe3gape+/FYqCF7ztc?= =?us-ascii?Q?U17Qv5v8d8IvE350wUjoRh2FqnMdLLO6tY7RHVRYvy2Vjbml+cUFN7OVvfYP?= =?us-ascii?Q?EWSI2TnYmoGmzQE+ROjFGk9TlSGDr7Fh+UF3i+1/QEOZ9CpXhed3RZyy5wXS?= =?us-ascii?Q?9U2CRgXWAGfWcIraI0LqNsxLLOffyis7SYYnbN4ZpTW2NXtCTwG8z3NQYw/v?= =?us-ascii?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CGZ67jdvH1DShHOTp/40dJLLd2+fw?= =?us-ascii?Q?uI5W+SJwWVmbzY4tXVoHwrM8cIQLblsP9gJhlAdjFFVZL9wjpvsX5m5AHysy?= =?us-ascii?Q?6MMQglvAHwm96hKIIjHZN2IQy4eRHCHWKW+tU4Y7hxvHxNTMJ+fiFiGhsGj9?= =?us-ascii?Q?4AlSk2EKk2anJozMuXoo522Jb1/2junH5NxnmC8f9Un2IBc8IsQP0pOE3DVF?= =?us-ascii?Q?BFhppx/Yi9mdQZ6LV791H73Mo8kbiKMFLlKSm112M0YZDijoWa+C7GQgkvh1?= =?us-ascii?Q?pXL7yELZcUwwyp3+vrk=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9119661-0c58-4380-5416-08dce78edb77 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2024 11:46:33.2664 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mujEiWfNYV2jwFJdK16QyMD29ZY1mNs1+C6jdXiy977JDxRXzlTAzoel8/+B19BcAEySiyZxvGAN3+ZHxm1mUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR18MB4214 X-Proofpoint-GUID: zAI3rMo8SskjSfbl9gGLniJYTp_cxgjG X-Proofpoint-ORIG-GUID: zAI3rMo8SskjSfbl9gGLniJYTp_cxgjG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.687,Hydra:6.0.235,FMLib:17.0.607.475 definitions=2020-10-13_15,2020-10-13_02,2020-04-07_01 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 > 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. >=20 > Signed-off-by: Arkadiusz Kusztal > --- > lib/cryptodev/rte_cryptodev.h | 2 ++ > 1 file changed, 2 insertions(+) >=20 > 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 */ >=20 This would need an update in doc/guides/cryptodevs/features/default.ini as = well. However, it would be better to use the capability thing. https://patches.dpdk.org/project/dpdk/patch/20241004181255.916-1-gmuthukris= hn@marvell.com/ This patch add SM2 op specific capability. It would be better to add this partial SM2 in the enum rte_crypto_sm2_op_ca= pa defined in the above patch.