summaryrefslogtreecommitdiff
path: root/include/crypto/internal/akcipher.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2022-11-22 18:03:35 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-12-02 18:12:39 +0800
commit3e71e5b0efcc730216f4450b796df4fdd627ecd0 (patch)
tree6d6024e5172e1cf9e7373231fd59a40ef7023fbb /include/crypto/internal/akcipher.h
parent93c446cd36a410b31519af7a2dd32e899cc03d06 (diff)
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/akcipher.h')
-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)