crypto: x86/sha256 - implement ->digest for sha256
authorEric Biggers <ebiggers@google.com>
Mon, 9 Oct 2023 08:19:00 +0000 (01:19 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Oct 2023 05:39:25 +0000 (13:39 +0800)
commitfdcac2ddc759752cb4886138d89a8c06bf5086a7
tree2ad453e6a093fc19f7865487e3a58f29a356225c
parent1efcbf0eff1022f6a44f8c04691caa5f90606bac
crypto: x86/sha256 - implement ->digest for sha256

Implement a ->digest function for sha256-ssse3, sha256-avx, sha256-avx2,
and sha256-ni.  This improves the performance of crypto_shash_digest()
with these algorithms by reducing the number of indirect calls that are
made.

For now, don't bother with this for sha224, since sha224 is rarely used.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/sha256_ssse3_glue.c