Commit 5b90a779 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: lib/sha256 - Add helpers for block-based shash



Add an internal sha256_finup helper and move the finalisation code
from __sha256_final into it.

Also add sha256_choose_blocks and CRYPTO_ARCH_HAVE_LIB_SHA256_SIMD
so that the Crypto API can use the SIMD block function unconditionally.
The Crypto API must not be used in hard IRQs and there is no reason
to have a fallback path for hardirqs.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7d2461c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment