diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-11-09 01:55:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-01 11:42:53 +0300 |
commit | 66da887d8732b75b9dccc92b75d3972381fe62c7 (patch) | |
tree | cff181c17de501a89a11f628f930cf9a1ad1bbab /crypto/chacha20_generic.c | |
parent | 6e4fbdc7a308957c98d4599255a7a700ec92ca1c (diff) | |
download | linux-66da887d8732b75b9dccc92b75d3972381fe62c7.tar.xz |
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>
Diffstat (limited to 'crypto/chacha20_generic.c')
0 files changed, 0 insertions, 0 deletions