From: Gary R Hook Date: Mon, 17 Jul 2017 20:16:21 +0000 (-0500) Subject: crypto: Add akcipher_set_reqsize() function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=333706b8ed81b64b6c4241e493791a81bc8e6d43;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: Add akcipher_set_reqsize() function Signed-off-by: Gary R Hook Signed-off-by: Herbert Xu --- diff --git a/include/crypto/internal/akcipher.h b/include/crypto/internal/akcipher.h index 479a0078f0f7..805686ba2be4 100644 --- a/include/crypto/internal/akcipher.h +++ b/include/crypto/internal/akcipher.h @@ -38,6 +38,12 @@ static inline void *akcipher_request_ctx(struct akcipher_request *req) return req->__ctx; } +static inline void akcipher_set_reqsize(struct crypto_akcipher *akcipher, + unsigned int reqsize) +{ + crypto_akcipher_alg(akcipher)->reqsize = reqsize; +} + static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm) { return tfm->base.__crt_ctx;