From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1E9EC76195 for ; Tue, 28 Mar 2023 03:59:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232696AbjC1D67 (ORCPT ); Mon, 27 Mar 2023 23:58:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231976AbjC1D6y (ORCPT ); Mon, 27 Mar 2023 23:58:54 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A0E1B5; Mon, 27 Mar 2023 20:58:53 -0700 (PDT) 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 1ph0Tf-009Oce-Ss; Tue, 28 Mar 2023 11:58:32 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 28 Mar 2023 11:58:31 +0800 Date: Tue, 28 Mar 2023 11:58:31 +0800 From: Herbert Xu To: Thomas BOURGOIN Cc: Linus Walleij , Lionel Debieve , Li kunyu , davem@davemloft.net, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, mcoquelin.stm32@gmail.com Subject: Re: [Linux-stm32] [v7 PATCH 8/8] crypto: stm32 - Save and restore between each request Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt