Browse Source

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>
Harsh Jain 7 years ago
parent
commit
7ffb911882
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/crypto/chelsio/chcr_algo.c

+ 1 - 1
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;
 	}