From: Harsh Jain Date: Tue, 6 Mar 2018 05:07:51 +0000 (+0530) Subject: crypto: chelsio - Fix iv passed in fallback path for rfc3686 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7ffb911882a34a0d1f05ba64d78bf9b61d1e4179;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Herbert Xu --- 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; }