[PATCH 03/10] crypto/octeontx: advertise RSA PKCS#1 v1.5 padding support
Sucharitha Sarananaga
ssarananaga at marvell.com
Mon Aug 31 12:23:21 CEST 2026
Update the OcteonTX cryptodev RSA asymmetric capability to use
rsa_capa and report supported padding schemes.
Advertise RTE_CRYPTO_RSA_PADDING_NONE and
RTE_CRYPTO_RSA_PADDING_PKCS1_5 via pad_types to match RSA
padding support in the PMD.
Signed-off-by: Sucharitha Sarananaga <ssarananaga at marvell.com>
---
drivers/crypto/octeontx/otx_cryptodev_capabilities.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/octeontx/otx_cryptodev_capabilities.c b/drivers/crypto/octeontx/otx_cryptodev_capabilities.c
index 80a9fe2123..8a70f81e1f 100644
--- a/drivers/crypto/octeontx/otx_cryptodev_capabilities.c
+++ b/drivers/crypto/octeontx/otx_cryptodev_capabilities.c
@@ -608,11 +608,15 @@ static const struct rte_cryptodev_capabilities otx_asym_capabilities[] = {
(1 << RTE_CRYPTO_ASYM_OP_VERIFY) |
(1 << RTE_CRYPTO_ASYM_OP_ENCRYPT) |
(1 << RTE_CRYPTO_ASYM_OP_DECRYPT)),
- {.modlen = {
+ .rsa_capa = {
+ .modlen = {
.min = 17,
.max = 1024,
.increment = 1
- }, }
+ },
+ .pad_types = ((1 << RTE_CRYPTO_RSA_PADDING_NONE) |
+ (1 << RTE_CRYPTO_RSA_PADDING_PKCS1_5)),
+ },
}
}, }
},
--
2.54.0
More information about the dev
mailing list