Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: c12ab20 ("crypto: cast5/avx - avoid using temporary stack buffers") Cc: <[email protected]> # v3.8+ Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information