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 2CEECA04A4; Wed, 2 Mar 2022 11:18:14 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F61542715; Wed, 2 Mar 2022 11:18:14 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id E997340141 for ; Wed, 2 Mar 2022 11:18:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646216291; x=1677752291; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=jiknxEFcvbU1b6+r7IP5P7/Ss+qxnO0SQLSpH4LCTig=; b=NQklWQ/1OSjcnNe1TDxv4wWKbmTaBZ7fed6WVpoCcYbcPXar2hxR9cP6 NAo6iSml8hxRwIB6wgn5nSN4sn+CEujJlAXJj0kz42VEA3ZdWE1D6nrWp fI2W3fNulGU1phKFlh4VeSHrdM5+CjqEvdLiYXNTEdFkLQ8gayULamMy5 CyFzVCUAhpWsXBOwUEWCcZqJZT+j6/kAJqpapNmKU4pIjiXNm5+gAvysw 7urc+PHfZWJYRmEkMCWtmKVg6Q7nIp89kRPHPsp0Ir78VSJUcL2TOFPho wYN2cSMArHT2jHJuE5djuMfPdussQV7AUKZwKBnxGM6wTyjmA3FPD7G+m w==; X-IronPort-AV: E=McAfee;i="6200,9189,10273"; a="252197510" X-IronPort-AV: E=Sophos;i="5.90,148,1643702400"; d="scan'208";a="252197510" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 02:18:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,148,1643702400"; d="scan'208";a="609163164" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga004.fm.intel.com with ESMTP; 02 Mar 2022 02:18:10 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 2 Mar 2022 02:18:09 -0800 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 2 Mar 2022 02:18:09 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Wed, 2 Mar 2022 02:18:09 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.175) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Wed, 2 Mar 2022 02:18:08 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L0UTzOiNsyABBpk1CmEnTNXEi4pphTiFEICMrMI+vhMs93sYQd+u4kglV9mHVff5bMc55ghQCQSdL8QWYbUnxW20qEEHFa87W3TRbn5f591gxqEDIjbYmX3U6JQR0ZZJVWFq3t66BahfqiQPeonpBzGbtjwJWb6O+gIaGwxG4fSUvbslyMbQdHfcoYmGVGHSiQqHQfzuV39qZ5wvvmqAiLfmHl3N9WQphMATf/wCzo5Jh5g6QV3q0cjZZBCZycd67H5F5Pg9J6k+qmceAgZgm44Fqw6+tYp/CHBma/uRmomEjcopea61iSHLnTt86GDTrvUVLA3BfXDWWG5Aoz/WSw== 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=jiknxEFcvbU1b6+r7IP5P7/Ss+qxnO0SQLSpH4LCTig=; b=JEpAfZzQef2cBxPRDadhjtEG5Op2W9VykOvmq+J/Dsy4hwYQNbpm3sNoioSxjfqWI+AptNh2W4FbI/wccILLOzhsm1lUYpr22OAoMnCPHWtoC/rac5clI+6D8sQSbKL/mJVqrCh7lq17+aOExk4IUomwwR9a0vWUYl6w49XMBGCw+prnKh/bU8B6icszrWfuS5nsFGxkD9aNX62Il+WvqUwzvYbrGd0ttNw+M8Q7s6je91wnaQiTEqtrEiBDbQUUpOsspzfLrNhxeE17d/zMXMnhTVsiNxksvpU7DBSwIE0kB2oeEJp+dZEutNgYlg0mH/W6HONtbcLWfazzwsQO/A== 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 BN6PR11MB1314.namprd11.prod.outlook.com (2603:10b6:404:47::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Wed, 2 Mar 2022 10:18:06 +0000 Received: from MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::a599:b969:5072:71cb]) by MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::a599:b969:5072:71cb%4]) with mapi id 15.20.5017.027; Wed, 2 Mar 2022 10:18:06 +0000 From: "Zhang, Roy Fan" To: "Kusztal, ArkadiuszX" , "dev@dpdk.org" CC: "gakhil@marvell.com" Subject: RE: [PATCH] crypto/qat: fix smaller modulus cases for mod exp Thread-Topic: [PATCH] crypto/qat: fix smaller modulus cases for mod exp Thread-Index: AQHYLXb0UGQ618ZM30S2oR1MtAXYlayr4pUA Date: Wed, 2 Mar 2022 10:18:06 +0000 Message-ID: References: <20220301141616.31821-1-arkadiuszx.kusztal@intel.com> In-Reply-To: <20220301141616.31821-1-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.401.20 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: e3ae4a82-8188-4f2a-403d-08d9fc35f1b1 x-ms-traffictypediagnostic: BN6PR11MB1314: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: G4k+7M6DF9pnZazZniz6s69eS7MUz/Rl5x8XABepcOYNZY6sCMr0F4NlUXo9GMM0WdQigvh4yhCYlO2zHbIvicboHzEmj11mLq1p62J9T12cbh0KXs308L+lhbr37CGBXbpcD46Psp0sdcj+avBeo7arFcTiIdKNPzJ6vTS6i6S4hinSGZAFwLR55gbyalzGoYVUYcGk4nI+R1JA6nwuLADYGVkpYaNT3JgvFati/6Jspqr1uOVtNKrd3pW4ci91NjErIiNJF/hbZNRL84wi6KdsgtTr5ol5iM0wVv5+HCeKZGnP06//UNdGFiX6o22dnGa4bwxnUmMKyZADzYs6uAMHo2t6PpmKOTCse5h6RfyBFkhiW0YtIEgz4lYEi7OEzbuPnGI/7pV+ux44YoYRetn/fn3v0OYtngPnfGr3CYwlRtx23yTUcQt/TzOfNg1nWTkc1Ph0HOrImjP8qzGQA4DkkGmCNgGuy3npcEfw1JY3wRa37pjUCum/9VuixOI3IYsjuCBD0A23hQ01zqHu5kqDIz9SabXmyOSpj+tLTcdINOMqOPjbHBDGhMaDd7h0beQPf/o6mRDJot2y+fVMuNh+8t2BPyLAafRf0w4lxgM9Tg/z2T1tlIaEbrmR/+jXT3NwUSk9ycPtC2PndgL6bJxeLzhH/9jdxN09WXXYZ+hR0EBTuUuLXnIGN/2DU4+3PmCUEA8NRFhxqw51I5jSUQ== 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)(83380400001)(38100700002)(82960400001)(122000001)(64756008)(508600001)(52536014)(8936002)(66476007)(8676002)(110136005)(316002)(33656002)(76116006)(66446008)(66946007)(66556008)(4744005)(71200400001)(5660300002)(4326008)(7696005)(53546011)(9686003)(2906002)(6506007)(186003)(26005)(38070700005)(55016003)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?wFVGm79M1fHrnZF3MMalsnkx4byujdMCxWjrWZppcKc0Nfc1GHCpyfHH?= =?Windows-1252?Q?ANVP8LJRGHe2MRVe7vchcTvmrNqwoXvrw7f8GnJl3glaX8ecXUl7vUsZ?= =?Windows-1252?Q?W3Fsz29ADallf2msfS8c8GVSYSPKaRMKCHU0yD6ECzUAqBQwcngVs4Qi?= =?Windows-1252?Q?SCw4f0g/MZngq5L3TZpXn+vey8CMISSz7UWtaXmSXf7UJxlgLeOU/awL?= =?Windows-1252?Q?oScnqE9vT8CDXCL+A8/q9mCpXxheOsq8hVdSviLL2wPS4uH4PR3ve8U7?= =?Windows-1252?Q?b+XPxuvstRYVsh+F8MpIPExVqnEUpNcjM2Ij5hx7pGc/5ry9wolo/sKG?= =?Windows-1252?Q?N/C2N83cV3Zpbpej7xm6LknHkZQV2ZYczhA6JFq0apw6328xsfaz4X/R?= =?Windows-1252?Q?trnN6GErOKJEHFHC5XGzUQzLCi6ph6vYbbj1t/ka+1YVXOucI8r/9Vlw?= =?Windows-1252?Q?pNWPbC+UwMlNNUkmkXSqEEoe3N1MZ/i/dleGBCD3tNWhCBaSXbxKsvgM?= =?Windows-1252?Q?hgrVa52t9velAj58TzS9xFP56GOuRD8oVV+9D+MrMxKH3nEWmSTmXLrs?= =?Windows-1252?Q?tuTVVUgrtZijO2T9KzXuJ6L5YTkli9rI4oOXJxQQZ6PGTBFgKnI4u1iX?= =?Windows-1252?Q?xsKg9ee0u43uETlnZkyyate2KPWt0Jj+5Y0ItXcItF0iUyGM4lI8VudV?= =?Windows-1252?Q?K7GwHCWDS6lcEmmAcWKXElai+kRK40x2mZOpqBHJiPyOnhji2GbHe4Ai?= =?Windows-1252?Q?s17RwE5pzmmNIKrhBDEhxyW4G1rI33hxLgI9GhtUtiXw6xLpiZsR88h0?= =?Windows-1252?Q?KYI1E/seLmkRFOS1Qn3DQYZTm3Wkos/iWiwve5921sP7jdU4ndKYKHNm?= =?Windows-1252?Q?eCw/YnXsp8kbJB6ntuQkHiUK5X1X6DFAo6F28aHBTyuDAXe4lmOFJn5/?= =?Windows-1252?Q?06z5L7il4gd+KVW7E7S+yND7wWYAS0GI07TdOhw8M0KaGzYAaRe9s4KX?= =?Windows-1252?Q?zK2FJ/UShW6mWZaNA3HDaOWRj7oESsEgFl3cCvylrRspd6grBaGjy596?= =?Windows-1252?Q?goJD/SIC7yhlSWTT2O3GAl/705wrfL4FZVHXxuDxPpOMqevpkiKNNyvW?= =?Windows-1252?Q?pJzux0r04pzko74dA27pWJrthuwKT2Sa5FvQNJzO0sYHxk0LFI90Kb/Z?= =?Windows-1252?Q?G4DqbtM4EDkEUxuOFR6x18XGxoPSC71VMA9HirTmY0cIY0Id7H03BJtk?= =?Windows-1252?Q?evmhNq2CS8VAimEy4P5EqSJHLsUfJQAElBO3eCZxRMqexFDzV6UICgBS?= =?Windows-1252?Q?llcrkNqjlNeNVZd72Z0IMdSKwoYoJ/b4wO7cY0LAR4VxRZRmX5tISEvO?= =?Windows-1252?Q?VpNeflGQPdpziVFdwiVIOP0Anca7ZqunnyeSvUAL2kMQLFXx9K6jaygC?= =?Windows-1252?Q?hn2hdiaw5T6WGtjqDGM6397lBAD3p96Elv5KVpLKVpv6n2VFYzFW/Phh?= =?Windows-1252?Q?WMeabasvbmO7BLOSKq+3zNsM82A8xI9iXrjq9lwL13A+JyWffEAUNB8g?= =?Windows-1252?Q?1Wb1Bk+Und4ygoIA6DBcQrCiWBOGbbMSb51zGeKDPBcPEuoad6Gv4p4u?= =?Windows-1252?Q?IdILD4GrvdVC75YlhRIutlCr7q/MTjyCLuy/LNX4kiv+5GFbd0qbZkg7?= =?Windows-1252?Q?RtWLO1Jq8pirRozAcJXonbZf2kJqCN3Gr/TkiNT/ckm1wN8WLn2aaA?= =?Windows-1252?Q?=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: e3ae4a82-8188-4f2a-403d-08d9fc35f1b1 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2022 10:18:06.6621 (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: CFAnyLx2SueOfHu8qPr7CgLhUxb8F2s/QnILaVjx00WgBkgJNVW87+7o5wKsUTT8Gm04d6UJTa2mp3CXBKx0/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1314 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, March 1, 2022 2:16 PM > To: dev@dpdk.org > Cc: gakhil@marvell.com; Zhang, Roy Fan ; Kusztal= , > ArkadiuszX > Subject: [PATCH] crypto/qat: fix smaller modulus cases for mod exp >=20 > This patches fixes not working cases when modulus is > smaller than other arguments. >=20 > Fixes: 109755f0a427 ("crypto/qat: refactor asymmetric crypto functions") >=20 > Signed-off-by: Arek Kusztal > --- Acked-by: Fan Zhang