[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMj1kXF71nPwMVNM-xwo2UNXW6xq3G=QTCNahLNS7fCfhdSMsA@mail.gmail.com>
Date: Sun, 7 Feb 2021 09:02:45 +0100
From: Ard Biesheuvel <ardb@...nel.org>
To: liulongfang <liulongfang@...wei.com>
Cc: Herbert Xu <herbert@...dor.apana.org.au>, wangzhou1@...ilicon.com,
Zaibo Xu <xuzaibo@...wei.com>,
Linux Crypto Mailing List <linux-crypto@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/3] crypto: hisilicon/sec - fixes shash test error
On Sun, 7 Feb 2021 at 03:47, liulongfang <liulongfang@...wei.com> 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 <liulongfang@...wei.com>
> >> ---
> >> 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?
Powered by blists - more mailing lists