Skip to content

Commit

Permalink
crypto: kpp - Add helper to set reqsize
Browse files Browse the repository at this point in the history
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: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Dec 2, 2022
1 parent bd71e0d commit 56861cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/crypto/internal/kpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ static inline void *kpp_request_ctx(struct kpp_request *req)
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)
{
return tfm->base.__crt_ctx;
Expand Down

0 comments on commit 56861cb

Please sign in to comment.