remove libdss from Makefile
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / crypto / simd.c
index 88203370a62f9b7528297443bc386e0d1ea2fd5b..894c6294410663ce26bf3eb09ac0f00a6cd92502 100644 (file)
@@ -126,8 +126,9 @@ static int simd_skcipher_init(struct crypto_skcipher *tfm)
 
        ctx->cryptd_tfm = cryptd_tfm;
 
-       reqsize = sizeof(struct skcipher_request);
-       reqsize += crypto_skcipher_reqsize(&cryptd_tfm->base);
+       reqsize = crypto_skcipher_reqsize(cryptd_skcipher_child(cryptd_tfm));
+       reqsize = max(reqsize, crypto_skcipher_reqsize(&cryptd_tfm->base));
+       reqsize += sizeof(struct skcipher_request);
 
        crypto_skcipher_set_reqsize(tfm, reqsize);