]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite71ddce0e6ea25e38eaa767da1f2d6e1833cacc8
tree70d00f463d3ec0ef9ab1fd85e64563f54319d904
parentf772a2643112a04a25364ba8675f99083cd2ead0
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