Merge tag 'v6.10-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[linux-block.git] / crypto / hash.h
index 93f6ba0df263e51e8b4c35927c2873cdb565c138..cf9aee07f77d4985929df7189a1dff2b9eb73fc3 100644 (file)
@@ -8,39 +8,9 @@
 #define _LOCAL_CRYPTO_HASH_H
 
 #include <crypto/internal/hash.h>
-#include <linux/cryptouser.h>
 
 #include "internal.h"
 
-static inline struct crypto_istat_hash *hash_get_stat(
-       struct hash_alg_common *alg)
-{
-#ifdef CONFIG_CRYPTO_STATS
-       return &alg->stat;
-#else
-       return NULL;
-#endif
-}
-
-static inline int crypto_hash_report_stat(struct sk_buff *skb,
-                                         struct crypto_alg *alg,
-                                         const char *type)
-{
-       struct hash_alg_common *halg = __crypto_hash_alg_common(alg);
-       struct crypto_istat_hash *istat = hash_get_stat(halg);
-       struct crypto_stat_hash rhash;
-
-       memset(&rhash, 0, sizeof(rhash));
-
-       strscpy(rhash.type, type, sizeof(rhash.type));
-
-       rhash.stat_hash_cnt = atomic64_read(&istat->hash_cnt);
-       rhash.stat_hash_tlen = atomic64_read(&istat->hash_tlen);
-       rhash.stat_err_cnt = atomic64_read(&istat->err_cnt);
-
-       return nla_put(skb, CRYPTOCFGA_STAT_HASH, sizeof(rhash), &rhash);
-}
-
 extern const struct crypto_type crypto_shash_type;
 
 int hash_prepare_alg(struct hash_alg_common *alg);