Commit 1725496f authored by Eric Biggers's avatar Eric Biggers Committed by William McVicker
Browse files

UPSTREAM: 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: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>

Bug: 330611177
(cherry picked from commit fdcac2dd)
Change-Id: Ibc74830d1f78165aeaafe25c79575f314d4fff4b
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 2414c5e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment