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 3DC8742CC7; Thu, 15 Jun 2023 17:12:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B598F40FAE; Thu, 15 Jun 2023 17:12:47 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 96E9940EE3 for ; Thu, 15 Jun 2023 17:12:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686841966; x=1718377966; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=/Dd4fg/5JlOmuLRXYobTyDzXzxU2qUx3+LpOa1qfBNI=; b=i9sxN9gDHLyPA049fJMugdC/aKqb7KIBqJyRQZC2q4odggJc2UMKWcco mu3urWbH2G32dVkENX3TtyJRL6LpAqAHyYHdbvtLh5r+48Qg3a+QWSzYq m8JCirh5Enm1cctcVaBowr7lWYCw7uKndFsiU7C9LLsSL9Ok2D6xKZBM9 hc+DY1IAcLoTDvhX6/FhctyMxwiGX27ThF6MX7teaivuVQuRU/2LA5qzQ PuZBegPQVbsgIiyO22bpUNF34yV7NFAvY7KsmzmWFkVhkdt1nIO8BUVRf SS4g7jrx26gb9cANSSUE14/YXR25PtrvuaT9GjZwowB3ReB1zmllq4WVE g==; X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="422565551" X-IronPort-AV: E=Sophos;i="6.00,245,1681196400"; d="scan'208,217";a="422565551" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 07:45:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="782535826" X-IronPort-AV: E=Sophos;i="6.00,245,1681196400"; d="scan'208,217";a="782535826" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga004.fm.intel.com with ESMTP; 15 Jun 2023 07:45:48 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.23; Thu, 15 Jun 2023 07:45:47 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 15 Jun 2023 07:45:47 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Thu, 15 Jun 2023 07:45:47 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.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.23; Thu, 15 Jun 2023 07:45:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qj+WrOczQ68GnDjtT96CmpceH7ILbX3z34NwmuESzf+eMAhXI5OGLbfLtO4xraVz4dVidEFQb73A3WpSTzJctm+Z7mFr2+PR0XwR8WE6OUd0doxSBZqYnPNn3au+W+QuZ2/sl1Pxf1/rfrJmNNeYe6dasr/Y1ChuY1lhVHH5ujN90IDF27Uq7Xjg1Vb1ecDZo6cqzZVJSSCiWkkxExbso/SC3Mp0ushMvFZUJqo5aVhrDDMRO1RjLMXmWUXYcc1zqudoAIAadsEdgke564QvsR8WDSMkA1PmreKKbfdthsMaxf7r2EqXPgaD2SEVzxwLRGJlrFWCcdpgMa2BpPf4YQ== 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=zQsOlLK4FSoJ7OjzrGhzfFMsvc+KvEBp+YptzT93li4=; b=jGQiz7xVxS4jVFNpt7ST3C33Lx2jMaIKE8A87wQhfxlx9u0kOgBBRJ/uQ8hdPHSuaaKguokYtcnFMyf/GF4jLkB6QFRAEvCuikLIzxGxcSWVMKBdZu6aJVo9TJPj8/coGSyh9jgzdxKB9JdTs+pG+c2otfmrYYU20F1XkfNF34MwTb5NJBkTBxRUWG2mloUbMcluZMuNVZPCiUAK2HQpaeFITggYYGDE2CnNo7oQqycmtZySJff9DsqUdWmCWtpoO+Xxh6u6z0UCN7CaUhNkcEnLEsvMKYGbuoKnfk9QG3K1J9BQXLjX+T8aMg5P4jvzcUSAsboQrPu+WwXki+ehiQ== 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 SN6PR11MB3408.namprd11.prod.outlook.com (2603:10b6:805:bc::22) by PH0PR11MB4886.namprd11.prod.outlook.com (2603:10b6:510:33::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Thu, 15 Jun 2023 14:45:45 +0000 Received: from SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::121a:92cb:2f78:e53d]) by SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::121a:92cb:2f78:e53d%5]) with mapi id 15.20.6477.037; Thu, 15 Jun 2023 14:45:45 +0000 From: "Ji, Kai" To: "Power, Ciara" , "dev@dpdk.org" CC: "gmuthukrishn@marvell.com" Subject: Re: [PATCH] crypto/openssl: fix SM2 for older openssl version Thread-Topic: [PATCH] crypto/openssl: fix SM2 for older openssl version Thread-Index: AQHZn1/m2JRWv880skieUEdWzkxkga+L8TMe Date: Thu, 15 Jun 2023 14:45:45 +0000 Message-ID: References: <20230615080318.3360041-1-ciara.power@intel.com> In-Reply-To: <20230615080318.3360041-1-ciara.power@intel.com> Accept-Language: en-GB, en-US, en-IE Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: 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: SN6PR11MB3408:EE_|PH0PR11MB4886:EE_ x-ms-office365-filtering-correlation-id: 1bf88f4e-bf8b-4590-5902-08db6daf3391 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UNolL1g6Ahrgv30C3t2e5pt6M/4qqVy2wtMINE6nbHuNKlCgJv1VNYRAtHYzVI7m4oRVQ3TrhesW92dxYC37H+P119cEbDXU0GdZj+9rVYRiZ1jpBuT1hR54E62g51MkzvC+nBvysCQIVfLz3z0xTWbUqh1NUFMQXAQapCI0mnX+7koBQLoc0RdeKquJPM2EeLz+O+fHFd5ed/yKiLeLn8XP0BpLDjGClIqnP4BCPk3XV7jqFCB1UJTTfDSRsgW0z6tHQRH6c7kWYC1DnXUF1l0jHYDywKNonCyFMgCa2zoGMR3IeD+4CSd1iG6NEeIga3mfKzn7PAnXn78vtWKLZX4GNKz69EFm/S9SUZTJYl8lGiENWRvp8NiozPqNP52NORd/lQXoZy9dcDwumetiTaRtFYg+Xw0DJ0/9GJRxOnJQJ2InaVvgISpBXR7HNEY9PvD8Ao1+m8NGRfVosOHb0ndXvMFcq+RFu9qne3UfcYAZitvowd62bWGB04v1j6SbEtu0GsvbbwQppdhsY4NgxWUzxHWMavBvSv7Yq499O2hi4zQd8Vr4B17SuaUeJDbGmu5rMUifa2hMAF+SFh6iq+QMfqy+/Kvpl57QVxY2r2IwV6Kpa2csTYVdYyBquodk x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3408.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(346002)(376002)(39860400002)(366004)(396003)(136003)(451199021)(86362001)(7696005)(316002)(8676002)(41300700001)(82960400001)(26005)(83380400001)(55016003)(5660300002)(38100700002)(53546011)(9686003)(6506007)(52536014)(122000001)(33656002)(8936002)(71200400001)(38070700005)(91956017)(64756008)(66556008)(76116006)(4326008)(66946007)(478600001)(186003)(19627405001)(2906002)(66476007)(66446008)(110136005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?g0gUny1TcerWpPlizBRHhQjtnJxYz+k17OQIfXPX27D1AX30mGV0GT/T+h1J?= =?us-ascii?Q?y24tkLYEqta2F0hkKMxMUGXKkDKggQxDlr0Wmyz4VdC7HzbRk6hGyM7UFYSF?= =?us-ascii?Q?TtWmIBGCM8U2LcweziqnsMohInJ6xhu5HKoi2ZheXddbxLZQS4mLx6d5jlz7?= =?us-ascii?Q?Bq3QkKqK+sQ3AN9kkKHdNWnq5Jb5pcyTCBDRDsXr8NE83FV6ZOQR+Mus8DYx?= =?us-ascii?Q?LyK4kc4sCLeCBbh4jY2f2YdRLA30SCNiJ4gtxrOwQTA5C5DEpEGVFTKqOmk3?= =?us-ascii?Q?/Lefk9dLeHTaheCvulNLeum9Mg1+oPYbimLWX5zla8joPqALS8ZS5YLwdR7T?= =?us-ascii?Q?pDfC5q0ZCILdwHDNcdXKGGfuT+ipC300tS6iWHFu2fX2NJ6ub+uJgN5bQnrd?= =?us-ascii?Q?jn6oaxXkl9XBmZakjw1CV3twiGL5t1eq7uaTFzOJ8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cCQJD+6b6uefQVufak4bCyJwhlDHScflev/ZVyIMIyX2b/eDkeD?= =?us-ascii?Q?qK89ESZsDE9PE+2BQ5ajsU0fPuFmzUOBDrfjmOdO6D+gjd8vZtF/O6o6vKaE?= =?us-ascii?Q?ZVZsasHmk+wpOCIBF+SYf3UIuiFg569TEDJt4ozTLhGz3Wp9S8YHcjPp4Dcs?= =?us-ascii?Q?ASyOgrqDONV0hApa7NVE1Au7KCIJVPDiLv3A3CwGoK9zE0EFZ5c3uM0KTkUC?= =?us-ascii?Q?8Y7CvVPfVGP6uI9PL/s=3D?= Content-Type: multipart/alternative; boundary="_000_SN6PR11MB34085724A0972B61F31F7173815BASN6PR11MB3408namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3408.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1bf88f4e-bf8b-4590-5902-08db6daf3391 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2023 14:45:45.4572 (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: SlcwS4l9X0taE9B1Iv/m+sqkEHWhz0RP5fb/74LLSYOXEBFRODAg3bJdNun1FpmgjI+wcJmB/AzuEWBoN1hkLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4886 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 --_000_SN6PR11MB34085724A0972B61F31F7173815BASN6PR11MB3408namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Acked-by: Kai Ji > ________________________________ From: Power, Ciara Sent: 15 June 2023 09:03 To: dev@dpdk.org Cc: Power, Ciara ; gmuthukrishn@marvell.com ; Ji, Kai Subject: [PATCH] crypto/openssl: fix SM2 for older openssl version Currently when configuring the session for SM2 asym on OpenSSL PMD using an older OpenSSL version than 3.0, an error returns, showing a failure status for tests. This should skip tests, as the SM2 support is for OpenSSL version 3.0+. Fixes: 3b7d638fb11f ("crypto/openssl: support asymmetric SM2") Cc: gmuthukrishn@marvell.com Signed-off-by: Ciara Power --- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/= openssl/rte_openssl_pmd_ops.c index fe38e4ebd8..9497da41ef 100644 --- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c +++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c @@ -1324,6 +1324,9 @@ static int openssl_set_asym_session_parameters( OSSL_PARAM_free(asym_session->u.sm2.params); return -1; +#else + OPENSSL_LOG(WARNING, "SM2 unsupported for OpenSSL Version <= 3.0"); + return -ENOTSUP; #endif } default: -- 2.25.1 --_000_SN6PR11MB34085724A0972B61F31F7173815BASN6PR11MB3408namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Acked-by: Kai Ji <kai.ji@intel.com>

From: Power, Ciara <ciar= a.power@intel.com>
Sent: 15 June 2023 09:03
To: dev@dpdk.org <dev@dpdk.org>
Cc: Power, Ciara <ciara.power@intel.com>; gmuthukrishn@marvell= .com <gmuthukrishn@marvell.com>; Ji, Kai <kai.ji@intel.com>
Subject: [PATCH] crypto/openssl: fix SM2 for older openssl version
 
Currently when configuring the session for SM2 asy= m on OpenSSL PMD using
an older OpenSSL version than 3.0, an error returns,
showing a failure status for tests.

This should skip tests, as the SM2 support is for OpenSSL version 3.0+.

Fixes: 3b7d638fb11f ("crypto/openssl: support asymmetric SM2") Cc: gmuthukrishn@marvell.com

Signed-off-by: Ciara Power <ciara.power@intel.com>
---
 drivers/crypto/openssl/rte_openssl_pmd_ops.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/= openssl/rte_openssl_pmd_ops.c
index fe38e4ebd8..9497da41ef 100644
--- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c
+++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c
@@ -1324,6 +1324,9 @@ static int openssl_set_asym_session_parameters(
            &nb= sp;            OSSL_= PARAM_free(asym_session->u.sm2.params);
 
            &nb= sp;    return -1;
+#else
+            &n= bsp;  OPENSSL_LOG(WARNING, "SM2 unsupported for OpenSSL Version &= lt; 3.0");
+            &n= bsp;  return -ENOTSUP;
 #endif
         }
         default:
--
2.25.1

--_000_SN6PR11MB34085724A0972B61F31F7173815BASN6PR11MB3408namp_--