[v1,1/2] cryptodev: add enumeration in EC xform for FPM

Message ID f1e5d19fa3da1accc14dc52c770642e9faa17f90.1664262839.git.gmuthukrishn@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series examples/fips_validation: add ECDSA tests |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-testing warning apply patch failure

Commit Message

Gowrishankar Muthukrishnan Sept. 27, 2022, 7:30 a.m. UTC
  Add enumeration in EC xform for FPM. Crypto driver would need this
to xform point multiplication based on given type of EC curve.

Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
---
 lib/cryptodev/rte_crypto_asym.h | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Ji, Kai Sept. 28, 2022, 9:35 p.m. UTC | #1
Acked-by: Kai Ji <kai.ji@intel.com>

> -----Original Message-----
> From: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> Sent: Tuesday, September 27, 2022 8:31 AM
> To: dev@dpdk.org
> Cc: Anoob Joseph <anoobj@marvell.com>; Zhang, Roy Fan
> <roy.fan.zhang@intel.com>; Dooley, Brian <brian.dooley@intel.com>; Akhil
> Goyal <gakhil@marvell.com>; jerinj@marvell.com; Gowrishankar
> Muthukrishnan <gmuthukrishn@marvell.com>; Kiran Kumar K
> <kirankumark@marvell.com>
> Subject: [v1 1/2] cryptodev: add enumeration in EC xform for FPM
> 
> Add enumeration in EC xform for FPM. Crypto driver would need this to
> xform point multiplication based on given type of EC curve.
> 
> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> ---
  
Akhil Goyal Sept. 30, 2022, 6:08 p.m. UTC | #2
> Acked-by: Kai Ji <kai.ji@intel.com>
> 
> > Add enumeration in EC xform for FPM. Crypto driver would need this to
> > xform point multiplication based on given type of EC curve.
> >
> > Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
> > Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> > ---

This patch is applied to dpdk-next-crypto as we are approaching RC1 date.

FIPS application patch is not acked and we can merge it in RC2.
  

Patch

diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h
index 8ae43d5f3d..da13a5e0c1 100644
--- a/lib/cryptodev/rte_crypto_asym.h
+++ b/lib/cryptodev/rte_crypto_asym.h
@@ -116,6 +116,9 @@  enum rte_crypto_asym_xform_type {
 	/**< Elliptic Curve Diffie Hellman */
 	RTE_CRYPTO_ASYM_XFORM_ECPM,
 	/**< Elliptic Curve Point Multiplication */
+
+	RTE_CRYPTO_ASYM_XFORM_ECFPM,
+	/**< Elliptic Curve Fixed Point Multiplication */
 	RTE_CRYPTO_ASYM_XFORM_TYPE_LIST_END
 	/**< End of list */
 };