[PATCH 1/4] crypto: ccm - Fix handling of zero plaintext when computing mac

2013-11-28 Thread Horia Geanta
There are cases when cryptlen can be zero in crypto_ccm_auth(): -encryptiom: input scatterlist length is zero (no plaintext) -decryption: input scatterlist contains only the mac plus the condition of having different source and destination buffers (or else scatterlist length = max(plaintext_len, ci

Re: [PATCH 1/4] crypto: ccm - Fix handling of zero plaintext when computing mac

2013-11-28 Thread Herbert Xu
On Thu, Nov 28, 2013 at 03:11:15PM +0200, Horia Geanta wrote: > There are cases when cryptlen can be zero in crypto_ccm_auth(): > -encryptiom: input scatterlist length is zero (no plaintext) > -decryption: input scatterlist contains only the mac > plus the condition of having different source and d