crypto: omap-sham - fix software fallback handling
authorTero Kristo <t-kristo@ti.com>
Thu, 4 Aug 2016 10:28:39 +0000 (13:28 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Sep 2016 12:20:56 +0000 (20:20 +0800)
commit5a793bcadbe97df7823598b429c0af052e50df1c
treeac6f0219ae6ca838436f68ab78c0224eb57b9146
parent4e7813a0b2aebb210416a418595ceb91ba4e5a37
crypto: omap-sham - fix software fallback handling

If we have processed any data with the hardware accelerator (digcnt > 0),
we must complete the entire hash by using it. This is because the current
hash value can't be imported to the software fallback algorithm. Otherwise
we end up with wrong hash results.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c