linux_dsm_epyc7002/drivers/crypto/inside-secure
Antoine Ténart 809778e02c crypto: inside-secure - fix hash when length is a multiple of a block
This patch fixes the hash support in the SafeXcel driver when the update
size is a multiple of a block size, and when a final call is made just
after with a size of 0. In such cases the driver should cache the last
block from the update to avoid handling 0 length data on the final call
(that's a hardware limitation).

Cc: stable@vger.kernel.org
Fixes: 1b44c5a60c ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2018-01-05 18:43:06 +11:00
..
Makefile crypto: inside-secure - add SafeXcel EIP197 crypto engine driver 2017-06-10 12:04:21 +08:00
safexcel_cipher.c crypto: inside-secure - EIP97 support 2017-12-22 20:03:36 +11:00
safexcel_hash.c crypto: inside-secure - fix hash when length is a multiple of a block 2018-01-05 18:43:06 +11:00
safexcel_ring.c crypto: inside-secure - use the base_end pointer in ring rollback 2017-06-20 11:21:48 +08:00
safexcel.c crypto: inside-secure - EIP97 support 2017-12-22 20:03:36 +11:00
safexcel.h crypto: inside-secure - EIP97 support 2017-12-22 20:03:36 +11:00