OSDN Git Service

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)
commit3faf757bad75f3fc1b2736f0431e295a073a7423
tree68fef92c50609dc5733affd1cb93c9dadc42dc94
parent133c3d434d91d3d126c07c47420a21e40ed411e1
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: 0d373d603202 ("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