crypto: inside-secure - fix the extra cache computation
authorAntoine Tenart <antoine.tenart@bootlin.com>
Tue, 13 Feb 2018 08:26:52 +0000 (09:26 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:24 +0000 (22:16 +0800)
commitc1a8fa6e240ed4b99778d48ab790743565cb61c8
tree9f0ff0064a78d1a30f3e8047cdafbf2af3277ba5
parente1d24c0bb76648cdf789b168defb6e31adb0b1b1
crypto: inside-secure - fix the extra cache computation

This patch fixes the extra cache computation when the queued data is a
multiple of a block size. This fixes the hash support in some cases.

Fixes: 809778e02cd4 ("crypto: inside-secure - fix hash when length is a multiple of a block")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_hash.c