linux/drivers/crypto/marvell
Romain Perier 57cfda1ac7 crypto: marvell - Don't overwrite default creq->state during initialization
Currently, in mv_cesa_{md5,sha1,sha256}_init creq->state is initialized
before the call to mv_cesa_ahash_init. This is wrong because this
function fills creq with zero by using memset, so its 'state' that
contains the default DIGEST is overwritten. This commit fixes the issue
by initializing creq->state just after the call to mv_cesa_ahash_init.

Fixes: commit b0ef51067c ("crypto: marvell/cesa - initialize hash...")
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2016-08-09 18:47:31 +08:00
..
cesa.c crypto: marvell - Update transformation context for each dequeued req 2016-08-09 18:47:30 +08:00
cesa.h crypto: marvell - Add support for chaining crypto requests in TDMA mode 2016-06-23 18:29:51 +08:00
cipher.c crypto: marvell - Don't copy IV vectors from the _process op for ciphers 2016-07-29 18:30:17 +08:00
hash.c crypto: marvell - Don't overwrite default creq->state during initialization 2016-08-09 18:47:31 +08:00
Makefile crypto: marvell/cesa - add TDMA support 2015-06-19 22:18:03 +08:00
tdma.c crypto: marvell - be explicit about destination in mv_cesa_dma_add_op() 2016-08-09 18:47:29 +08:00