Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3177388pxb; Sun, 7 Feb 2021 00:04:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRn+21Mm03K4jhJJYeg4KmI1INdpqDcuoPh4F6l1QNdunZDRJeoifZz+lD4qRcTmnDmUwa X-Received: by 2002:a17:906:178d:: with SMTP id t13mr11642369eje.455.1612685097116; Sun, 07 Feb 2021 00:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612685097; cv=none; d=google.com; s=arc-20160816; b=m1qSDQhIvpuyFiBjAOLlzGYUc3NyZOmMKDCLp5lYdz4f25dHyt/kDdTHU9VcEBdVTP 3mETsYTLTQElKYPTLfxgiRa43Gvgklf2jT0aKOKTL6tSO0bFDCwfRFd2XkD7bqb7f8lV P+AgC7rnTPpi2sy8/OZjFEFkhC/et0O3673EAJxa3TpPOl3CHGgODyuNhooCA4ulkEjb 0JcZtXvE1H3QRpPzrMfTV3PfQz7GLmFoHKULzLnGDnS/khYcyZcMXiwJsNBwhOH5sFDs 6ta1Aq8UjFbgQkPGGFqU6eBTdreCKbVAORnyjeiHTwctI2brL8wsYTpub3BFbSApVjAy mvLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=x0pQe5hmzWDdR53sWKAPvASgJbRwn6vbdTqaGsvzPvw=; b=V2LddwnUul8HGHp/7RoIQllfjn5V3LZdN7wOoGWjDoTTHv+wjrv16RQtMVn3sI59IZ K3nPYby52F4kRLBRHBxzrvYXNGXqWTMteMqTmEZOpADAGcQvODmpPfIeupObqutJnpqq jiyugulrRyOEOBn6GpFUtHrBa9Ip7fG1XiHAOESWrdKX2UCJEdPhsQAkKbvh2whtBxce C2U3MEu5EyMPuAOsJu2uXQ3HeXtUzP9+YRA2EbLMgDDbpcCaOn1T+b/6Q/PhQq0I5brH LrBDeeTdLG9LedF/Tij6i/lVitXhHxmlfSepaXgo9crjnfrUCbBPPGSTYFcc3HKK87A9 xqFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MG7mOnir; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r2si6047356edv.48.2021.02.07.00.04.18; Sun, 07 Feb 2021 00:04:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MG7mOnir; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229522AbhBGIDi (ORCPT + 99 others); Sun, 7 Feb 2021 03:03:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:55540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbhBGIDi (ORCPT ); Sun, 7 Feb 2021 03:03:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8C78B64E6E; Sun, 7 Feb 2021 08:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612684977; bh=+2GOPQfQ4+OGkWO4z8VvIgNpg1iWJMavGhhiikAuIws=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MG7mOniryz/9bO42HvTNUW0HQTZ/oiyGnwMgf0SQxEidmEG+YDx2r0PGtHx3sqBff +/i6KQYRCLHCH4WlMRGRFSDljbLr95Y8OGRwm/HbiHXQo1rATSZVjP0pzjMHo/iWqr r9WgzCAqge5jzGp12+ZoZqvE2/M79+YwhK/o84nO7HOq1RnIMLhuD/CCy8lXVkhGZy nscN4x7vSpAO50PVbCz4jT+XrtLIL1G1uCKUY4IfTrAW7kVATNx9RaE/NLfiCzA3X9 ep9aSRPxH22TeY2Epk9t81FlVh1Uoi74LmqC3fQoLgif921cDqV5aekC6/wjpQluRj mqeTDDCGoFwZw== Received: by mail-oi1-f174.google.com with SMTP id k204so10850239oih.3; Sun, 07 Feb 2021 00:02:57 -0800 (PST) X-Gm-Message-State: AOAM532J7Gg+/LrcUb1jyUjqC0yAge6fM7v17V6ILymEqkjL/Z2WUeiy GMb+lpgN8kHPEXo2K+vvJhUFPCUN8h4YPLFZJ3A= X-Received: by 2002:aca:b6c1:: with SMTP id g184mr7989702oif.47.1612684976939; Sun, 07 Feb 2021 00:02:56 -0800 (PST) MIME-Version: 1.0 References: <1612519857-30714-1-git-send-email-liulongfang@huawei.com> <1612519857-30714-4-git-send-email-liulongfang@huawei.com> <20210205114435.GA17031@gondor.apana.org.au> <70c0e041-9bcc-aa67-a0ad-a1a202f2e708@huawei.com> In-Reply-To: <70c0e041-9bcc-aa67-a0ad-a1a202f2e708@huawei.com> From: Ard Biesheuvel Date: Sun, 7 Feb 2021 09:02:45 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] crypto: hisilicon/sec - fixes shash test error To: liulongfang Cc: Herbert Xu , wangzhou1@hisilicon.com, Zaibo Xu , Linux Crypto Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sun, 7 Feb 2021 at 03:47, liulongfang wrote: > > On 2021/2/5 19:44, Herbert Xu write: > > On Fri, Feb 05, 2021 at 06:10:57PM +0800, Longfang Liu wrote: > >> If this configuration item is not turned on, > >> the allocation of crypto_tfm will fail when > >> the shash algorithm calculates the hash > >> through the software. > >> > >> Signed-off-by: Longfang Liu > >> --- > >> arch/arm64/configs/defconfig | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > >> index 8383016..7cfc9b6 100644 > >> --- a/arch/arm64/configs/defconfig > >> +++ b/arch/arm64/configs/defconfig > >> @@ -117,7 +117,7 @@ CONFIG_KVM=y > >> CONFIG_ARM64_CRYPTO=y > >> CONFIG_CRYPTO_SHA1_ARM64_CE=y > >> CONFIG_CRYPTO_SHA2_ARM64_CE=y > >> -CONFIG_CRYPTO_SHA512_ARM64_CE=m > >> +CONFIG_CRYPTO_SHA512_ARM64_CE=y > > > > If this is truly needed then it should be enabled through Kconfig. > > > > Cheers, > > > Hi Herbert, > The option select CRYPTO_SHA512 already exists in Kconfig. In that case, how can the shash TFM allocation fail? > Can I change it to this: select CRYPTO_SHA512 || CRYPTO_SHA512_ARM64_CE No, you cannot select expressions like that. Could you please explain the problem you are trying to solve?