]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: cfb - fix decryption
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 19 Oct 2018 23:01:52 +0000 (02:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 16:45:59 +0000 (17:45 +0100)
commitfbfb5490006aafe55ec3c812205586488692c8a9
treef9587816cb2cd6a7cec71f74a4de9f93f8334a80
parent8e8af8a2519d334c928f165394ed8614ebd6628b
crypto: cfb - fix decryption

commit fa4600734b74f74d9169c3015946d4722f8bcf79 upstream.

crypto_cfb_decrypt_segment() incorrectly XOR'ed generated keystream with
IV, rather than with data stream, resulting in incorrect decryption.
Test vectors will be added in the next patch.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/cfb.c