Skip to contentSkip to conversation

crypto/cnxk: add support for fixed point multiplication

PATCH Applied Gowrishankar Muthukrishnan 3 participants 3 messages Sep 27, 2022 – Oct 7, 2022 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/cnxk: add support for fixed point multiplication

Add fixed point multiplication for EC curve in CNXK.

---
 drivers/common/cnxk/roc_ae.h                  |  1 +
 drivers/crypto/cnxk/cnxk_ae.h                 | 69 +++++++++++++++++++
 .../crypto/cnxk/cnxk_cryptodev_capabilities.c | 10 +++
 3 files changed, 80 insertions(+)
drivers/common/cnxk/roc_ae.h +1 -0
index 9c637d67ef..c972878eff 100644
@@ -18,6 +18,7 @@
 #define ROC_AE_MINOR_OP_ECDSA_SIGN   0x01
 #define ROC_AE_MINOR_OP_ECDSA_VERIFY 0x02
 #define ROC_AE_MINOR_OP_ECC_UMP	     0x03
+#define ROC_AE_MINOR_OP_ECC_FPM	     0x04
 
 /**
  * Enumeration roc_ae_ec_id
drivers/crypto/cnxk/cnxk_ae.h +69 -0

99 lines not on this page · raw message

drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c +10 -0
index 705d67e91f..e32f476dd9 100644
@@ -82,6 +82,16 @@ static const struct rte_cryptodev_capabilities caps_mul[] = {
 			},
 		}
 	},
+	{	/* ECFPM */
+		.op = RTE_CRYPTO_OP_TYPE_ASYMMETRIC,
+		{.asym = {
+			.xform_capa = {
+				.xform_type = RTE_CRYPTO_ASYM_XFORM_ECFPM,
+				.op_types = 0
+				}
+			},
+		}
+	},
 };
 
 static const struct rte_cryptodev_capabilities caps_sha1_sha2[] = {
Signature · 1 line
2.25.1