[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZheTs8kfpSPOtN/1@gondor.apana.org.au>
Date: Thu, 11 Apr 2024 15:39:31 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Alexey Romanov <avromanov@...utedevices.com>
Cc: "neil.armstrong@...aro.org" <neil.armstrong@...aro.org>,
"clabbe@...libre.com" <clabbe@...libre.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"krzysztof.kozlowski+dt@...aro.org" <krzysztof.kozlowski+dt@...aro.org>,
"conor+dt@...nel.org" <conor+dt@...nel.org>,
"khilman@...libre.com" <khilman@...libre.com>,
"jbrunet@...libre.com" <jbrunet@...libre.com>,
"martin.blumenstingl@...glemail.com" <martin.blumenstingl@...glemail.com>,
"vadim.fedorenko@...ux.dev" <vadim.fedorenko@...ux.dev>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"linux-amlogic@...ts.infradead.org" <linux-amlogic@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org" <linux-arm-kernel@...ts.infradead.org>,
kernel <kernel@...rdevices.ru>
Subject: Re: [PATCH v6 11/23] drivers: crypto: meson: introduce hasher
On Wed, Apr 10, 2024 at 10:39:14AM +0000, Alexey Romanov wrote:
> Hello Herbert,
>
> On Fri, Apr 05, 2024 at 02:56:30PM +0800, Herbert Xu wrote:
> > On Tue, Mar 26, 2024 at 06:32:07PM +0300, Alexey Romanov wrote:
> > > Introduce support for SHA1/SHA224/SHA256 hash algos.
> > > Tested via tcrypt and custom tests.
> > >
> > > Signed-off-by: Alexey Romanov <avromanov@...utedevices.com>
> > > ---
> > > drivers/crypto/amlogic/Makefile | 2 +-
> > > drivers/crypto/amlogic/amlogic-gxl-core.c | 25 +-
> > > drivers/crypto/amlogic/amlogic-gxl-hasher.c | 460 ++++++++++++++++++++
> > > drivers/crypto/amlogic/amlogic-gxl.h | 51 +++
> > > 4 files changed, 536 insertions(+), 2 deletions(-)
> > > create mode 100644 drivers/crypto/amlogic/amlogic-gxl-hasher.c
> >
> > Where are the import/export functions?
>
> Sorry, I miss understand you. What do you mean by "import/epxort
> functions"?
The crypto hash API supports partial hashing, which means that
you need to be able to hash part of the data, save the state,
and then resume it later.
If your hardware only supports full hashing then you will need
to add a software fallback.
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