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 2491DA0542; Tue, 31 May 2022 09:36:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 167644067B; Tue, 31 May 2022 09:36:30 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 11B69400D6 for ; Tue, 31 May 2022 09:36:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653982589; x=1685518589; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=VZDJeX6Q7morliOmqJv1/yENdjj/pdFlfxiD9hnULrM=; b=WJyFGii2pVGZNx67HgAEwPjtRC/bLOMLsVW4D5ULtBBOKKKKOcI4NuqG SP2lH025CmNJBm3OdwZffcKX+nLd4BkYGHfPGGnZkPAbUWqV8L5tLB8LR GzosfeZivzpGkQ9WqLudxv6fWyj782KfCasJB6+68vDumtfnnri0imxcC I/d5HjOLWljzwUEZZsKbcFbYDlf4PU0YK599H5OySqNvbBiiK0XNoQGHH eP//SmZ+SvsmBksTnqYtwBJyZsjWatZOITHeJQJSzN2qHbyHCWDuteiAe 0wN245RgUI2o1YZg2bfsE41B4yj2naDfap3rNLzmqqFG0EcWiaAYSv9Qn A==; X-IronPort-AV: E=McAfee;i="6400,9594,10363"; a="257238028" X-IronPort-AV: E=Sophos;i="5.91,264,1647327600"; d="scan'208";a="257238028" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2022 00:36:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,264,1647327600"; d="scan'208";a="706457809" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga004.jf.intel.com with ESMTP; 31 May 2022 00:36:28 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) 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.2308.27; Tue, 31 May 2022 00:36:27 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Tue, 31 May 2022 00:36:27 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Tue, 31 May 2022 00:36:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aO44vJKV9qB6nWWALqNTIGJsKiUQ8REaf2aJqfuf0tgH4EIG2gA+ZJhRT/WBrSD4p2GeZLyAAVEXigSDhVBRzDbcQGWk/TrzvqnzyRz37/nxATCvRfYv0WjHIrQJFs2t7UI8dAQVriiinh0Ps7ZbRJF1Aoey12N4k/rJcnLuCr9w+yieIrG6L5gL0Vf+G2iAxU7MW16RPNRU2Y0mTpAdBJ2cb1lM6i7ic7EhibL2lY8Dz7zAeh49LO1WsOVPtoA3rH/D0JDSx4Xz1Yyphk234V2Rypbwqiicd9BKpMqU0P2W8OXi0RbjTfW5k9ppebZ9RyVd8MD94XU1ddKgH1RZBQ== 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=VZDJeX6Q7morliOmqJv1/yENdjj/pdFlfxiD9hnULrM=; b=YvODw76Q/dJVtrfgzDWwI/O4mOYzFdIFlPibNSJuMN0j0kg+SpldIwWAYTacXgum/7W7cPVwH9kRDmQogvrd7+ofURiLW6jXhC1nX7/Dq1yzL5zOj3JTj1pIL3qaYVmBUiS4vOxjTFDBzhcgF22IMRO/6UAS9jGHrJmJuwUvbQFmNPni9LqL7idHoDbgeECsSgj1VymSjNkm+L42RIXVh4oBLpM/yKotXNIMLNsiwfspebnPdh0Z5zcsklQi8bAIYc4VOuqvunZww7YlguUBvvshgxG1uCw55NahgVKGiqqK8zHZz4/bMRuUHgBjdQ05FOXRsd6dFLOYkqgn3lhNOA== 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 MW5PR11MB5809.namprd11.prod.outlook.com (2603:10b6:303:197::6) by DM5PR11MB1868.namprd11.prod.outlook.com (2603:10b6:3:114::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Tue, 31 May 2022 07:36:26 +0000 Received: from MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::d070:886a:efa9:7ae4]) by MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::d070:886a:efa9:7ae4%4]) with mapi id 15.20.5293.019; Tue, 31 May 2022 07:36:26 +0000 From: "Zhang, Roy Fan" To: "Kusztal, ArkadiuszX" , "dev@dpdk.org" CC: "gakhil@marvell.com" Subject: RE: [PATCH v4 05/12] cryptodev: move dh type from xform to dh op Thread-Topic: [PATCH v4 05/12] cryptodev: move dh type from xform to dh op Thread-Index: AQHYdK0XLgxsajfVhk2Racd7vzaJEK04mNlA Date: Tue, 31 May 2022 07:36:26 +0000 Message-ID: References: <20220531040439.15862-1-arkadiuszx.kusztal@intel.com> <20220531040439.15862-6-arkadiuszx.kusztal@intel.com> In-Reply-To: <20220531040439.15862-6-arkadiuszx.kusztal@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9ef9375e-884e-48c4-e676-08da42d844e6 x-ms-traffictypediagnostic: DM5PR11MB1868:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KNBH8CinCiY5843rxOsfy17PhryM3tXVnsjEWLaRyjCmKqA+obgbS8TS0ZCaX4YFy+BarcmP7dfflB0lz00oVQEzJYKCCwdr64y/F5CReYdgb+ZHNcNIHVcEDf92AGiEzADPvQ9C/ECwFNpXA1dX5V1Y0rvtEwGryqceqYJUDH61LjAD7n0vFxvwQG4c3+N9DMG/MsvohbrdKX71UClXuZ+fevBl8DbLOyBcE5xPV0j6wThrEe8gCruiGNvYx+QkojPMFmGpFEzRmyT9JYbtMlAaIcpnWLjoLvOuVxw/mruPpM/Ihts6EvZya0CQSkJ7lKf5Vl/deAF+DbOwhPVxu3gFOFC48nGeo54CdpPThUrgCMaiIlp8spEtCxkef8uuj741Kp6p+W8Hk4Ocm2bUmrT9rWTjCzBMO4XxNWzYnCKu7jeJIFJJbHHNiGeJWBQIqZI0P6a6PM/UjrDuwa4HoEQhIiMH4yVEouH/YoDrKfm8kbSTdSAqQkyV8nfb9f4KUbAbtVtMxERKkQMLtlaargh5lMicmtCVHqeALWfpLP4v36Nv7GgaGZL7DP9fNKF8gVaQtadYDHLZDEZ3Rm0h59vLQ0OqUO6cpLKrf7HK1uvTwytTLzHW5m/uEOxTj341E0x63QIm6n4yvKXjkQoN/PGAzUEzWL3RToOR6xQuL1O21DTQj+DO32DlkAORrtT69EpxQUHMBcYzDCPL0CSA6A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW5PR11MB5809.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(66446008)(64756008)(66476007)(66946007)(2906002)(71200400001)(508600001)(8676002)(66556008)(4326008)(76116006)(83380400001)(5660300002)(33656002)(53546011)(38070700005)(7696005)(26005)(186003)(9686003)(86362001)(6506007)(122000001)(55016003)(82960400001)(8936002)(110136005)(52536014)(4744005)(316002)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?aSBVQBsqlE/FbtDXjWZoibBR4sgAvf1MzzHHYgYksV0lb5vn7rVtbr9I?= =?Windows-1252?Q?liLE5epzMfEk/eeG8wEUnuSLu5rmgm/S6SQ0ZJ9Xsw7tL3CPoqilUbEF?= =?Windows-1252?Q?I9Ur+jnijedeSx/y5RSCV9o4fFRsZ1ApcFO2L2EmEvjaRU2bFtFrt6mn?= =?Windows-1252?Q?/qUyGRvT0Hor7B+eoxlIJ7mfBkq4TQnOgUCKOqLOYxHRo/l4T9YgfcTS?= =?Windows-1252?Q?13//Mcaey/+PKcNlB9CFd+d9zhcxW6lue21VnqYNfYq4ZnNxz5CdU+RI?= =?Windows-1252?Q?gAFmtdF4uD3cQLy0lSG1GvUsxh5zfrXJ2u/VqsnEJh9Itnj3Itv5TZoN?= =?Windows-1252?Q?euF7a39yHomBDkm6K8L5aV2O9YzDlLTUTEyTIbVFxKdBj1cl589nos/Z?= =?Windows-1252?Q?PKkEt0ebgioc4iL1LHKY1Gs3jRY1oLa5FdvxLf1FuaU6Q35IqK24DXSD?= =?Windows-1252?Q?K877mEXCZZgSoBLaDcgpyoE3A/+E9AbcWrsiK+Toe7c3uMYJ9wPOAtSZ?= =?Windows-1252?Q?3+VoGL8Gg83zEBWXp9y+AglLgc+Lp+Cdev1eMOP//Hm27CSvsWImThsd?= =?Windows-1252?Q?bevO6UUCJfs+qtIP0hJ9YUEBzw+mgKcEkRtnnQ/arSx79MjjoB6gQ8hV?= =?Windows-1252?Q?tGe5lMCSPFpdcE3g6vn68ev1yTAAz5aB2Uzc3shtophTQfa05clravZV?= =?Windows-1252?Q?RkcEnfQVxgeizqrTO+Mxcf3H8YzvGTTTQOOpDc/FCycYA47q9c/uISkg?= =?Windows-1252?Q?sjIUdcKh2fpEUmIar2Z9ugvhoAG1LHCjPOQlLDy4HDcuZn2qpx3QW5zP?= =?Windows-1252?Q?2OoW8NeiSw32/OAkT/CkeUSpsBFwRtxKcCDsim+06gq7pg+haGKtEHvp?= =?Windows-1252?Q?zQ2BLLnhxDEVhfyHPpTkBBvGwQ0xwxy5T2xLv2i6Wyx3qOlmxADQGLXF?= =?Windows-1252?Q?I+NeJSz2t6o4GYpPiRh5HCZ0HKj3uA25M1gY+KrPizlRbsfvpXxGJ+Fd?= =?Windows-1252?Q?kumXAoQbBzAGPRLkWqI+Ui4lh/vl4F/eDqMoiXy1T3GnzOgmIsSkLfcT?= =?Windows-1252?Q?Tb7AIgfSE+4VnwKNcJzucHyfqIZOwoQqigWDumptlE8i/gpOJjdBCLAg?= =?Windows-1252?Q?Vu2P2uYCFajYSdOO7245POYNDZMs018og2VvwFDHejpuJ83qjQfp6bhP?= =?Windows-1252?Q?Km29FMCScce4btUKHfmu8GvJLjwyfE2j5TzKa2SNH1LKgazktPcl1SMb?= =?Windows-1252?Q?9wD3DdZAw+VHLme/edSa9Dw56PzLcAeCLefWP4O7uoIBaSPIoIAfX5h7?= =?Windows-1252?Q?YCxnddZHh2AKERLnneZSZZTLxOSrUvkY4rsDOoCplkiCdlO71lx0qX+Y?= =?Windows-1252?Q?AUc2BHVg9AVaLur2a1EhtAlYSyvzjeyHrPJ8BYoIjGJ69dh91HrbSUQL?= =?Windows-1252?Q?x+5GKmrkqI0boDPhsNaGYksqrf3ho/wGan4oF4QoLdDWnYSOSxkVNfGa?= =?Windows-1252?Q?MGUospAMfOKJhqo+bjGNLgnYQ3FqgAYEbBE0MOL2rTtx+m9T5HwDSKqD?= =?Windows-1252?Q?vKJBrnydd2/LK4ERtDJWuEZ+73y58HH3g7sYlgFh98/6vtmoPBtxxSqh?= =?Windows-1252?Q?nmUSvggsyuSwZGe8hK6fHlmabi0bv5fOc2vHdKWKNg/0Pf3CDdbcgPIe?= =?Windows-1252?Q?9vZ+6LKKVwNkN6jycLSoPN/14+usNyBFqPUQip6nuVQETkbNDh/0yc6v?= =?Windows-1252?Q?VbRqOcC6/6QUNIqaOYLNmpS5fyq8e0EhbDb0WEcO9V7BtL0cw5OWorKq?= =?Windows-1252?Q?oDL5V8tZkBooEywx5yrioINh7ABSuRt0kr88Bzio7Swn/YMVR4HvDeQo?= =?Windows-1252?Q?t61ySxd0DuCJ1g=3D=3D?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5809.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ef9375e-884e-48c4-e676-08da42d844e6 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 May 2022 07:36:26.2385 (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: fFPAMPSwFmblW4nd+6qvN4/ABggpSGQYH5K4iPwnnlSvs5mMHF1bV4N7Jm4fC9LrE5JuklFw+B7c93tTmAsrXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1868 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: Kusztal, ArkadiuszX > Sent: Tuesday, May 31, 2022 5:05 AM > To: dev@dpdk.org > Cc: gakhil@marvell.com; Zhang, Roy Fan ; Kusztal= , > ArkadiuszX > Subject: [PATCH v4 05/12] cryptodev: move dh type from xform to dh op >=20 > - Moved dh operation type to dh operation struct. > Operation type (PUBLIC_KEY_GENERATION, SHARED_SECRET) should > be free to choose for any operation. One xform/session should > be enough to perform both DH operations, if op_type would be xform > member, session would have to be to be created twice for the same > group. Similar problem would be observed in sessionless case. > Additionally, it will help extend DH to support Elliptic Curves. > - Changed order of Diffie-Hellman operation phases. > Now it corresponds with the order of operations. >=20 > Signed-off-by: Arek Kusztal > --- Acked-by: Fan Zhang