diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/hash.h | 3 | ||||
-rw-r--r-- | include/crypto/internal/hash.h | 6 | ||||
-rw-r--r-- | include/linux/crypto.h | 16 |
3 files changed, 1 insertions, 24 deletions
diff --git a/include/crypto/hash.h b/include/crypto/hash.h index 262861d8f0cb..45c2bddfdf32 100644 --- a/include/crypto/hash.h +++ b/include/crypto/hash.h | |||
@@ -89,7 +89,6 @@ struct crypto_ahash { | |||
89 | int (*setkey)(struct crypto_ahash *tfm, const u8 *key, | 89 | int (*setkey)(struct crypto_ahash *tfm, const u8 *key, |
90 | unsigned int keylen); | 90 | unsigned int keylen); |
91 | 91 | ||
92 | unsigned int digestsize; | ||
93 | unsigned int reqsize; | 92 | unsigned int reqsize; |
94 | struct crypto_tfm base; | 93 | struct crypto_tfm base; |
95 | }; | 94 | }; |
@@ -137,7 +136,7 @@ static inline struct hash_alg_common *crypto_hash_alg_common( | |||
137 | 136 | ||
138 | static inline unsigned int crypto_ahash_digestsize(struct crypto_ahash *tfm) | 137 | static inline unsigned int crypto_ahash_digestsize(struct crypto_ahash *tfm) |
139 | { | 138 | { |
140 | return tfm->digestsize; | 139 | return crypto_hash_alg_common(tfm)->digestsize; |
141 | } | 140 | } |
142 | 141 | ||
143 | static inline unsigned int crypto_ahash_statesize(struct crypto_ahash *tfm) | 142 | static inline unsigned int crypto_ahash_statesize(struct crypto_ahash *tfm) |
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h index e3a82514d61e..179dd8fdfa14 100644 --- a/include/crypto/internal/hash.h +++ b/include/crypto/internal/hash.h | |||
@@ -109,12 +109,6 @@ static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg) | |||
109 | halg); | 109 | halg); |
110 | } | 110 | } |
111 | 111 | ||
112 | static inline struct old_ahash_alg *crypto_old_ahash_alg( | ||
113 | struct crypto_ahash *tfm) | ||
114 | { | ||
115 | return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash; | ||
116 | } | ||
117 | |||
118 | static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, | 112 | static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, |
119 | unsigned int reqsize) | 113 | unsigned int reqsize) |
120 | { | 114 | { |
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 9e7e9b62a3dc..fd929889e8dc 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -115,12 +115,10 @@ struct crypto_async_request; | |||
115 | struct crypto_aead; | 115 | struct crypto_aead; |
116 | struct crypto_blkcipher; | 116 | struct crypto_blkcipher; |
117 | struct crypto_hash; | 117 | struct crypto_hash; |
118 | struct crypto_ahash; | ||
119 | struct crypto_rng; | 118 | struct crypto_rng; |
120 | struct crypto_tfm; | 119 | struct crypto_tfm; |
121 | struct crypto_type; | 120 | struct crypto_type; |
122 | struct aead_givcrypt_request; | 121 | struct aead_givcrypt_request; |
123 | struct ahash_request; | ||
124 | struct skcipher_givcrypt_request; | 122 | struct skcipher_givcrypt_request; |
125 | 123 | ||
126 | typedef void (*crypto_completion_t)(struct crypto_async_request *req, int err); | 124 | typedef void (*crypto_completion_t)(struct crypto_async_request *req, int err); |
@@ -211,18 +209,6 @@ struct ablkcipher_alg { | |||
211 | unsigned int ivsize; | 209 | unsigned int ivsize; |
212 | }; | 210 | }; |
213 | 211 | ||
214 | struct old_ahash_alg { | ||
215 | int (*init)(struct ahash_request *req); | ||
216 | int (*reinit)(struct ahash_request *req); | ||
217 | int (*update)(struct ahash_request *req); | ||
218 | int (*final)(struct ahash_request *req); | ||
219 | int (*digest)(struct ahash_request *req); | ||
220 | int (*setkey)(struct crypto_ahash *tfm, const u8 *key, | ||
221 | unsigned int keylen); | ||
222 | |||
223 | unsigned int digestsize; | ||
224 | }; | ||
225 | |||
226 | struct aead_alg { | 212 | struct aead_alg { |
227 | int (*setkey)(struct crypto_aead *tfm, const u8 *key, | 213 | int (*setkey)(struct crypto_aead *tfm, const u8 *key, |
228 | unsigned int keylen); | 214 | unsigned int keylen); |
@@ -309,7 +295,6 @@ struct rng_alg { | |||
309 | #define cra_cipher cra_u.cipher | 295 | #define cra_cipher cra_u.cipher |
310 | #define cra_digest cra_u.digest | 296 | #define cra_digest cra_u.digest |
311 | #define cra_hash cra_u.hash | 297 | #define cra_hash cra_u.hash |
312 | #define cra_ahash cra_u.ahash | ||
313 | #define cra_compress cra_u.compress | 298 | #define cra_compress cra_u.compress |
314 | #define cra_rng cra_u.rng | 299 | #define cra_rng cra_u.rng |
315 | 300 | ||
@@ -337,7 +322,6 @@ struct crypto_alg { | |||
337 | struct cipher_alg cipher; | 322 | struct cipher_alg cipher; |
338 | struct digest_alg digest; | 323 | struct digest_alg digest; |
339 | struct hash_alg hash; | 324 | struct hash_alg hash; |
340 | struct old_ahash_alg ahash; | ||
341 | struct compress_alg compress; | 325 | struct compress_alg compress; |
342 | struct rng_alg rng; | 326 | struct rng_alg rng; |
343 | } cra_u; | 327 | } cra_u; |