Skip to content

Commit

Permalink
crypto: ahash - Add crypto_ahash_set_reqsize
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
herbertx committed Jul 14, 2009
1 parent 46309d8 commit fc00127
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/crypto/internal/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ static inline struct ahash_alg *crypto_ahash_alg(
return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash;
}

static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm,
unsigned int reqsize)
{
crypto_ahash_crt(tfm)->reqsize = reqsize;
}

static inline int ahash_enqueue_request(struct crypto_queue *queue,
struct ahash_request *request)
{
Expand Down

0 comments on commit fc00127

Please sign in to comment.