summaryrefslogtreecommitdiffstats
path: root/include/crypto/internal
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2022-11-22 11:03:35 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2022-12-02 11:12:39 +0100
commit3e71e5b0efcc730216f4450b796df4fdd627ecd0 (patch)
tree6d6024e5172e1cf9e7373231fd59a40ef7023fbb /include/crypto/internal
parentcrypto: virtio - Use helper to set reqsize (diff)
downloadlinux-3e71e5b0efcc730216f4450b796df4fdd627ecd0.tar.xz
linux-3e71e5b0efcc730216f4450b796df4fdd627ecd0.zip
crypto: akcipher - Move reqsize into tfm
The value of reqsize cannot be determined in case of fallbacks. Therefore it must be stored in the tfm and not the alg object. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/internal')
-rw-r--r--include/crypto/internal/akcipher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/internal/akcipher.h b/include/crypto/internal/akcipher.h
index 8d3220c9ab77..1474a2d890fc 100644
--- a/include/crypto/internal/akcipher.h
+++ b/include/crypto/internal/akcipher.h
@@ -36,7 +36,7 @@ static inline void *akcipher_request_ctx(struct akcipher_request *req)
static inline void akcipher_set_reqsize(struct crypto_akcipher *akcipher,
unsigned int reqsize)
{
- crypto_akcipher_alg(akcipher)->reqsize = reqsize;
+ akcipher->reqsize = reqsize;
}
static inline void *akcipher_tfm_ctx(struct crypto_akcipher *tfm)