summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2022-11-22 17:24:01 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-12-02 18:12:39 +0800
commit56861cbde1b9f3b34d300e6ba87f2c3de1a9c309 (patch)
tree186da91e8496dabf217ec3070e424c51adcfee20 /include/crypto
parentbd71e0dced921e00599052b445f9a9f7916a5452 (diff)
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: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/internal/kpp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crypto/internal/kpp.h b/include/crypto/internal/kpp.h
index 9cb0662ebe87..31ff3c1986ef 100644
--- a/include/crypto/internal/kpp.h
+++ b/include/crypto/internal/kpp.h
@@ -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;