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

UPSTREAM: crypto: arm64/sha2-ce - implement ->digest for sha256



Implement a ->digest function for sha256-ce.  This improves the
performance of crypto_shash_digest() with this algorithm by reducing the
number of indirect calls that are made.  This only adds ~112 bytes of
code, mostly for the inlined init, as the finup function is tail-called.

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 1efcbf0e)
Change-Id: I6916d04d29a9ebee64e5b9ce1f5386864afcf7cb
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 1725496f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment