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 DB54745C14; Wed, 30 Oct 2024 12:29:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09F13433DA; Wed, 30 Oct 2024 12:29:14 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id A9F42433D5 for ; Wed, 30 Oct 2024 12:29:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730287752; x=1761823752; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=XF+OenvtyCJUNzXjUCdwXPX+5mD1nnAKqcQbLVT7jzU=; b=JwPbSDIGjB74eOwGHUwRHCpKHoUU4LjrM+fzicbMu13pzqHycYCl8df0 tukF8axbY9mCyB9KyUveJSdKiSnIvzxwEZIjaOyPPjXXGe645aB6Ri1vb n2EM5FYOVx/vhW1xBlSzAmItPH2XSl9Gklhco+VCt8k0gGfcwYQpVv1t6 G34BXkHwWpBcpbC+m21L+yAJ0I+8AeCdl7y3Q/1TARvkp65ub2Ft/8I/L t/lOvYbAnDpmGFVBrHIXKWzz+dUpEfwqvlfhZe4ha5oRO0kVqi/MPU8V+ qs1wG2ZZ2sAVUv7ofPq2HfxPoLFpvo74AlsdNgGign2qLsG7PWWdq9jmR A==; X-CSE-ConnectionGUID: S3OitSxWS1+GhYi27kdl2g== X-CSE-MsgGUID: tWvE79KzRsuLggN3xGwTLA== X-IronPort-AV: E=McAfee;i="6700,10204,11240"; a="40589128" X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="40589128" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2024 04:29:11 -0700 X-CSE-ConnectionGUID: 2v9OE6zYTW2/AJ2cdbeJQg== X-CSE-MsgGUID: aBttfWVpQIudcWGh6Ebmtw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="81935966" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 30 Oct 2024 04:29:11 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 30 Oct 2024 04:29:10 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 30 Oct 2024 04:29:10 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.177) 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; Wed, 30 Oct 2024 04:29:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JJg9q43FlwQoBUkhr5PWvAC11Z25HTmLCOMm1jEqTA5TzW1VG1gQvqQavoA6fYK94BtAre5sARl9x+HZf5SL+OaWymPydGpB85JFF56hsidzRm5q6CQXR1UKYp8bRLxJmTz5af/3iBWYjRed6Awq7FrxgppM+CJx+8lDv8CgENLHQsj8qBBSzSFMLB9B7bgo95/W9vSLyFMetVypAmkeWraT2SRgIbzg4QLNo6Q9wnFkqusXq4DGDjUp/k6tkojFw99uBrg/hUnjZdOdGaGhrsuOphvgd5qVVziIY/2Qsj8AxezzdDHBA/CGp4Dz4BnRx2imDm5z+bmyYgEfs2DxlA== 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=kKiFUGAhj4Ft+19tutAypw9nyccqU59gPMPbXbWC520=; b=I/WjwERXg8ww4UglFBEQRO3YOLqFPcQRiW0PwzV6M/f9DmLGeYn2P4KiZhbMHl+AOMsOXI4UXDTPvbKVE944xOZ/26ymlfS7yMexTfLeEYAe3yMhgB9hQQGkaqARBW8zDiMbdTzLtHPVeFrnK/RuT9LDacToEey7zgcjj0xAmmQITMvljnMJiwJmj8tj+0+8JSEcvam0PsPzrozGpPAuhfibR2SX6WcKLT4u4mgMCw2hy0wdFzOeTi6lqqNN1wu6WAdVFUHFk5SxFnx59861/7oPC+Y1XvcX3g5QAfwwjDGDIa5kvUDGB8ND5F8qsWGCve3kCz0gdC1cXTGsWO5qpg== 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 SJ0PR11MB5056.namprd11.prod.outlook.com (2603:10b6:a03:2d5::6) by CH2PR11MB8777.namprd11.prod.outlook.com (2603:10b6:610:283::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Wed, 30 Oct 2024 11:29:07 +0000 Received: from SJ0PR11MB5056.namprd11.prod.outlook.com ([fe80::4f35:279e:a725:ad08]) by SJ0PR11MB5056.namprd11.prod.outlook.com ([fe80::4f35:279e:a725:ad08%2]) with mapi id 15.20.8093.027; Wed, 30 Oct 2024 11:29:07 +0000 From: "Dooley, Brian" To: Gowrishankar Muthukrishnan , "dev@dpdk.org" CC: Anoob Joseph , Akhil Goyal Subject: RE: [PATCH v1] examples/fips_validation: prehash input for RSA Thread-Topic: [PATCH v1] examples/fips_validation: prehash input for RSA Thread-Index: AQHbKcyrqMzH+F9fYEOgZkcsqmZigbKfKfSg Date: Wed, 30 Oct 2024 11:29:07 +0000 Message-ID: References: <20241029060107.1135-1-gmuthukrishn@marvell.com> In-Reply-To: <20241029060107.1135-1-gmuthukrishn@marvell.com> 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: SJ0PR11MB5056:EE_|CH2PR11MB8777:EE_ x-ms-office365-filtering-correlation-id: c66f778f-f7e5-4d3c-b1b1-08dcf8d61119 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?9TstvrgTBmLlrUDPYLFgrXjjIT3IamC94JM8XCDDARYzbcavD+zATyUMxmP9?= =?us-ascii?Q?13cFTwTXG5jWPCGKrrGBWSUjIyHypJeezIbdy4eZSuzGOqq7ty930bWt7Fyl?= =?us-ascii?Q?nCtPpQ/aGaViYCutsvherVZ7wOih2fz2iqtyPONBN4ghkwUEgIz4bHfXY523?= =?us-ascii?Q?ZvlUdG/12Y9BcCMvGqIZKYv68dEa7GLAHvaBZNinVRFcm/Mzl/XoP37Kgaax?= =?us-ascii?Q?676yaQt8yyxn+Lx7+tvM8o0WgmsBLWZuGVRkdGAoz8kliZKt/CQaxdAaFiIv?= =?us-ascii?Q?OMMjuZCb6MLlK0iiHQs6mqFKhfKca2VehOlMZiF+0MJaK3xx66RvtC45LXM4?= =?us-ascii?Q?hJqAlr3cqf/ED9UXIqHqTHeq1H9tqlxqAwd6bzcnDuEv3H8Lza9SHAiWkGd4?= =?us-ascii?Q?G5dn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QH6NYrTqsAE?= =?us-ascii?Q?CHy2i9vx9mmzLxIgDC0vYmfT4dEXm8XLQFY8awBIG0UK9z9b9MrPQtVwBhTH?= =?us-ascii?Q?kGytUpU=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB5056.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?p8Q54UC+/NOUP5qpz3EI0T2l7vFv6xC8AnAzS9lygv/t1JVAMClkcgZ+Wz5r?= =?us-ascii?Q?6LzXzMWKyfTYu4GulrrEpfgQsjqaYPT/1XXnuHS/ee0mHFA8k9kBi9atDP0j?= =?us-ascii?Q?4L/kRE5gw872XF3mSah/bLtStIPAM4S8vjwaQivVGnCunsIWlqVAzzEQ1HlA?= =?us-ascii?Q?ia12dGWGURD4fCPKDaaYdkyyrpfFhhl1ZuafOw/MUZHTmFFKtnZEmq+xA0jm?= =?us-ascii?Q?kO+++5L34x3+hR2T6c/lcJB3/W7+cMFmLci+krk3IO3l1qtStXIBCfBpjOeN?= =?us-ascii?Q?igrJDSDEMi/wJtAt5RgevHkFOFfhypb21sV6Gz/LiLMUg6twLbEq6LLbW7Fu?= =?us-ascii?Q?XbFViXtx+QhlEcHK7kM03mUl+b7MTiiAh6sOw9ynLE9b+1n15suKmE41AJXe?= =?us-ascii?Q?Lgt1xoRZRpUuekR8jNrVOis7zGwH3OXaJMSTw69yFp8w/KD1zdoowJkn76FC?= =?us-ascii?Q?gQ2Ui8lkWfGt2G8gCrKfniTgGpHAG+s9wlq0Zd25YcW+cZ5A+wDknKa5D88P?= =?us-ascii?Q?CGkNFYWCGls7XoE53UR62PuUe1rAX3+h3Neq+fLz1UjCijjE2SWI2T4ODwMG?= =?us-ascii?Q?WUUvuJOVQq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1k/C2fHR0fyxib5d8?= =?us-ascii?Q?Mxjl3isesRrdjjW6z8sRbdx7jUvPhHcRT6HDHV3L9UIowS5iYK6Hlgw9hEua?= =?us-ascii?Q?fDaN4DXPUMMIk/0jimcMm5dQTdUINNLmY7+bhbeX?= 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: SJ0PR11MB5056.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c66f778f-f7e5-4d3c-b1b1-08dcf8d61119 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Oct 2024 11:29:07.3098 (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: SYgFWMe2zb/6+FTPOucAIL9h+aRSiHe8lO+fEBa5aOrhAMr+MWksAS0aAh7dhga47QtCNINqbY4sN7l7jBBjVQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR11MB8777 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: Gowrishankar Muthukrishnan > Sent: Tuesday 29 October 2024 06:01 > To: dev@dpdk.org; Dooley, Brian ; Gowrishankar > Muthukrishnan > Cc: Anoob Joseph ; Akhil Goyal > Subject: [PATCH v1] examples/fips_validation: prehash input for RSA >=20 > Plain text needs to be prehashed for RSA as well in asymmetric crypto > validation. >=20 > Fixes: 12ede9ac497f ("examples/fips_validation: support EdDSA") >=20 > Signed-off-by: Gowrishankar Muthukrishnan > --- > examples/fips_validation/main.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/examples/fips_validation/main.c > b/examples/fips_validation/main.c index b34015ad9f..f21826e9d7 100644 > --- a/examples/fips_validation/main.c > +++ b/examples/fips_validation/main.c > @@ -1940,7 +1940,8 @@ fips_run_test(void) > return fips_run_asym_test(); > } >=20 > - if (info.algo =3D=3D FIPS_TEST_ALGO_ECDSA) { > + if (info.algo =3D=3D FIPS_TEST_ALGO_ECDSA || > + info.algo =3D=3D FIPS_TEST_ALGO_RSA) { > vec.cipher_auth.digest.len =3D >=20 > parse_test_sha_hash_size(info.interim_info.ecdsa_data.auth); > test_ops.prepare_sym_xform =3D prepare_sha_xform; > -- > 2.37.1 Acked-by: Brian Dooley