OSDN Git Service

crypto: atmel-{aes,tdes} - Update the IV only when the op succeeds
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 13 Dec 2019 09:54:56 +0000 (09:54 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Dec 2019 06:58:35 +0000 (14:58 +0800)
commit27f4adf724e16c0cb49dd015a089d8bdcb18353b
tree2a8ce71e7d7f9ea9cdf19de859979a8d6fa4ef61
parente9ce6aee1d4d0ae61bf9e1666d790394c4f4d1a8
crypto: atmel-{aes,tdes} - Update the IV only when the op succeeds

Do not update the IV in case of errors.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c
drivers/crypto/atmel-tdes.c