diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-12 11:05:48 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-14 00:58:11 -0400 |
commit | fc00127fb67b2a7d2b66f0f4096a5367b581f045 (patch) | |
tree | e12e29519213eb16c3f9f3d800a2af9ae7c05b28 | |
parent | 46309d8938122dff2fe59bf163307989cd22ea4a (diff) |
crypto: ahash - Add crypto_ahash_set_reqsize
This patch adds the helper crypto_ahash_set_reqsize so that
implementations do not directly access the crypto_ahash structure.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | include/crypto/internal/hash.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h index 6e283495374e..5e45818f3351 100644 --- a/include/crypto/internal/hash.h +++ b/include/crypto/internal/hash.h | |||
@@ -77,6 +77,12 @@ static inline struct ahash_alg *crypto_ahash_alg( | |||
77 | return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash; | 77 | return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash; |
78 | } | 78 | } |
79 | 79 | ||
80 | static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, | ||
81 | unsigned int reqsize) | ||
82 | { | ||
83 | crypto_ahash_crt(tfm)->reqsize = reqsize; | ||
84 | } | ||
85 | |||
80 | static inline int ahash_enqueue_request(struct crypto_queue *queue, | 86 | static inline int ahash_enqueue_request(struct crypto_queue *queue, |
81 | struct ahash_request *request) | 87 | struct ahash_request *request) |
82 | { | 88 | { |