]> git.karo-electronics.de Git - linux-beck.git/commit
crypto: omap-sham - fix SW fallback HMAC handling for omap2/omap3
authorTero Kristo <t-kristo@ti.com>
Thu, 4 Aug 2016 10:28:40 +0000 (13:28 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Sep 2016 12:20:56 +0000 (20:20 +0800)
commitcb8d5c8346640f3622bc832fede4b514096f762e
tree7f62a6dc9daf45eb4c6b1117176765b067c44c5c
parent5a793bcadbe97df7823598b429c0af052e50df1c
crypto: omap-sham - fix SW fallback HMAC handling for omap2/omap3

If software fallback is used on older hardware accelerator setup (OMAP2/
OMAP3), the first block of data must be purged from the buffer. The
first block contains the pre-generated ipad value required by the HW,
but the software fallback algorithm generates its own, causing wrong
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