crypto: lib/sha256 - Move partial block handling out
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2025 04:56:05 +0000 (12:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 May 2025 05:32:01 +0000 (13:32 +0800)
commit74a43a2cf5e8a3eeab3b55a2e64b33281f5ac554
treef547dd09feed355e483558b6f8e8c4c01e3d9266
parentfba4aafaba8a6ca2bb42e854c37ff9a685ddfd71
crypto: lib/sha256 - Move partial block handling out

Extract the common partial block handling into a helper macro
that can be reused by other library code.

Also delete the unused sha256_base_do_finalize function.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/internal/blockhash.h [new file with mode: 0644]
include/crypto/sha2.h
include/crypto/sha256_base.h