summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-05-02 08:31:09 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2025-05-05 13:20:45 +0300
commit3007e90572d0c5fd409c3d2fa8cedcbd5cb06d4b (patch)
tree78067850a488cb9758c1397820e961b1a6352e1c /include/crypto
parentee8a720e39ceb7495ab639c1eb6d4987fb6a52bf (diff)
downloadlinux-3007e90572d0c5fd409c3d2fa8cedcbd5cb06d4b.tar.xz
crypto: lib/sha256 - Use generic block helper
Use the BLOCK_HASH_UPDATE_BLOCKS helper instead of duplicating partial block handling. Also remove the unused lib/sha256 force-generic interface. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/internal/sha2.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/crypto/internal/sha2.h b/include/crypto/internal/sha2.h
index fff156f66edc..b9bccd3ff57f 100644
--- a/include/crypto/internal/sha2.h
+++ b/include/crypto/internal/sha2.h
@@ -10,13 +10,6 @@
#include <linux/types.h>
#include <linux/unaligned.h>
-void sha256_update_generic(struct sha256_state *sctx,
- const u8 *data, size_t len);
-void sha256_final_generic(struct sha256_state *sctx,
- u8 out[SHA256_DIGEST_SIZE]);
-void sha224_final_generic(struct sha256_state *sctx,
- u8 out[SHA224_DIGEST_SIZE]);
-
#if IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_SHA256)
bool sha256_is_arch_optimized(void);
#else