mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-15 11:44:11 +00:00
crypto: kpp - Add helper to set reqsize
[ Upstream commit56861cbde1
] 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> Stable-dep-of:eb7713f5ca
("crypto: qat - unmap buffer before free for DH") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5dfc41da30
commit
dbc7c13b4c
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue