diff options
Diffstat (limited to 'include/crypto/internal/hash.h')
-rw-r--r-- | include/crypto/internal/hash.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h index 5e45818f3351..08bdffafefad 100644 --- a/include/crypto/internal/hash.h +++ b/include/crypto/internal/hash.h | |||
@@ -51,6 +51,9 @@ int crypto_hash_walk_first_compat(struct hash_desc *hdesc, | |||
51 | struct crypto_hash_walk *walk, | 51 | struct crypto_hash_walk *walk, |
52 | struct scatterlist *sg, unsigned int len); | 52 | struct scatterlist *sg, unsigned int len); |
53 | 53 | ||
54 | int crypto_register_ahash(struct ahash_alg *alg); | ||
55 | int crypto_unregister_ahash(struct ahash_alg *alg); | ||
56 | |||
54 | int crypto_register_shash(struct shash_alg *alg); | 57 | int crypto_register_shash(struct shash_alg *alg); |
55 | int crypto_unregister_shash(struct shash_alg *alg); | 58 | int crypto_unregister_shash(struct shash_alg *alg); |
56 | int shash_register_instance(struct crypto_template *tmpl, | 59 | int shash_register_instance(struct crypto_template *tmpl, |
@@ -66,12 +69,14 @@ struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask); | |||
66 | int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc); | 69 | int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc); |
67 | int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc); | 70 | int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc); |
68 | 71 | ||
72 | int crypto_init_shash_ops_async(struct crypto_tfm *tfm); | ||
73 | |||
69 | static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) | 74 | static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) |
70 | { | 75 | { |
71 | return crypto_tfm_ctx(&tfm->base); | 76 | return crypto_tfm_ctx(crypto_ahash_tfm(tfm)); |
72 | } | 77 | } |
73 | 78 | ||
74 | static inline struct ahash_alg *crypto_ahash_alg( | 79 | static inline struct old_ahash_alg *crypto_old_ahash_alg( |
75 | struct crypto_ahash *tfm) | 80 | struct crypto_ahash *tfm) |
76 | { | 81 | { |
77 | return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash; | 82 | return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash; |
@@ -80,7 +85,7 @@ static inline struct ahash_alg *crypto_ahash_alg( | |||
80 | static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, | 85 | static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, |
81 | unsigned int reqsize) | 86 | unsigned int reqsize) |
82 | { | 87 | { |
83 | crypto_ahash_crt(tfm)->reqsize = reqsize; | 88 | tfm->reqsize = reqsize; |
84 | } | 89 | } |
85 | 90 | ||
86 | static inline int ahash_enqueue_request(struct crypto_queue *queue, | 91 | static inline int ahash_enqueue_request(struct crypto_queue *queue, |