]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: marvell - Copy IVDIG before launching partial DMA ahash requests
authorRomain Perier <romain.perier@free-electrons.com>
Wed, 14 Dec 2016 14:15:07 +0000 (15:15 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Dec 2016 11:59:39 +0000 (19:59 +0800)
commite70ad49f7a55bf168d0ac46612a91f3113d5cb78
tree095109417f57fdbc6b2558e827ca8a5bb3f73128
parent5ae5d805553e14b8ba8c413487c392cbc4699761
crypto: marvell - Copy IVDIG before launching partial DMA ahash requests

Currently, inner IV/DIGEST data are only copied once into the hash
engines and not set explicitly before launching a request that is not a
first frag. This is an issue especially when multiple ahash reqs are
computed in parallel or chained with cipher request, as the state of the
request being computed is not updated into the hash engine. It leads to
non-deterministic corrupted digest results.

Fixes: commit da4b54ca7747 ("crypto: marvell - Move SRAM I/O operations to step functions")
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/cesa.h
drivers/crypto/marvell/hash.c
drivers/crypto/marvell/tdma.c