diff options
author | Eric Biggers <ebiggers@google.com> | 2018-02-20 08:48:12 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-02 17:03:25 +0100 |
commit | 8f461b1e02ed546fbd0f11611138da67fd85a30f (patch) | |
tree | f55ec18c55ee3f3d201fc801778778e0018d046f /crypto | |
parent | crypto: x86/twofish-avx - convert to skcipher interface (diff) | |
download | linux-8f461b1e02ed546fbd0f11611138da67fd85a30f.tar.xz linux-8f461b1e02ed546fbd0f11611138da67fd85a30f.zip |
crypto: x86/cast5-avx - fix ECB encryption when long sg follows short one
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>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions