linux/drivers/crypto/marvell
Romain Perier 8759fec4af 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 2786cee8e5 ("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>
2016-12-16 19:59:39 +08:00
..
cesa.c crypto: marvell - Use an unique pool to copy results of requests 2016-10-21 11:03:40 +08:00
cesa.h crypto: marvell - Copy IVDIG before launching partial DMA ahash requests 2016-12-16 19:59:39 +08:00
cipher.c crypto: marvell - Use an unique pool to copy results of requests 2016-10-21 11:03:40 +08:00
hash.c crypto: marvell - Copy IVDIG before launching partial DMA ahash requests 2016-12-16 19:59:39 +08:00
Makefile
tdma.c crypto: marvell - Copy IVDIG before launching partial DMA ahash requests 2016-12-16 19:59:39 +08:00