crypto: chelsio - Recalculate iv only if it is needed
authorAyush Sawal <ayush.sawal@chelsio.com>
Mon, 24 Feb 2020 03:42:32 +0000 (09:12 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Mar 2020 01:28:20 +0000 (12:28 +1100)
commitbed44d0c05d8efdda1ae98b1c7aa7b116abeadb2
tree953364de01ee82a50496516a75a1ef8b0acb0c64
parent1b44f93eb3e51f97d06a92eb39ab1ad031851f74
crypto: chelsio - Recalculate iv only if it is needed

Recalculate iv only if it is needed i.e. if the last req to hw
was partial for aes-xts.

Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c
drivers/crypto/chelsio/chcr_crypto.h