Re: [PATCH RFC 1/2] crypto: ti: Add support for SHA224/256/384/512 in DTHE V2 driver

From: Herbert Xu
Date: Fri Apr 04 2025 - 21:36:34 EST


On Sat, Apr 05, 2025 at 09:33:05AM +0800, Herbert Xu wrote:
>
> This is not unique either. Even the software implementation has
> to deal with this.
>
> This needs to be dealt with in your update function. Simply buffer
> leftover data and only feed whole blocks to the hardware, until
> fina/finup is called.

But it's a bit silly to duplicate code dealing with this common
problem. Since I'm going through every driver for the export format,
I think I will change the calling convention so that non-whole blocks
are dealt with by the API.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt