Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3374135ybt; Tue, 30 Jun 2020 00:47:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLA38QXmj/MD3BxBPrwsF50dsaCfJZB5pHb8kyqdAT5nyu+IqjyXUqmqEH4TjTwIr/MPHy X-Received: by 2002:aa7:d457:: with SMTP id q23mr18635500edr.376.1593503278533; Tue, 30 Jun 2020 00:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593503278; cv=none; d=google.com; s=arc-20160816; b=upn4Csg1GUcMxzJ0osSrpbLehhga4abACKyeF4sJFvXjDP1utuajSqdeIfuA1kzHCB dCbtUBa+6GcMYO/05rl0RKpW1oa4fWSPa6UCfW4qQKI6tfaDNo00xIUQ3AhEVTFUUx3O ZOrlXeJvOTebob9lsdQKYoozrJIzuc9wRYoqBQ0kmib3TbTQBhLoy6+UOo1ac5efULk5 aEzsqkUUOMeG51FEzSMt3Kg0qySDU3QusiBTZsHc1vqabrMQJdozT8tiknUrRjTzrfFk /gKASt1dgkXEnsJu+1WckZYFe9DKgoHoPRfPton7ApOU22mXWkIzOaJ5DMzmqomNUnGF k1Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=n8gXc3g7B50/4A2Qtomn8sVCulRDX+BMZU1nw4LuR7o=; b=bb/FrKiDg3YF02YwVW6kdoPify77BQVbsL4ad9Kj7zDR72/rg3w1snqfxKYksh3NMl aAt6tWV9bA9TFcEquwwtDRNRq86hEVPN5msrcl4Ok3yByTxn1u3vWkjuzGhcjbRKF4gs ZYxOXlMkxsQUIiI2I34ucBStJxoJ5etzR1LnJzrwgl4PKQRKJfx9cwaZyC2EIrrjSmOM LF2I1Ra44duH9PEEoGch3bKfOq/nGN1MObCl5TBV4YzES5vdFtnF2vyp3IkcXkKf5N4o PilVrmZ7kUxG/lnbxIYBq4gOIplk92jmqi/l4b/MBmABFqddiMCoSFkSMOKZ38iythH0 l/Kg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si1316341ejo.514.2020.06.30.00.47.29; Tue, 30 Jun 2020 00:47:58 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731143AbgF3Hqy (ORCPT + 99 others); Tue, 30 Jun 2020 03:46:54 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:33274 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731137AbgF3Hqy (ORCPT ); Tue, 30 Jun 2020 03:46:54 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jqAyb-0002zn-HT; Tue, 30 Jun 2020 17:46:46 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 30 Jun 2020 17:46:45 +1000 Date: Tue, 30 Jun 2020 17:46:45 +1000 From: Herbert Xu To: Tero Kristo Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, j-keerthy@ti.com Subject: Re: [PATCHv4 3/7] crypto: sa2ul: add sha1/sha256/sha512 support Message-ID: <20200630074645.GA2449@gondor.apana.org.au> References: <20200615071452.25141-1-t-kristo@ti.com> <20200615071452.25141-4-t-kristo@ti.com> <20200626043155.GA2683@gondor.apana.org.au> <2a89ea86-3b9e-06b5-fa8e-9dc6e5ad9aeb@ti.com> <20200630044936.GA22565@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jun 30, 2020 at 10:20:06AM +0300, Tero Kristo wrote: > > Only up-to block size? This would limit the buffer to 64-128 bytes. The exported hash state is not supposed to be used to support hardware that does not support partial hashing. These states could potentially be placed on the stack so they must not be large. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt