diff options
author | Ayush Sawal <ayush.sawal@chelsio.com> | 2020-02-24 06:42:32 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-03-06 04:28:20 +0300 |
commit | bed44d0c05d8efdda1ae98b1c7aa7b116abeadb2 (patch) | |
tree | 953364de01ee82a50496516a75a1ef8b0acb0c64 /drivers/crypto/chelsio/chcr_crypto.h | |
parent | 1b44f93eb3e51f97d06a92eb39ab1ad031851f74 (diff) | |
download | linux-bed44d0c05d8efdda1ae98b1c7aa7b116abeadb2.tar.xz |
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>
Diffstat (limited to 'drivers/crypto/chelsio/chcr_crypto.h')
-rw-r--r-- | drivers/crypto/chelsio/chcr_crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/chelsio/chcr_crypto.h b/drivers/crypto/chelsio/chcr_crypto.h index 9207d88c5538..dbb7e13bb409 100644 --- a/drivers/crypto/chelsio/chcr_crypto.h +++ b/drivers/crypto/chelsio/chcr_crypto.h @@ -291,6 +291,7 @@ struct chcr_skcipher_req_ctx { struct scatterlist *dstsg; unsigned int processed; unsigned int last_req_len; + unsigned int partial_req; struct scatterlist *srcsg; unsigned int src_ofst; unsigned int dst_ofst; |