OSDN Git Service

crypto: chelsio - Fix iv passed in fallback path for rfc3686
authorHarsh Jain <harsh@chelsio.com>
Tue, 6 Mar 2018 05:07:51 +0000 (10:37 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Mar 2018 15:35:46 +0000 (23:35 +0800)
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>
drivers/crypto/chelsio/chcr_algo.c

index 002e0c2..8507076 100644 (file)
@@ -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;
        }