crypto: cfb - fix decryption
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 19 Oct 2018 23:01:52 +0000 (02:01 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Nov 2018 09:40:59 +0000 (17:40 +0800)
commitfa4600734b74f74d9169c3015946d4722f8bcf79
tree486ab1004b79e24d6800c8a87b6f7ab8aa46276f
parent7172122be6a4712d699da4d261f92aa5ab3a78b8
crypto: cfb - fix decryption

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