Patchwork [v2,4/5] crypto:chelsio: Fix iv passed in fallback path for rfc3686

login
register
mail settings
Submitter Harsh Jain
Date March 6, 2018, 5:07 a.m.
Message ID <20a3d5b02b3e3fb52300474d20a89240c6eee536.1520312270.git.harsh@chelsio.com>
Download mbox | patch
Permalink /patch/10260751/
State Accepted
Delegated to: Herbert Xu
Headers show

Comments

Harsh Jain - March 6, 2018, 5:07 a.m.
We use ctr(aes) to fallback rfc3686(ctr) request. Send updated IV to fallback path.

Signed-off-by: Harsh Jain <harsh@chelsio.com>
---
 drivers/crypto/chelsio/chcr_algo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c
index 002e0c2..8507076 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;
 	}