[dpdk-stable] patch 'crypto/openssl: fix modexp' has been queued to LTS release 18.11.2

Kevin Traynor ktraynor at redhat.com
Tue Apr 16 16:36:22 CEST 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/24/19. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Thanks.

Kevin Traynor

---
>From 6e596662713ccc21c93491e6edfb4b399bdbc28a Mon Sep 17 00:00:00 2001
From: Arek Kusztal <arkadiuszx.kusztal at intel.com>
Date: Tue, 5 Feb 2019 10:13:19 +0100
Subject: [PATCH] crypto/openssl: fix modexp

[ upstream commit 27323f538597965add7ae1bef95abd7bf0a655a8 ]

Fixes bad reference of modinv struct in openssl pmd

Fixes: 3e9d6bd447fb ("crypto/openssl: add RSA and mod asym operations")

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal at intel.com>
Acked-by: Fiona Trahe <fiona.trahe at intel.com>
Acked-by: Shally Verma <shallyv at marvell.com>
Acked-by: Akhil Goyal <akhil.goyal at nxp.com>
---
 drivers/crypto/openssl/rte_openssl_pmd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_pmd.c
index ece512563..5b27bb919 100644
--- a/drivers/crypto/openssl/rte_openssl_pmd.c
+++ b/drivers/crypto/openssl/rte_openssl_pmd.c
@@ -1824,10 +1824,10 @@ process_openssl_modexp_op(struct rte_crypto_op *cop,
 	}
 
-	base = BN_bin2bn((const unsigned char *)op->modinv.base.data,
-			op->modinv.base.length, base);
+	base = BN_bin2bn((const unsigned char *)op->modex.base.data,
+			op->modex.base.length, base);
 
 	if (BN_mod_exp(res, base, sess->u.e.exp,
 				sess->u.e.mod, sess->u.e.ctx)) {
-		op->modinv.base.length = BN_bn2bin(res, op->modinv.base.data);
+		op->modex.base.length = BN_bn2bin(res, op->modex.base.data);
 		cop->status = RTE_CRYPTO_OP_STATUS_SUCCESS;
 	} else {
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-04-16 15:34:25.395434568 +0100
+++ 0004-crypto-openssl-fix-modexp.patch	2019-04-16 15:34:25.107181570 +0100
@@ -1,12 +1,13 @@
-From 27323f538597965add7ae1bef95abd7bf0a655a8 Mon Sep 17 00:00:00 2001
+From 6e596662713ccc21c93491e6edfb4b399bdbc28a Mon Sep 17 00:00:00 2001
 From: Arek Kusztal <arkadiuszx.kusztal at intel.com>
 Date: Tue, 5 Feb 2019 10:13:19 +0100
 Subject: [PATCH] crypto/openssl: fix modexp
 
+[ upstream commit 27323f538597965add7ae1bef95abd7bf0a655a8 ]
+
 Fixes bad reference of modinv struct in openssl pmd
 
 Fixes: 3e9d6bd447fb ("crypto/openssl: add RSA and mod asym operations")
-Cc: stable at dpdk.org
 
 Signed-off-by: Arek Kusztal <arkadiuszx.kusztal at intel.com>
 Acked-by: Fiona Trahe <fiona.trahe at intel.com>
@@ -17,10 +18,10 @@
  1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_pmd.c
-index 4ecc3c414..51cdd9b96 100644
+index ece512563..5b27bb919 100644
 --- a/drivers/crypto/openssl/rte_openssl_pmd.c
 +++ b/drivers/crypto/openssl/rte_openssl_pmd.c
-@@ -1818,10 +1818,10 @@ process_openssl_modexp_op(struct rte_crypto_op *cop,
+@@ -1824,10 +1824,10 @@ process_openssl_modexp_op(struct rte_crypto_op *cop,
  	}
  
 -	base = BN_bin2bn((const unsigned char *)op->modinv.base.data,


More information about the stable mailing list