]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-sham - fix digcnt register handling with export/import
authorTero Kristo <t-kristo@ti.com>
Mon, 7 Sep 2020 07:56:24 +0000 (10:56 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Sep 2020 07:20:08 +0000 (17:20 +1000)
commitdcff57f547a5d0db6af4274198dd38f8a0a4e98d
tree68fef92c50609dc5733affd1cb93c9dadc42dc94
parent018d6e5d105e8d1371020a6aeea71914a67013b2
crypto: omap-sham - fix digcnt register handling with export/import

Running export/import for hashes in peculiar order (mostly done by
openssl) can mess up the internal book keeping of the OMAP SHA core.
Fix by forcibly writing the correct DIGCNT back to hardware. This issue
was noticed while transitioning to openssl 1.1 support.

Fixes: af58f329fb83 ("crypto: omap-sham - Add OMAP4/AM33XX SHAM Support")
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c