Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp521812rdb; Fri, 26 Jan 2024 02:56:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPm73wMuCWo4qPGBJaNtem71tb93gGKzQoSt7XdVm5BU5O0gqFBMCP21SZI/IZeI0DYB8y X-Received: by 2002:a05:6a20:c126:b0:199:c08b:50e6 with SMTP id bh38-20020a056a20c12600b00199c08b50e6mr1006568pzb.109.1706266613397; Fri, 26 Jan 2024 02:56:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706266613; cv=pass; d=google.com; s=arc-20160816; b=M28C+Q7XjcbxgEj+WDr6BKbYSkGdYRJ/DvXqNNCZlehHWruBdZ3uwRvTZHwaKaFiaH uNoejIWDUE2BbBN1O+hxB9JXIysI7UhOkkbUIyIxDWbHxYCLub5eltD4a24o3i+lJAS+ Omvf37+782tWFZsXZLHYIC0YZLMHBwZ8R7R/5ovqrtDwWDucQBeFTd2exPXt9ApD4nmv l0mg3R2tEiYZ80/0gML0tKEoydLPtB7+hzX5B5uvTdHXw/0d9w1QaKMWXbptn9Y49EHo gYjSI51l067Dat3FhRHP8xHTYTsK4GnRUoAIkqp2904G1nzYsVeuzAMdmTR3ocBzwAcx iB+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=5UUZzA5le2dMCJIGDeSNflq0UOaCceSaNrTm/RaICfc=; fh=5RpNysk7FcZ5XI18GamBxxzMLz1X39QtFHSuUOeCxiw=; b=CFl2nkm0fbnhaiYHe5d4t2kJDP6FsYV7Rd3eZfEu9aFQF++O3IBu+9XSVx8OiciuC0 Jtu0Szzorj2SJJkD0eRnHgqahPWNZjfUv6Yvco9vbKhvuxDdr4cQc/HuY1qsad5+rE0R QqGsvtOfcgjvhvVeDTCy+hw3SIzFEDtJCr24yj6EH1aRf/zM10VME3H362bicwR+9N7D K13EfEf5DX1iFVFINghjkgQV/3WUoi38mQYBW5ql6+nYjfr9DybuifRLo0rveQB5HLyi +bsq9TxUQd0T4xUDh9tjKwsGb1IoguB/V2jpyMT2GEkMNuyIe2H30coVvEzCjdsEuDfc h7UQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-crypto+bounces-1654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1654-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k186-20020a6384c3000000b005bdc49d22a4si925942pgd.103.2024.01.26.02.56.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 02:56:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-crypto+bounces-1654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1654-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D5CE7B3009E for ; Fri, 26 Jan 2024 09:52:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51D8B5A79F; Fri, 26 Jan 2024 09:03:27 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org 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