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
commitecf889b70b6c0a174965a902a381f967bfd06914 (patch)
tree40c0e2d1d5bf7ad9d6cfd6c4380c1ef4eb5aef42 /crypto/hash.h
parent9826d1d6ed5f86cb3d61610b3b1fe31e96a40418 (diff)
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 7e6c1a948692..de2ee2f4ae30 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);