Commit 56861cbd authored by Herbert Xu's avatar Herbert Xu

crypto: kpp - Add helper to set reqsize

The value of reqsize should only be changed through a helper.
To do so we need to first add a helper for this.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent bd71e0dc
...@@ -50,6 +50,12 @@ static inline void *kpp_request_ctx(struct kpp_request *req) ...@@ -50,6 +50,12 @@ static inline void *kpp_request_ctx(struct kpp_request *req)
return req->__ctx; return req->__ctx;
} }
static inline void kpp_set_reqsize(struct crypto_kpp *kpp,
unsigned int reqsize)
{
crypto_kpp_alg(kpp)->reqsize = reqsize;
}
static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm) static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm)
{ {
return tfm->base.__crt_ctx; return tfm->base.__crt_ctx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment