Ard Biesheuvel c587ba480e crypto: simd - correctly take reqsize of wrapped skcipher into account
[ Upstream commit 508a1c4df085a547187eed346f1bfe5e381797f1 ]

The simd wrapper's skcipher request context structure consists
of a single subrequest whose size is taken from the subordinate
skcipher. However, in simd_skcipher_init(), the reqsize that is
retrieved is not from the subordinate skcipher but from the
cryptd request structure, whose size is completely unrelated to
the actual wrapped skcipher.

Reported-by: Qian Cai <cai@gmx.us>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Qian Cai <cai@gmx.us>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-01 09:37:32 +01:00
..
2018-06-18 20:17:38 +05:30
2018-11-04 14:50:51 +01:00
2018-05-26 09:16:44 +02:00
2018-05-26 09:16:44 +02:00
2017-11-03 21:35:35 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-04-21 00:58:34 +08:00
2018-07-20 13:51:21 +08:00
2018-11-13 11:08:46 -08:00
2018-11-13 11:08:46 -08:00
2018-04-21 00:58:34 +08:00
2018-05-16 07:23:35 +02:00
2018-11-13 11:08:46 -08:00
2018-11-13 11:08:46 -08:00
2018-04-21 00:58:30 +08:00