]> 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)
commit58ae4b33983bc32ae6ba898477169792bb0c2214
tree70d00f463d3ec0ef9ab1fd85e64563f54319d904
parent2cd1aadf80b7a0675cea9b8c9c9e56979618265b
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