aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto/mcryptd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto/mcryptd.h')
-rw-r--r--include/crypto/mcryptd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/crypto/mcryptd.h b/include/crypto/mcryptd.h
index c23ee1f7ee80..4a53c0d38cd2 100644
--- a/include/crypto/mcryptd.h
+++ b/include/crypto/mcryptd.h
@@ -39,7 +39,7 @@ struct mcryptd_instance_ctx {
39}; 39};
40 40
41struct mcryptd_hash_ctx { 41struct mcryptd_hash_ctx {
42 struct crypto_shash *child; 42 struct crypto_ahash *child;
43 struct mcryptd_alg_state *alg_state; 43 struct mcryptd_alg_state *alg_state;
44}; 44};
45 45
@@ -59,13 +59,13 @@ struct mcryptd_hash_request_ctx {
59 struct crypto_hash_walk walk; 59 struct crypto_hash_walk walk;
60 u8 *out; 60 u8 *out;
61 int flag; 61 int flag;
62 struct shash_desc desc; 62 struct ahash_request areq;
63}; 63};
64 64
65struct mcryptd_ahash *mcryptd_alloc_ahash(const char *alg_name, 65struct mcryptd_ahash *mcryptd_alloc_ahash(const char *alg_name,
66 u32 type, u32 mask); 66 u32 type, u32 mask);
67struct crypto_shash *mcryptd_ahash_child(struct mcryptd_ahash *tfm); 67struct crypto_ahash *mcryptd_ahash_child(struct mcryptd_ahash *tfm);
68struct shash_desc *mcryptd_shash_desc(struct ahash_request *req); 68struct ahash_request *mcryptd_ahash_desc(struct ahash_request *req);
69void mcryptd_free_ahash(struct mcryptd_ahash *tfm); 69void mcryptd_free_ahash(struct mcryptd_ahash *tfm);
70void mcryptd_flusher(struct work_struct *work); 70void mcryptd_flusher(struct work_struct *work);
71 71