summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-02-20 10:48:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-08 12:49:48 +0300
commitfe0111391b214eeffdf6b380341ab0a1b97e6279 (patch)
tree765b031e24f750422a95307e0e0f24ffaedb0bbb /include
parent289156b8842c231008f5e979cc94d7b3a9792da8 (diff)
downloadlinux-fe0111391b214eeffdf6b380341ab0a1b97e6279.tar.xz
crypto: x86/cast5-avx - fix ECB encryption when long sg follows short one
commit 8f461b1e02ed546fbd0f11611138da67fd85a30f upstream. With ecb-cast5-avx, if a 128+ byte scatterlist element followed a shorter one, then the algorithm accidentally encrypted/decrypted only 8 bytes instead of the expected 128 bytes. Fix it by setting the encryption/decryption 'fn' correctly. Fixes: c12ab20b162c ("crypto: cast5/avx - avoid using temporary stack buffers") Cc: <stable@vger.kernel.org> # v3.8+ Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions