]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf8c2ac6ea7221519c1cad7a6e2a0ff02a8f415c
treeac6f0219ae6ca838436f68ab78c0224eb57b9146
parentc5415c28225ba735a578667b46b13e64cd1d8923
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