Re: [PATCH] crypto: qat - fix parameter check in aead encryption

2020-06-11 Thread Herbert Xu
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 val

[PATCH] crypto: qat - fix parameter check in aead encryption

2020-05-27 Thread Giovanni Cabiddu
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. Signed-off-by: Giovanni Cabiddu --- drivers/crypto/qat/qat_common/qat_algs.c | 15 ++- 1 file