From: Sucharitha Sarananaga <ssarananaga@marvell.com>
To: <dev@dpdk.org>
Cc: <gakhil@marvell.com>, <fanzhang.oss@gmail.com>,
<adwivedi@marvell.com>, <anoobj@marvell.com>,
<ktejasree@marvell.com>, <kai.ji@intel.com>,
<jianjay.zhou@huawei.com>, <radu.nicolau@intel.com>,
<gmuthukrishn@marvell.com>,
Sucharitha Sarananaga <ssarananaga@marvell.com>
Subject: [PATCH v2 0/8] cryptodev: add RSA-OAEP and RSA-PSS padding support
Date: Thu, 3 Sep 2026 08:26:40 +0000 [thread overview]
Message-ID: <20260903082648.3610676-1-ssarananaga@marvell.com> (raw)
In-Reply-To: <20260831102328.2813604-1-ssarananaga@marvell.com>
The asymmetric crypto capability structure currently reports only a
generic modulus length and primary hash algorithm for RSA, with no
way for a PMD to advertise which padding schemes (NONE, PKCS#1 v1.5,
OAEP, PSS) or MGF1 hash algorithms it supports. Applications have no
standard way to discover this, and the OpenSSL PMD itself only
implements NONE and PKCS#1 v1.5 padding.
This series first extends the capability API with a dedicated
rte_crypto_rsa_capa (modulus length, pad_types, mgf1_hash_algos, and
an explicit-PSS-salt flag), then updates the capability reporting in
the octeontx, cnxk, and openssl PMDs to use it.
On top of that, it adds actual RSA-OAEP and RSA-PSS support to the
OpenSSL PMD:
- RSA-OAEP encrypt/decrypt, with configurable OAEP hash, MGF1 hash,
and an optional label, defaulting MGF1 to the OAEP hash when
unset.
- RSA-PSS sign/verify, with configurable hash, MGF1 hash, and salt
length (rte_crypto_rsa_padding::pss_saltlen), using a dedicated
EVP_PKEY_verify()-based verification path since PSS does not
support verify-recover. The PSS salt itself is always generated
internally by the PMD; an application-supplied salt
(rte_crypto_rsa_op_param::pss_salt, gated by the new
pss_explicit_salt capability bit) is introduced by this series
for future PMD support but is not yet implemented here, so it is
rejected with RTE_CRYPTO_OP_STATUS_INVALID_ARGS.
Test coverage for both OAEP (encrypt/decrypt, default and custom
MGF1, with and without a label) and PSS (digest-length, maximum, and
zero-length salt) is added to the cryptodev asymmetric test suite.
v2:
- Dropped the virtio and qat capability-advertisement patches from
this series; they will be sent separately.
- Documented the new rsa_capa/pss_salt fields in release_26_11.rst
(this series' target release) instead of the already-released
26.07 notes.
Sucharitha Sarananaga (8):
crypto: add RSA-specific capability parameters
crypto/octeontx: advertise RSA PKCS#1 v1.5 padding support
crypto/cnxk: advertise RSA PKCS#1 v1.5 padding support
crypto/openssl: advertise RSA padding and hash capabilities
crypto/openssl: add RSA-OAEP support for OpenSSL PMD
app/test: add RSA OAEP asymmetric test cases
crypto/openssl: add RSA-PSS support for RSA operations
app/test: add RSA-PSS sign and verify test cases
app/test/test_cryptodev_asym.c | 663 ++++++++++++++++++
app/test/test_cryptodev_rsa_test_vectors.h | 317 +++++++++
doc/guides/rel_notes/release_26_11.rst | 16 +
.../crypto/cnxk/cnxk_cryptodev_capabilities.c | 8 +-
.../octeontx/otx_cryptodev_capabilities.c | 8 +-
drivers/crypto/openssl/openssl_pmd_private.h | 11 +
drivers/crypto/openssl/rte_openssl_pmd.c | 367 ++++++++--
drivers/crypto/openssl/rte_openssl_pmd_ops.c | 141 +++-
lib/cryptodev/rte_crypto_asym.h | 18 +
lib/cryptodev/rte_cryptodev.h | 50 +-
10 files changed, 1537 insertions(+), 62 deletions(-)
--
2.54.0
next prev parent reply other threads:[~2026-09-03 8:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 10:23 [PATCH 00/10] cryptodev: add RSA-OAEP and RSA-PSS padding support Sucharitha Sarananaga
2026-08-31 10:23 ` [PATCH 01/10] crypto: add RSA-specific capability parameters Sucharitha Sarananaga
2026-08-31 10:23 ` [PATCH 02/10] crypto/virtio: advertise RSA padding and hash capabilities Sucharitha Sarananaga
2026-08-31 10:23 ` [PATCH 03/10] crypto/octeontx: advertise RSA PKCS#1 v1.5 padding support Sucharitha Sarananaga
2026-08-31 10:23 ` [PATCH 04/10] crypto/cnxk: " Sucharitha Sarananaga
2026-08-31 10:23 ` [PATCH 05/10] crypto/qat: advertise RSA padding capabilities Sucharitha Sarananaga
2026-08-31 12:11 ` Radu Nicolau
2026-08-31 10:23 ` [PATCH 06/10] crypto/openssl: advertise RSA padding and hash capabilities Sucharitha Sarananaga
2026-08-31 10:23 ` [PATCH 07/10] crypto/openssl: add RSA-OAEP support for OpenSSL PMD Sucharitha Sarananaga
2026-08-31 10:23 ` [PATCH 08/10] app/test: add RSA OAEP asymmetric test cases Sucharitha Sarananaga
2026-08-31 10:23 ` [PATCH 09/10] crypto/openssl: add RSA-PSS support for RSA operations Sucharitha Sarananaga
2026-08-31 10:23 ` [PATCH 10/10] app/test: add RSA-PSS sign and verify test cases Sucharitha Sarananaga
2026-09-03 8:26 ` Sucharitha Sarananaga [this message]
2026-09-03 8:26 ` [PATCH v2 1/8] crypto: add RSA-specific capability parameters Sucharitha Sarananaga
2026-09-03 8:26 ` [PATCH v2 2/8] crypto/octeontx: advertise RSA PKCS#1 v1.5 padding support Sucharitha Sarananaga
2026-09-03 8:26 ` [PATCH v2 3/8] crypto/cnxk: " Sucharitha Sarananaga
2026-09-03 8:26 ` [PATCH v2 4/8] crypto/openssl: advertise RSA padding and hash capabilities Sucharitha Sarananaga
2026-09-03 8:26 ` [PATCH v2 5/8] crypto/openssl: add RSA-OAEP support for OpenSSL PMD Sucharitha Sarananaga
2026-09-03 8:26 ` [PATCH v2 6/8] app/test: add RSA OAEP asymmetric test cases Sucharitha Sarananaga
2026-09-03 8:26 ` [PATCH v2 7/8] crypto/openssl: add RSA-PSS support for RSA operations Sucharitha Sarananaga
2026-09-03 8:26 ` [PATCH v2 8/8] app/test: add RSA-PSS sign and verify test cases Sucharitha Sarananaga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260903082648.3610676-1-ssarananaga@marvell.com \
--to=ssarananaga@marvell.com \
--cc=adwivedi@marvell.com \
--cc=anoobj@marvell.com \
--cc=dev@dpdk.org \
--cc=fanzhang.oss@gmail.com \
--cc=gakhil@marvell.com \
--cc=gmuthukrishn@marvell.com \
--cc=jianjay.zhou@huawei.com \
--cc=kai.ji@intel.com \
--cc=ktejasree@marvell.com \
--cc=radu.nicolau@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).