On Wed, May 27, 2020 at 11:18:52PM +0100, Giovanni Cabiddu wrote: > Return -EINVAL if the input digest size and/or cipher > length is zero or the cipher length is not multiple of a block. > These additional parameter checks prevent an undefined device behaviour. But a zero-length encryption is valid for AEAD. If this triggers an issue in the hardware, then you must fallback to software rather than rejecting it. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt