crypto: sa2ul - add sha1/sha256/sha512 support
authorKeerthy <j-keerthy@ti.com>
Mon, 13 Jul 2020 08:34:23 +0000 (11:34 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jul 2020 07:34:17 +0000 (17:34 +1000)
commit2dc53d0047458e28ed05b4548844ba78199857bf
tree70d00f463d3ec0ef9ab1fd85e64563f54319d904
parent7694b6ca649fead1a57046935711bc82dfc78cfb
crypto: sa2ul - add sha1/sha256/sha512 support

Add support for sha1/sha256/sha512 sa2ul based hardware authentication.
With the hash update mechanism, we always use software fallback
mechanism for now, as there is no way to fetch the partial hash state
from the HW accelerator. HW accelerator is only used when digest is
called for a data chunk of known size.

Signed-off-by: Keerthy <j-keerthy@ti.com>
[t-kristo@ti.com: various bug fixes, major cleanups and refactoring of code]
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sa2ul.c
drivers/crypto/sa2ul.h