crypto: rockchip - update new iv to device in multiple operations
authorZhang Zhijie <zhangzj@rock-chips.com>
Wed, 13 Feb 2019 08:24:39 +0000 (16:24 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Feb 2019 04:47:26 +0000 (12:47 +0800)
commitc1c214adcb56d36433480c8fedf772498e7e539c
treed004bb086c251293f2c59ee96423307ff022c8f1
parent4359669a087633132203c52d67dd8c31e09e7b2e
crypto: rockchip - update new iv to device in multiple operations

For chain mode in cipher(eg. AES-CBC/DES-CBC), the iv is continuously
updated in the operation. The new iv value should be written to device
register by software.

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>
drivers/crypto/rockchip/rk3288_crypto.h
drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c