]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e71fad023c3c69a86d025540d0a4496ddf114b8
tree2a8ce71e7d7f9ea9cdf19de859979a8d6fa4ef61
parentb47b539356b003da7cd4169e3251d6f5fc2fd7b8
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