crypto: rockchip - update IV buffer to contain the next IV
authorZhang Zhijie <zhangzj@rock-chips.com>
Fri, 12 Apr 2019 09:16:33 +0000 (17:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2019 05:37:37 +0000 (07:37 +0200)
commitb7d2adfd0512a10757d216f60ecee50a1aa15b91
treea421a2cee01fa24ccb45eba17ffd7d36b497f3bc
parent9a61ab6898671b205840f837a4ea840fb45da6ab
crypto: rockchip - update IV buffer to contain the next IV

commit f0cfd57b43fec65761ca61d3892b983a71515f23 upstream.

The Kernel Crypto API request output the next IV data to
IV buffer for CBC implementation. So the last block data of
ciphertext should be copid into assigned IV buffer.

Reported-by: Eric Biggers <ebiggers@google.com>
Fixes: 433cd2c617bf ("crypto: rockchip - add crypto driver for rk3288")
Cc: <stable@vger.kernel.org> # v4.5+
Signed-off-by: Zhang Zhijie <zhangzj@rock-chips.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c