diff options
Diffstat (limited to 'include/crypto/hash.h')
-rw-r--r-- | include/crypto/hash.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/hash.h b/include/crypto/hash.h index 3d69c93d50e8..6361892ea737 100644 --- a/include/crypto/hash.h +++ b/include/crypto/hash.h | |||
@@ -204,6 +204,7 @@ struct crypto_ahash { | |||
204 | unsigned int keylen); | 204 | unsigned int keylen); |
205 | 205 | ||
206 | unsigned int reqsize; | 206 | unsigned int reqsize; |
207 | bool has_setkey; | ||
207 | struct crypto_tfm base; | 208 | struct crypto_tfm base; |
208 | }; | 209 | }; |
209 | 210 | ||
@@ -375,6 +376,11 @@ static inline void *ahash_request_ctx(struct ahash_request *req) | |||
375 | int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, | 376 | int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, |
376 | unsigned int keylen); | 377 | unsigned int keylen); |
377 | 378 | ||
379 | static inline bool crypto_ahash_has_setkey(struct crypto_ahash *tfm) | ||
380 | { | ||
381 | return tfm->has_setkey; | ||
382 | } | ||
383 | |||
378 | /** | 384 | /** |
379 | * crypto_ahash_finup() - update and finalize message digest | 385 | * crypto_ahash_finup() - update and finalize message digest |
380 | * @req: reference to the ahash_request handle that holds all information | 386 | * @req: reference to the ahash_request handle that holds all information |