diff options
author | 2017-07-17 15:16:21 -0500 | |
---|---|---|
committer | 2017-07-28 17:58:04 +0800 | |
commit | 333706b8ed81b64b6c4241e493791a81bc8e6d43 (patch) | |
tree | 3dc79512b38780f81baae0ef2e8e014e7e80ea66 /include/crypto | |
parent | crypto: ccp - Fix base RSA function for version 5 CCPs (diff) | |
download | linux-333706b8ed81b64b6c4241e493791a81bc8e6d43.tar.gz linux-333706b8ed81b64b6c4241e493791a81bc8e6d43.tar.bz2 linux-333706b8ed81b64b6c4241e493791a81bc8e6d43.zip |
crypto: Add akcipher_set_reqsize() function
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/internal/akcipher.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |