summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-04-20 13:05:41 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-05-12 13:48:01 +0300
commit3908edf868c34ed42e1a0a4c68f142a76a707999 (patch)
treeca8edb8c0cd5c18d5fa27d7226aaf7db7b7199fa /crypto
parentc7535fb2ddf695fbb8b2c2b935307e33556082de (diff)
downloadlinux-3908edf868c34ed42e1a0a4c68f142a76a707999.tar.xz
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ahash.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c
index 99867382abaa..709ef0940799 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;