projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd71e0d
)
crypto: kpp - Add helper to set reqsize
author
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 22 Nov 2022 09:24:01 +0000
(17:24 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 2 Dec 2022 10:12:39 +0000
(18:12 +0800)
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>
include/crypto/internal/kpp.h
patch
|
blob
|
history
diff --git
a/include/crypto/internal/kpp.h
b/include/crypto/internal/kpp.h
index 9cb0662ebe871a5d74369c54069db94d269f1b4f..31ff3c1986ef0f685ba92e299a827c967b6b9127 100644
(file)
--- 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;