]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: simd - correctly take reqsize of wrapped skcipher into account
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 8 Nov 2018 22:55:16 +0000 (23:55 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Nov 2018 09:35:43 +0000 (17:35 +0800)
commite498ad35751686b5beafcde2c25b7ffeefd361ec
tree305437fd79b83c0a873479af6e37d5db8d69c0cf
parentae9002cc3821955c37efc3486a080c5956dc2dba
crypto: simd - correctly take reqsize of wrapped skcipher into account

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>
crypto/simd.c