]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Apr 2019 14:15:04 +0000 (22:15 +0800)
commit81795a4eb015e238a7b2e079fb9229408f4e9235
tree048be3d11887f4c6d96e681a43bd9b664c96a271
parent4ca664c23164abab95acfcbc2ea5ab1dba92b13f
crypto: rockchip - update IV buffer to contain the next IV

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: 40b69dd9940e ("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>
drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c