summaryrefslogtreecommitdiff
path: root/crypto/hash.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2023-10-22 01:10:58 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-27 18:04:29 +0800
commit66b3c618ce304706ee3dc571c0b27f902dae8e8c (patch)
tree51080eb244a4199ee0d000038b9d6cdf55ddd3d1 /crypto/hash.h
parent348850ab07e42bd2da1a354c38aba1527d757fe7 (diff)
downloadlinux-crypto-66b3c618ce304706ee3dc571c0b27f902dae8e8c.tar.gz
linux-crypto-66b3c618ce304706ee3dc571c0b27f902dae8e8c.zip
crypto: hash - move "ahash wrapping shash" functions to ahash.c
The functions that are involved in implementing the ahash API on top of an shash algorithm belong better in ahash.c, not in shash.c where they currently are. Move them. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/hash.h')
-rw-r--r--crypto/hash.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/hash.h b/crypto/hash.h
index 7e6c1a94..de2ee2f4 100644
--- a/crypto/hash.h
+++ b/crypto/hash.h
@@ -31,9 +31,7 @@ static inline int crypto_hash_report_stat(struct sk_buff *skb,
return nla_put(skb, CRYPTOCFGA_STAT_HASH, sizeof(rhash), &rhash);
}
-int crypto_init_shash_ops_async(struct crypto_tfm *tfm);
-struct crypto_ahash *crypto_clone_shash_ops_async(struct crypto_ahash *nhash,
- struct crypto_ahash *hash);
+extern const struct crypto_type crypto_shash_type;
int hash_prepare_alg(struct hash_alg_common *alg);