summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHarsh Jain <harsh@chelsio.com>2018-03-06 10:37:51 +0530
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-16 23:35:46 +0800
commit7ffb911882a34a0d1f05ba64d78bf9b61d1e4179 (patch)
treee5d4d30e584f63df9dd9e37354d255cec897a3bc /drivers/crypto
parent5fb78dba1667d63ab5ebed19724477a2f1e08717 (diff)
downloadlinux-7ffb911882a34a0d1f05ba64d78bf9b61d1e4179.tar.bz2
crypto: chelsio - Fix iv passed in fallback path for rfc3686
We use ctr(aes) to fallback rfc3686(ctr) request. Send updated IV to fallback path. Signed-off-by: Harsh Jain <harsh@chelsio.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/chelsio/chcr_algo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c
index 002e0c298fb5..85070760333d 100644
--- a/drivers/crypto/chelsio/chcr_algo.c
+++ b/drivers/crypto/chelsio/chcr_algo.c
@@ -1292,7 +1292,7 @@ static int process_cipher(struct ablkcipher_request *req,
req->src,
req->dst,
req->nbytes,
- req->info,
+ reqctx->iv,
op_type);
goto error;
}