patch 'crypto/openssl: include private exponent in RSA session' has been queued to stable release 23.11.5
Xueming Li
xuemingl at nvidia.com
Wed Jul 30 09:10:23 CEST 2025
Hi,
FYI, your patch has been queued to stable release 23.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/10/25. 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.
Queued patches are on a temporary branch at:
https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging
This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=0659ada6baf6340011f666e70b4331bf0830b8a4
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From 0659ada6baf6340011f666e70b4331bf0830b8a4 Mon Sep 17 00:00:00 2001
From: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
Date: Fri, 20 Jun 2025 13:49:16 +0530
Subject: [PATCH] crypto/openssl: include private exponent in RSA session
Cc: Xueming Li <xuemingl at nvidia.com>
[ upstream commit 9020477270c5dc93e1a347b90d5248b10e8cc4e3 ]
If private exponent is available, it should be included within
RSA session as per RFC 8017 (A.1.2). OpenSSL 1.1.1 implementation
rely on this private exponent, to implicitly reject invalid cipher.
Hence, check if it is available for session and include it.
Fixes: 3e9d6bd447fb ("crypto/openssl: add RSA and mod asym operations")
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
---
drivers/crypto/openssl/rte_openssl_pmd_ops.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/openssl/rte_openssl_pmd_ops.c
index b7b612fc57..bb260c7c25 100644
--- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c
+++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c
@@ -995,7 +995,7 @@ static int openssl_set_asym_session_parameters(
if (rsa == NULL)
goto err_rsa;
- if (xform->rsa.key_type == RTE_RSA_KEY_TYPE_EXP) {
+ if (xform->rsa.d.length > 0) {
d = BN_bin2bn(
(const unsigned char *)xform->rsa.d.data,
xform->rsa.d.length,
@@ -1004,7 +1004,9 @@ static int openssl_set_asym_session_parameters(
RSA_free(rsa);
goto err_rsa;
}
- } else {
+ }
+
+ if (xform->rsa.key_type == RTE_RSA_KEY_TYPE_QT) {
p = BN_bin2bn((const unsigned char *)
xform->rsa.qt.p.data,
xform->rsa.qt.p.length,
--
2.34.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-07-30 15:02:13.187966747 +0800
+++ 0012-crypto-openssl-include-private-exponent-in-RSA-sessi.patch 2025-07-30 15:02:12.789830816 +0800
@@ -1 +1 @@
-From 9020477270c5dc93e1a347b90d5248b10e8cc4e3 Mon Sep 17 00:00:00 2001
+From 0659ada6baf6340011f666e70b4331bf0830b8a4 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 9020477270c5dc93e1a347b90d5248b10e8cc4e3 ]
@@ -12 +14,0 @@
-Cc: stable at dpdk.org
@@ -20 +22 @@
-index 04e018f3df..d3aa396c76 100644
+index b7b612fc57..bb260c7c25 100644
@@ -23 +25 @@
-@@ -1025,7 +1025,7 @@ static int openssl_set_asym_session_parameters(
+@@ -995,7 +995,7 @@ static int openssl_set_asym_session_parameters(
@@ -32 +34 @@
-@@ -1034,7 +1034,9 @@ static int openssl_set_asym_session_parameters(
+@@ -1004,7 +1004,9 @@ static int openssl_set_asym_session_parameters(
More information about the stable
mailing list