commit | 1ccb39eb5a9822543273c35f5114a9dc101e7315 | [log] [tgz] |
---|---|---|
author | Horia Geantă <horia.geanta@nxp.com> | Wed Jul 31 16:08:04 2019 +0300 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Aug 09 15:11:45 2019 +1000 |
tree | 4e10355aaadf59e04a606fd32e255cc91bd8d907 | |
parent | 1984aaeec372fbfb597883074253d290cbd543d4 [diff] |
crypto: caam - update IV only when crypto operation succeeds skcipher encryption might fail and in some cases, like (invalid) input length smaller then block size, updating the IV would lead to a useless IV copy in case hardware issued an error. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>