Messages in this thread | | | Date | Thu, 21 Apr 2022 17:50:57 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH 2/2] crypto: marvell: cesa: Add fallback for handling empty length case |
| |
On Wed, Apr 13, 2022 at 07:11:55PM +0000, Corentin Labbe wrote: > The driver does not handle case where cryptlen is zero and fail crypto selftests. > So let's add a fallback for this case.
Wouldn't it be easier to just handle this in the software? After all, a zero encryption/decryption is just a no-op, right?
Thanks, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |