Update the CNXK 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 <redacted>
---
drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c
index 736d588bde..577f080ba7 100644
--- a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c
+++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c
@@ -60,11 +60,15 @@ static const struct rte_cryptodev_capabilities caps_mul[] = {
(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