[<prev] [next>] [day] [month] [year] [list]
Message-ID: <ZCJl55aGJO8CFO0j@gondor.apana.org.au>
Date: Tue, 28 Mar 2023 11:58:31 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Thomas BOURGOIN <thomas.bourgoin@...s.st.com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Lionel Debieve <lionel.debieve@...s.st.com>,
Li kunyu <kunyu@...china.com>, davem@...emloft.net,
linux-arm-kernel@...ts.infradead.org, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com, mcoquelin.stm32@...il.com
Subject: Re: [Linux-stm32] [v7 PATCH 8/8] crypto: stm32 - Save and restore
between each request
On Mon, Mar 27, 2023 at 10:33:10AM +0200, Thomas BOURGOIN wrote:
>
> I'm working on the patch for STM32MP13.
...
> The version of HASH implemented in the STM32MP13 provides new algorithms (SHA512, SHA3, ...).
> Because of that, the constant HASH_CSR_REGISTER_NUMBER increases (from 54 to 103).
> Hence, the size of stm32_hash_state is equal to 688 which is bigger than HASH_MAX_STATESIZE(=512)
> and the driver fails to register the algorithms.
>
> Is there any reasons why HASH_MAX_STATESIZE is set to 512 ?
> I only see it used to define static arrays, so maybe it could be set to 1024.
Thanks for reaching out. Please fix your emails so that they
are plain-text only, otherwise you won't be able to send any
patches to the list.
I have just sent out two patches to remove this limit.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists