Re: [PATCH v2] crypto: AF_ALG - fix AEAD AIO handling of zero buffer

2016-12-01 Thread Herbert Xu
On Thu, Dec 01, 2016 at 08:22:37AM +0100, Stephan Mueller wrote: > Hi Herbert, > > I split out the bug fix patch from the AD/tag formatting patch as they most > likely will come after the next merge window. > > ---8<--- > > Handle the case when the caller provided a zero buffer to >

[PATCH v2] crypto: AF_ALG - fix AEAD AIO handling of zero buffer

2016-11-30 Thread Stephan Mueller
Hi Herbert, I split out the bug fix patch from the AD/tag formatting patch as they most likely will come after the next merge window. ---8<--- Handle the case when the caller provided a zero buffer to sendmsg/sendpage. Such scenario is legal for AEAD ciphers when no plaintext / ciphertext and