diff options
Diffstat (limited to 'include/crypto/internal/hash.h')
-rw-r--r-- | include/crypto/internal/hash.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h index 917ae57bad4a..32d3a8ed06de 100644 --- a/include/crypto/internal/hash.h +++ b/include/crypto/internal/hash.h | |||
@@ -40,6 +40,9 @@ int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err); | |||
40 | int crypto_hash_walk_first(struct ahash_request *req, | 40 | int crypto_hash_walk_first(struct ahash_request *req, |
41 | struct crypto_hash_walk *walk); | 41 | struct crypto_hash_walk *walk); |
42 | 42 | ||
43 | int crypto_register_shash(struct shash_alg *alg); | ||
44 | int crypto_unregister_shash(struct shash_alg *alg); | ||
45 | |||
43 | static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) | 46 | static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) |
44 | { | 47 | { |
45 | return crypto_tfm_ctx(&tfm->base); | 48 | return crypto_tfm_ctx(&tfm->base); |
@@ -74,5 +77,10 @@ static inline int ahash_tfm_in_queue(struct crypto_queue *queue, | |||
74 | return crypto_tfm_in_queue(queue, crypto_ahash_tfm(tfm)); | 77 | return crypto_tfm_in_queue(queue, crypto_ahash_tfm(tfm)); |
75 | } | 78 | } |
76 | 79 | ||
80 | static inline void *crypto_shash_ctx(struct crypto_shash *tfm) | ||
81 | { | ||
82 | return crypto_tfm_ctx(&tfm->base); | ||
83 | } | ||
84 | |||
77 | #endif /* _CRYPTO_INTERNAL_HASH_H */ | 85 | #endif /* _CRYPTO_INTERNAL_HASH_H */ |
78 | 86 | ||