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 D9E8741DAE; Wed, 1 Mar 2023 20:18:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3BE0A41156; Wed, 1 Mar 2023 20:18:01 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 92D1740693; Wed, 1 Mar 2023 20:17:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677698279; x=1709234279; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=FHEZbX2NbtJysobSX9WqMMAPFYITUjooW11i6NZHGNE=; b=kLPz5yF55lIHIfOfgrusazt7s9VieJFCJRI0JkAiKmsVQe5EgY6xvwB8 rZpiLzILhtMKA+o8DKoWpS/5TdBSfOqleE7dzPTUr+wKbOq7WI+aBqv0X 3PKwHjp2l4D2FNlhmDwNdCo0giCXWGcLYM+5pEq9S+ult0oxzYwkM38t/ rmI697oK3EGk7AfEcCIUBeOZMibtnBFyhQuAUYjrY+KaXpL9xzUYmqFNN P+G7GL3lY8UW0alfUvF1JF9rRsHOaHtTgDj7Qtu4zl6XqZHGBSMJNTMgt M4NNNKSN+QSFId5xFv+5y6L3DLQZFJWjVEbICh6DXG2mPh39LX2fDixod A==; X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="335991247" X-IronPort-AV: E=Sophos;i="5.98,225,1673942400"; d="scan'208";a="335991247" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2023 11:17:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="738750126" X-IronPort-AV: E=Sophos;i="5.98,225,1673942400"; d="scan'208";a="738750126" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga008.fm.intel.com with ESMTP; 01 Mar 2023 11:17:41 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.2507.21; Wed, 1 Mar 2023 11:17:41 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.21 via Frontend Transport; Wed, 1 Mar 2023 11:17:41 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Wed, 1 Mar 2023 11:17:39 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dj0CTI2qWPu6belAhZtASghSjbG1Y39OEmfYd5NCGaXmx6ai+9cSN6O2Llu60AnfbPN70GPLvkaSF26+q2v+CZClMyilDs2Q3+wEVzLC18/WCqRZWioQk5MXZAl4DhPkvqlwlCAKz3tVlpaiTthhBknqJGXLBIXcLSANcYm+BGpIhgUDf1qwCHqIptibuMDppr8RvogEwxgqb+d/rRIOiXCBUGL9VMh++0H6qaHL2r79raoMhiOW57f0xCulrt4AaD0ahqewKMpFfDRcsK6azI6KYGdpFnlRcY1rfuA1g/87ZCmvD3qc9VeOz5bpPwGtzQPo6s0EvxP2Zk/w4Nw1EA== 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=XqKCBjaDWN/TK/DSSh19kK0Uaa1Uk3GiZx1puqED9kM=; b=cAy7wt9joo+lYUMkt1IBSxUFFDL8EnNuf75HdFw6XEbEjKef9Clk85xxwyAVo867sSoJQN8NsXX90m9iVjRCf6g8WMp5dr35M0xR4gac999p9Wlph4OyyC8BNN+SG+xoe8JjNZzhiS6IwjH4aVoOEk6ofqJ2kArDmr65UsHc+Dp/0qecviHdYLS9Dzaz0a6zqxlgSwbl2UdHaIA9cFpvmnUEdKEKVAoDwg5DT5TWwTeEYm9JS39D8iL0PQ8pL8ScfD+jjhWV10gfDaKE6dVekpeDkoAw6uvXwx2l0aIw86APtc/QazvnvpsLrjS3GzEPxQPl2elPmzq3g8Jn4bMRhg== 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 PH0PR11MB5013.namprd11.prod.outlook.com (2603:10b6:510:30::21) by IA0PR11MB7934.namprd11.prod.outlook.com (2603:10b6:208:40d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.30; Wed, 1 Mar 2023 19:17:37 +0000 Received: from PH0PR11MB5013.namprd11.prod.outlook.com ([fe80::601a:561a:bce9:967]) by PH0PR11MB5013.namprd11.prod.outlook.com ([fe80::601a:561a:bce9:967%3]) with mapi id 15.20.6134.021; Wed, 1 Mar 2023 19:17:37 +0000 From: "Kusztal, ArkadiuszX" To: "Power, Ciara" , "Ji, Kai" CC: "dev@dpdk.org" , "stable@dpdk.org" Subject: RE: [PATCH] crypto/qat: fix SM3 auth mode Thread-Topic: [PATCH] crypto/qat: fix SM3 auth mode Thread-Index: AQHZTEYKmgCyQ8vPoUC+/RomUgGP1K7mTDYw Date: Wed, 1 Mar 2023 19:17:37 +0000 Message-ID: References: <20230301135915.2184760-1-ciara.power@intel.com> In-Reply-To: <20230301135915.2184760-1-ciara.power@intel.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: PH0PR11MB5013:EE_|IA0PR11MB7934:EE_ x-ms-office365-filtering-correlation-id: 2c550ceb-71c4-41ae-4e9c-08db1a899e5e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hubgj4JXyBdQVTiMyIF3SKxXbWLhMcB2990RidoBS58Wnuy7BLU7nZFeMyijD0eP7hdMtTCi+sOa0upMRBYPQxs1qwR49uoARZVlF05wWkuJkAaoJ87NgMf0Lxvt8O8e/mFmRZyPcqC3H1eATsOrHsjXBddDa941EVIz8GlDuNhw5y/aWZujqR9ZRn1Um/UpaEM2iPbZfT4bzAr6QrVrLGx/B/1haMj0BdWRQz4Z5fuP3lXF1jif0lOCSbwF0DFHHj0CGjYjRPn44WU+aQwc/tYJjf0WC8ca7fMxmb8sLwLnxPRZfwjap8rTaaINyF8uo5VgnlnRMpPi+pr1NOScWjp8ilP5SYPErR5wOEqGXOo3ZhnN5VzLRhjeBlRfnRMJH45aN6/n+Plf717F0K/ft8f6EVhYEt7PwnslscpnXOmlssOJuE1dxw05xpaJD8355dqLoa61XeaPpFbHlf6jRFV0FMoe+y6sB4LzwRYyChixB0hmCrUPgsy0njysluzW0a9aDvFIXrZOP52e4Y2HaZ9n8XEB+kgIGNDibmZdMA00wc8chCPYu8JWo9NgLqbbl3kbmsimLJpwyZffjdWfUfD+/BAjM/gCxVWvnJ3tZEGSH2pb6a27hsCnPgapaL2ohdyt2VM5Gv0+bKMoGniQNytDNMapSM9zMmnCD4hDCOo7YJIsxFagl16G1j0KvOD7 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5013.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(136003)(396003)(366004)(39860400002)(376002)(451199018)(33656002)(86362001)(38070700005)(55016003)(66946007)(66556008)(66476007)(64756008)(5660300002)(41300700001)(66446008)(8676002)(8936002)(2906002)(82960400001)(122000001)(4326008)(38100700002)(52536014)(7696005)(54906003)(316002)(478600001)(6636002)(450100002)(71200400001)(76116006)(83380400001)(186003)(110136005)(53546011)(9686003)(26005)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?r1Vr2QBuBY5Vzt8Q5IgDu7UMarpfhKksrweii7BWLkorniMt45tYSEaHrBPM?= =?us-ascii?Q?BYvHTMZekwxM9FlFNx25l41HD0RP61x2yYPS7o9nQmulqVAxU41tJq4ZS74r?= =?us-ascii?Q?SlvLJpfcUh+ToZ7YSmguKpMYbDLkoxrTNf4hKi/OREr7EyTGUtw2XzIrKdPF?= =?us-ascii?Q?f5bS2gCSm8Q9WxO2UWsa6dvcBobNXVU4vgXS88lF7k82xNGhg8FtGlBam77D?= =?us-ascii?Q?h1FNbp8lPWcgYCSMAKxuzR7JdPmiXNGQXKInM8kD79BttAA9JcW5sspvjIk0?= =?us-ascii?Q?hEQmgZatOya+rvr47+IZO6i7A8g7fZhj75w8iZEHzT1ER1ug6JkQc1vAHnql?= =?us-ascii?Q?AvpmA5rNr0IxNHoXhE+T3PAWpXjvHRSm1VwEEdOTm+j0pgLrPCQaiqIK275n?= =?us-ascii?Q?JX62PCPIjjhfA9u5onvUvKzTCm31dPr22Zm3bBGCMdV89upC+dQsV+ZQ6ZwE?= =?us-ascii?Q?DZ26u70xCML8H640F4oWe0enEu8lhAtrzpFvbYYUsjAcoRoxPhEwlhn7YY84?= =?us-ascii?Q?QNJ1iofnwdaPqNxkIpbvV8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ascii?Q?b8vFE1W28/JVNoBrT0yVGFauFH7zB13VAXIXsC4e4I7+5O7BbtQFyoMirXO3?= =?us-ascii?Q?tLLIc32kL452NnM534koMePdWZej0NKa+OsluFWcDQtpXxiB5uJqTIderuFA?= =?us-ascii?Q?qhzYEPtMubLQdfJMteueFxcT6iHKSxovnOM6xxXQlSvQ7A5GMZw6nVwKEkHv?= =?us-ascii?Q?uA=3D=3D?= 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: PH0PR11MB5013.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c550ceb-71c4-41ae-4e9c-08db1a899e5e X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2023 19:17:37.2254 (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: EucINeutoB5coMmRwpP4Ak2qiwz4gJWSsFCEDgAGN/zEaX/YWhre7KjjU0T+CdL8eHiS/Rf42SYVg4CL2J4mwkCD5rmpWA0WmITgE5kO8Tk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7934 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: Power, Ciara > Sent: Wednesday, March 1, 2023 2:59 PM > To: Ji, Kai > Cc: dev@dpdk.org; Power, Ciara ; Kusztal, Arkadius= zX > ; stable@dpdk.org > Subject: [PATCH] crypto/qat: fix SM3 auth mode >=20 > The SM3 auth mode is now set to 0 for QAT, to support plain hash only. > This should also be added to the capabilities for GEN3 and GEN4. > SM3 HMAC is not supported. >=20 > Fixes: 75fd4bbc94ab ("crypto/qat: support SM3 hash algorithm") > Cc: arkadiuszx.kusztal@intel.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Ciara Power > --- > drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 3 +++ > drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 3 +++ > drivers/crypto/qat/qat_sym_session.c | 2 +- > 3 files changed, 7 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/crypto/qat/qat_sym_session.c > b/drivers/crypto/qat/qat_sym_session.c > index 466482d225..6ad6c7ee3a 100644 > --- a/drivers/crypto/qat/qat_sym_session.c > +++ b/drivers/crypto/qat/qat_sym_session.c > @@ -697,7 +697,7 @@ qat_sym_session_configure_auth(struct rte_cryptodev > *dev, > switch (auth_xform->algo) { > case RTE_CRYPTO_AUTH_SM3: > session->qat_hash_alg =3D ICP_QAT_HW_AUTH_ALGO_SM3; > - session->auth_mode =3D ICP_QAT_HW_AUTH_MODE2; > + session->auth_mode =3D ICP_QAT_HW_AUTH_MODE0; > break; > case RTE_CRYPTO_AUTH_SHA1: > session->qat_hash_alg =3D ICP_QAT_HW_AUTH_ALGO_SHA1; > -- > 2.25.1 Acked-by: Arek Kusztal