commit | 763069ba49d3fa342fe35487d5de10fcf1589381 | [log] [tgz] |
---|---|---|
author | Horia Geantă <horia.geanta@nxp.com> | Tue Jan 22 16:47:01 2019 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Feb 01 14:42:03 2019 +0800 |
tree | 7cf6bdd30cc6cc561ce418cfd6411e3aadc65bcb | |
parent | 87870cfb4b5a93c70e2dc32d0349af0625bd5546 [diff] |
crypto: caam - handle zero-length AEAD output Recent AEAD changes in testmgr framework introduced by commit a0d608ee5ebf ("crypto: testmgr - unify the AEAD encryption and decryption test vectors") uncovered an error in the CAAM drivers, since they don't correctly handle the case when AEAD output length is zero. Add checks to avoid feeding zero-length req->dst to DMA API. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>