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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user