From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 476C85914E; Fri, 26 Jan 2024 09:03:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=144.6.53.87 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706259807; cv=none; b=ALLn/Tyyq789YzkG5bYXThhEs+GGJHnGuBiQLZGIZlflgpBh4a5NzUYkiW3mGCOVSTVdhsuWLE2YSqwlCnbaRjnpi4GcHV/FrC4mS6qRkyGIjtf9TpAqndBsDFUYdBIF1OghgdLOOl8HWtQcbXft1/urjLNdIj9pxRyW/V4Z18s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706259807; c=relaxed/simple; bh=az8KoYYHL54wFPBeGIuPLFmaIGFuIvOXDtCDBH93erk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VCJH6rMJoM1WQQxh0V9VPKTaaGXSQAkEJ7pcO8Mo8kIwfy2x93uKkZE3DCt7WJyZOCkhwkisggYQJnaZsKRyHMb9WSvH1F1LmOrZf+yW6bZQaf5qk116pljiuhzbMFt89KfropDKTcMX8tBC18SLq7jY0CWeT0L0PywQpqPk/kc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au; spf=pass smtp.mailfrom=gondor.apana.org.au; arc=none smtp.client-ip=144.6.53.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rTI7I-006EmX-WD; Fri, 26 Jan 2024 17:03:18 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 26 Jan 2024 17:03:29 +0800 Date: Fri, 26 Jan 2024 17:03:29 +0800 From: Herbert Xu To: Gaurav Jain Cc: "David S . Miller" , Eric Biggers , Horia Geanta , Pankaj Gupta , Varun Sethi , Meenakshi Aggarwal , Aisheng Dong , Silvano Di Ninno , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com Subject: Re: [PATCH v2] crypto: caam: fix asynchronous hash Message-ID: References: <20240118092557.1891120-1-gaurav.jain@nxp.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240118092557.1891120-1-gaurav.jain@nxp.com> On Thu, Jan 18, 2024 at 02:55:57PM +0530, Gaurav Jain wrote: > ahash_alg->setkey is updated to ahash_nosetkey in ahash.c > so checking setkey() function to determine hmac algorithm is not valid. > > to fix this added is_hmac variable in structure caam_hash_alg to determine > whether the algorithm is hmac or not. > > Fixes: 2f1f34c1bf7b ("crypto: ahash - optimize performance when wrapping shash") > Signed-off-by: Gaurav Jain > --- > changes in v2: > - remove if condition based on crypto_hash_alg_has_setkey() funcion. > - added is_hmac variable in caam_hash_alg and updated the if > condition for checking hmac algorithm. > > drivers/crypto/caam/caamalg_qi2.c | 7 +++++-- > drivers/crypto/caam/caamhash.c | 7 +++++-- > 2 files changed, 10 insertions(+), 4 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt