aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto/internal/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto/internal/hash.h')
-rw-r--r--include/crypto/internal/hash.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h
index 34eda233ee67..9d30316e9f10 100644
--- a/include/crypto/internal/hash.h
+++ b/include/crypto/internal/hash.h
@@ -69,6 +69,11 @@ int crypto_init_ahash_spawn(struct crypto_ahash_spawn *spawn,
69 struct hash_alg_common *alg, 69 struct hash_alg_common *alg,
70 struct crypto_instance *inst); 70 struct crypto_instance *inst);
71 71
72static inline void crypto_drop_ahash(struct crypto_ahash_spawn *spawn)
73{
74 crypto_drop_spawn(&spawn->base);
75}
76
72struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask); 77struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask);
73 78
74int crypto_register_shash(struct shash_alg *alg); 79int crypto_register_shash(struct shash_alg *alg);
@@ -81,6 +86,11 @@ int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn,
81 struct shash_alg *alg, 86 struct shash_alg *alg,
82 struct crypto_instance *inst); 87 struct crypto_instance *inst);
83 88
89static inline void crypto_drop_shash(struct crypto_shash_spawn *spawn)
90{
91 crypto_drop_spawn(&spawn->base);
92}
93
84struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask); 94struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask);
85 95
86int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc); 96int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc);