linux/drivers/crypto/marvell
Romain Perier f34dad1721 crypto: marvell - Don't break chain for computable last ahash requests
Currently, the driver breaks chain for all kind of hash requests in order to
don't override intermediate states of partial ahash updates. However, some final
ahash requests can be directly processed by the engine, and so without
intermediate state. This is typically the case for most for the HMAC requests
processed via IPSec.

This commits adds a TDMA descriptor to copy context for these of requests
into the "op" dma pool, then it allow to chain these requests at the DMA level.
The 'complete' operation is also updated to retrieve the MAC digest from the
right location.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2016-10-21 11:03:40 +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 - Use an unique pool to copy results of requests 2016-10-21 11:03:40 +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 - Don't break chain for computable last ahash requests 2016-10-21 11:03:40 +08:00
Makefile crypto: marvell/cesa - add TDMA support 2015-06-19 22:18:03 +08:00
tdma.c crypto: marvell - Use an unique pool to copy results of requests 2016-10-21 11:03:40 +08:00