diff options
Diffstat (limited to 'include/crypto/hash.h')
-rw-r--r-- | include/crypto/hash.h | 3 |
1 files changed, 1 insertions, 2 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) |