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 7466042C46; Wed, 7 Jun 2023 05:40:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E62E64113F; Wed, 7 Jun 2023 05:40:01 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 00A44410F6 for ; Wed, 7 Jun 2023 05:40:00 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3572SJqU030113; Tue, 6 Jun 2023 20:40:00 -0700 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3r2a759ag1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Jun 2023 20:40:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GBl2oNqKVUROjEyIzmtQo7+4hB5U3z4Pf39F88ofU++0FuPWJnnn1v4F5DJAr3WOwO8vSGPbjQoGeuXNm2SAWq+Tolw4MeGyAKarrHS953x6awEBm7lJVdqoNb6PgfCLkNw6O7kz4nCRSLAtBcBeAs1049tkBbqT8PjjwabsZWsGxfxTKN+qlFejwPiLjUsu9nzgc1JMNWRycji+GDfVhgyTHGxfIxrMR40WhlI+EgYn06DyDnOVVkVvKyDQa8s8+a7WXZRggwK6OfiPTtWoXke+a1hiwmKEngxaXuhLl7E0AEGBdcfRkQhIlvLbotFn7UNDLmSZasitnrDo/OOx6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=FhxlQXT3ns6FNZnlJWwymONQeyGJBvXSVqO5TIQ8Qbo=; b=jIPAWiX/KXxFwgO5oOpKwulvhVhkxMA8gw7/gLkuajL8ou5bKlzWLtl2lcIVmNeThmMlyRnAxikkrUWTyjDgYozKfJia/IfJ08wXQRPlRwf7RQdiG8Q/Hkjuz6YSt7YRjRg/EQs30T5a/1uMcO1A6TttRNCPyb3Yn69w/k/RaSMBql6/0rO3xAyKHBXD55hPd7s4KBBUtd+5caLtgu3HR+hmlMuidcL8gmKkSh5uPNasKNyBKJ6rTAqD7bBhxKwoRhhL3FCFZN2huUo2ueROaVAIi4KdE1ksU1EZroGODdChYV3NA28ijzodydSRhaW4Szz6FyfM5ejklTymhuXU/g== 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.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FhxlQXT3ns6FNZnlJWwymONQeyGJBvXSVqO5TIQ8Qbo=; b=dHXcZvtbfG78UZddx+mnc1h5yUIU330UOFxNkkeye8OoN5UZ9RMl3Wtl+Comx0lwAuU0PraFrBoFEuTQOPIkO0E8NugmvfDRRNtAdebrD4vBcPK6GfBR6ETs3iIVIgjaFwyCBPrWYDXZAUNCJL1B/6XrQc27Us8Zcpl8ifth6t8= Received: from CO1PR18MB4714.namprd18.prod.outlook.com (2603:10b6:303:e9::18) by PH0PR18MB4507.namprd18.prod.outlook.com (2603:10b6:510:e2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Wed, 7 Jun 2023 03:39:57 +0000 Received: from CO1PR18MB4714.namprd18.prod.outlook.com ([fe80::a687:2980:94c8:7a4a]) by CO1PR18MB4714.namprd18.prod.outlook.com ([fe80::a687:2980:94c8:7a4a%4]) with mapi id 15.20.6455.030; Wed, 7 Jun 2023 03:39:57 +0000 From: Gowrishankar Muthukrishnan To: "Kusztal, ArkadiuszX" , "dev@dpdk.org" CC: Anoob Joseph , Akhil Goyal , Fan Zhang , "Ji, Kai" Subject: RE: [PATCH v3 1/3] cryptodev: add SM2 asymmetric crypto algorithm Thread-Topic: [PATCH v3 1/3] cryptodev: add SM2 asymmetric crypto algorithm Thread-Index: AQHZlsjzFwtOb5qlpECadltIcc1rxa9+NbWAgAB7vCA= Date: Wed, 7 Jun 2023 03:39:57 +0000 Message-ID: References: <87bbd8b9642bf20513448c3747f9e6f28eef0561.1685870993.git.gmuthukrishn@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcZ211dGh1a3Jp?= =?us-ascii?Q?c2huXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02?= =?us-ascii?Q?Yjg0YmEyOWUzNWJcbXNnc1xtc2ctZjY1Y2Q5ZDgtMDRlNC0xMWVlLWEwYTIt?= =?us-ascii?Q?NTQ4ZDVhZTlkZGUxXGFtZS10ZXN0XGY2NWNkOWQ5LTA0ZTQtMTFlZS1hMGEy?= =?us-ascii?Q?LTU0OGQ1YWU5ZGRlMWJvZHkudHh0IiBzej0iNDM1NiIgdD0iMTMzMzA1ODI3?= =?us-ascii?Q?OTM4ODgxNjEwIiBoPSJWV3pvWFdNamViVy9RZzVOZVBqSVNnTUJRMHM9IiBp?= =?us-ascii?Q?ZD0iIiBib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NlQUFBQWJRQmhBSElBZGdCbEFHd0FiQUJmQUhRQVpRQnlBRzBBYVFC?= =?us-ascii?Q?dUFIVUFjd0FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdF?= =?us-ascii?Q?QWNnQjJBR1VBYkFCc0FGOEFkd0J2QUhJQVpBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBRUFBQUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO1PR18MB4714:EE_|PH0PR18MB4507:EE_ x-ms-office365-filtering-correlation-id: a8f065a9-b6cd-4a07-9042-08db6708dd2c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8LC06wLu5teL+aqA94UP9BSjgS6Le744kNZnK9k3Dxz+tn2oXrbCrNXN0eLDth2NfrqSDnWlRidXRfwQCZkZiQxjxRx52K4SMMz9+t1gWzKRbAjznS8+cBNM52TIx6cChPe1z3/H7QfeDV9cS+wivPA5g+QNY2EMPCivr6+XKE2NQ80X5WidBlIRMBNbzVrNoYIVgVc1taL3Tv8gLc+QIrvWVz6zIt6vlMq/ExP77r9KYO5di48opxHTNvGSGibCEhHOnVWlN4IATeJ6BybM3BycqPDlibdjHzVPzg8Z3Yash75dxpRyKPeqf3as3L+YFqgARDbt3jcbpgrKgUVAKLVqmTebUxswci3kWwFQL9PyLMKNdcDjtSULU/KPwmvuuZfL7bmRpOWH65AJmoigCVJxp6oPdD6F/T/tJJLzP/w5M2q3oAcxVnhCPck6Su7e/Tu3eakiD9Bvbx1alrcBGFraxSHV/6Dp/7HSOzK+60rfvDkepAp9BaRM9ubEiX1WG+3L9S/jJ3YC3WIFGw678XB2bUsmbte4CxdFqxM0X142c38hzA2s7puAL0wd3/ZutawPcMKYqbR8eBVS1KtDZBCNFbRIQPvFu2kN6ybJwFv3th3vLZBMDvvl7RaezZKF x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO1PR18MB4714.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(366004)(376002)(396003)(136003)(346002)(451199021)(478600001)(2906002)(7696005)(71200400001)(33656002)(83380400001)(38070700005)(6506007)(86362001)(9686003)(186003)(122000001)(38100700002)(5660300002)(110136005)(316002)(8676002)(8936002)(66946007)(76116006)(66556008)(66446008)(4326008)(66476007)(64756008)(52536014)(55016003)(54906003)(41300700001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0kmSr8dQLeP0m87C9P/cStUarKx7KGiQuAj0WL/EOKhchtqbZ/prS+/vdyMR?= =?us-ascii?Q?8l7tvad019hu40J3W2Y1eRVuoD7iHkDbqy8WLj81sfoKHzrDnlrsC97QpzUS?= =?us-ascii?Q?kW+Ax3HxGBWfqtak0HsmboekdOoQBjUNuScHrn+jOyCav+/gbOOHF3x16cAP?= =?us-ascii?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iDmbcWI6VgsMeM?= =?us-ascii?Q?u2kY6KKmZ/R6/VobrywDbLtgB49cMhPN8clmApkoBraP9I/017Y5hpDForGO?= =?us-ascii?Q?bIHCGjrAkN1lQwgxaI237B8RI9GhKdOihDqYIKhNlMc/OO4E/65ff7tGBgQQ?= =?us-ascii?Q?h1Pw7vW1zuAhdj3hEmXRAUgyio9xEh3zEIFdbcVxwBG3+muk41OGiwHnBvNk?= =?us-ascii?Q?/+OJhaAQNhwK2ElRRNAl23BbSH3KLHneaqxCmzvr1/LBkYPQNGI4FwCl6DfE?= =?us-ascii?Q?IIzzw6lmbW0qdUuCEr7fjivma5cbGN+yO0eB9RVGkzMzFtbEkPehG5oIcOFv?= =?us-ascii?Q?tAP3Z3wTWnEoUmLcWUW1CRAczZipLgzYl4P8gZDbfb7+gf92fU/FVxkn4x8c?= =?us-ascii?Q?UuPASNVEft4z7d94ILtqbnXsMw1fsNNUWFzfGLMsQ2TD2s6XpRSiukdSXO4T?= =?us-ascii?Q?y08mQo0Onn/HfkUjmFmQs07wCH5p0CulPWz9IWNBX/ibdDZIHBEHdfcN9h/d?= =?us-ascii?Q?zz9u1xGtYoywjr+9dTU=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: CO1PR18MB4714.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8f065a9-b6cd-4a07-9042-08db6708dd2c X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2023 03:39:57.0967 (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: b4PrhIBczP5ZE8W1ufUt6aJjhiTeVGB6qplWqMbEe3TJfO8wEAT7zdglXQhPSbLXwHzuO3emKbUl7qYbwzqgM+CWXaf61kUyAXJb+K5Wt0Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR18MB4507 X-Proofpoint-ORIG-GUID: mm09pdVQBlKL3Sovh-K-YQ4c6NYj_aI2 X-Proofpoint-GUID: mm09pdVQBlKL3Sovh-K-YQ4c6NYj_aI2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-07_01,2023-06-06_02,2023-05-22_02 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 > Acked-by: Arek Kusztal >=20 > Some things will need to be changed before the next release (few of them = I > described below), but I will ack it. Especially that other algorithms hav= e similar > issues. >=20 Sure. I also thought any improvements can collectively addressed as it is a= nother EC. > > +/** > > + * Asymmetric SM2 transform data > > + * > > + * Structure describing SM2 xform params > > + * > > + */ > > +struct rte_crypto_sm2_xform { > > + enum rte_crypto_auth_algorithm hash; > > + /**< Hash algorithm used in SM2 op. */ }; > > + > > /** > > * Operations params for modular operations: > > * exponentiation and multiplicative inverse @@ -637,9 +653,79 @@ > > struct rte_crypto_asym_xform { > > /**< EC xform parameters, used by elliptic curve based > > * operations. > > */ > > + > > + struct rte_crypto_sm2_xform sm2; > > + /**< SM2 xform parameters */ > > }; > > }; > > > > +/** > > + * SM2 operation params > > + */ > > +struct rte_crypto_sm2_op_param { > > + enum rte_crypto_asym_op_type op_type; > > + /**< Signature generation or verification */ > > + > > + rte_crypto_uint pkey; > > + /**< Private key for encryption or sign generation */ > > + > > + struct rte_crypto_ec_point q; > > + /**< Public key for decryption or verification */ > > + > > + rte_crypto_param message; > > + /**< > > + * Pointer to input data > > + * - to be encrypted for SM2 public encrypt. > > + * - to be signed for SM2 sign generation. > > + * - to be authenticated for SM2 sign verification. > > + * >=20 > This repeats problems known to dsa/ecdsa. What will work on OpenSSL PMD w= ill > not work on the HW. Ironically, test will pass for both... > We can extend this before the next release. Ack >=20 > > + * Pointer to output data > > + * - for SM2 private decrypt. > > + * In this case the underlying array should have been > > + * allocated with enough memory to hold plaintext output > > + * (at least encrypted text length). The message.length field > > + * will be overwritten by the PMD with the decrypted length. > > + */ > > + > > + rte_crypto_param cipher; > > + /**< > > + * Pointer to input data > > + * - to be decrypted for SM2 private decrypt. > > + * > > + * Pointer to output data > > + * - for SM2 public encrypt. > > + * In this case the underlying array should have been allocated > > + * with enough memory to hold ciphertext output (at least X bytes > > + * for prime field curve of N bytes and for message M bytes, > > + * where X =3D (C1 + C2 + C3) and computed based on SM2 RFC as > > + * C1 (1 + N + N), C2 =3D M, C3 =3D N. The cipher.length field will > > + * be overwritten by the PMD with the encrypted length. > > + */ > I thought it was concatenation, not addition. Typo I did. Yes it should have been ||. > > + > > + rte_crypto_uint id; > > + /**< The SM2 id used by signer and verifier and is in interval (1, > > +n-1). */ > Where does the (1,n-1) limitation comes from? As it is a hashed prefix, s= hould it > have any mathematical interpretation at all? Yeah it is not necessarily limited wrt n. we can just phrase it: /**< The SM2 id used by signer and verifier */ In fact, here could be another improvement (applicable to EC as well) to=20 keep the params specific to op. Sign/verify only would need this param (and r , s below). > > + > > + rte_crypto_uint k; > > + /**< The SM2 per-message secret number, which is an integer > > + * in the interval (1, n-1). > > + * If the random number is generated by the PMD, > > + * the 'rte_crypto_param.data' parameter should be set to NULL. > > + */ > > + > > + rte_crypto_uint r; > > + /**< r component of elliptic curve signature > > + * output : for signature generation (of at least N bytes > > + * where prime field length is N bytes) > > + * input : for signature verification > > + */ > > + rte_crypto_uint s; > > + /**< s component of elliptic curve signature > > + * output : for signature generation (of at least N bytes > > + * where prime field length is N bytes) > > + * input : for signature verification > > + */ > > +}; > > +