summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-04-20 18:05:41 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-05-12 18:48:01 +0800
commit170f772b25e8de3122f3554890d346653cdd3246 (patch)
tree133f636bcd5ca96449b58f1d4512d790688865bc
parent527e383c1fc9e00a6a917d8799724580974968b3 (diff)
downloadlinux-crypto-170f772b25e8de3122f3554890d346653cdd3246.tar.gz
linux-crypto-170f772b25e8de3122f3554890d346653cdd3246.zip
crypto: hash - Make crypto_ahash_alg helper available
Move the crypto_ahash_alg helper into include/crypto/internal so that drivers can use it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--crypto/ahash.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c
index 99867382..709ef094 100644
--- a/crypto/ahash.c
+++ b/crypto/ahash.c
@@ -31,12 +31,6 @@ struct ahash_request_priv {
void *ubuf[] CRYPTO_MINALIGN_ATTR;
};
-static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash)
-{
- return container_of(crypto_hash_alg_common(hash), struct ahash_alg,
- halg);
-}
-
static int hash_walk_next(struct crypto_hash_walk *walk)
{
unsigned int alignmask = walk->alignmask;