Skip to content
Snippets Groups Projects
Commit fc00127f authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 46309d89
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment