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

From
Herbert Xu <herbert@gondor.apana.org.au>
Date
2020-06-12 03:28:49
Reply to
Giovanni Cabiddu, 2020-05-27
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 [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Thread (2 messages) 2 messages, 2 authors, last reply 2020-06-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help