remarkable-linux/drivers/crypto/inside-secure
Antoine Ténart 60c4081ec4 crypto: inside-secure - fix the sha state length in hmac_sha1_setkey
A check is performed on the ipad/opad in the safexcel_hmac_sha1_setkey
function, but the index used by the loop doing it is wrong. It is
currently the size of the state array while it should be the size of a
sha1 state. This patch fixes it.

Fixes: 1b44c5a60c ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-08-03 13:36:11 +08:00
..
Makefile
safexcel.c crypto: inside-secure - do not parse the dma mask from dt 2017-07-18 17:01:01 +08:00
safexcel.h crypto: inside-secure - increase the batch size 2017-06-20 11:21:47 +08:00
safexcel_cipher.c crypto: inside-secure - use one queue per hw ring 2017-06-20 11:21:45 +08:00
safexcel_hash.c crypto: inside-secure - fix the sha state length in hmac_sha1_setkey 2017-08-03 13:36:11 +08:00
safexcel_ring.c crypto: inside-secure - use the base_end pointer in ring rollback 2017-06-20 11:21:48 +08:00