Asymmetric-crypto header has a simple structure that allows to
keep logically separate blocks together. Therefore, xforms,
ops, and generic structs may be appropriately ordered.
This patch moves sm2-op structs to be placed along other
algorithms-op structs.

Signed-off-by: Arkadiusz Kusztal <arkadiuszx.kusz...@intel.com>
---
 lib/cryptodev/rte_crypto_asym.h | 68 ++++++++++++++++++++---------------------
 1 file changed, 34 insertions(+), 34 deletions(-)

diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h
index 157f597d5d..1b54774fee 100644
--- a/lib/cryptodev/rte_crypto_asym.h
+++ b/lib/cryptodev/rte_crypto_asym.h
@@ -600,40 +600,6 @@ struct rte_crypto_ecpm_op_param {
 };
 
 /**
- * Asymmetric crypto transform data
- *
- * Structure describing asym xforms.
- */
-struct rte_crypto_asym_xform {
-       struct rte_crypto_asym_xform *next;
-       /**< Pointer to next xform to set up xform chain.*/
-       enum rte_crypto_asym_xform_type xform_type;
-       /**< Asymmetric crypto transform */
-
-       union {
-               struct rte_crypto_rsa_xform rsa;
-               /**< RSA xform parameters */
-
-               struct rte_crypto_modex_xform modex;
-               /**< Modular Exponentiation xform parameters */
-
-               struct rte_crypto_modinv_xform modinv;
-               /**< Modular Multiplicative Inverse xform parameters */
-
-               struct rte_crypto_dh_xform dh;
-               /**< DH xform parameters */
-
-               struct rte_crypto_dsa_xform dsa;
-               /**< DSA xform parameters */
-
-               struct rte_crypto_ec_xform ec;
-               /**< EC xform parameters, used by elliptic curve based
-                * operations.
-                */
-       };
-};
-
-/**
  * SM2 operation capabilities
  */
 enum rte_crypto_sm2_op_capa {
@@ -710,6 +676,40 @@ struct rte_crypto_sm2_op_param {
 };
 
 /**
+ * Asymmetric crypto transform data
+ *
+ * Structure describing asym xforms.
+ */
+struct rte_crypto_asym_xform {
+       struct rte_crypto_asym_xform *next;
+       /**< Pointer to next xform to set up xform chain.*/
+       enum rte_crypto_asym_xform_type xform_type;
+       /**< Asymmetric crypto transform */
+
+       union {
+               struct rte_crypto_rsa_xform rsa;
+               /**< RSA xform parameters */
+
+               struct rte_crypto_modex_xform modex;
+               /**< Modular Exponentiation xform parameters */
+
+               struct rte_crypto_modinv_xform modinv;
+               /**< Modular Multiplicative Inverse xform parameters */
+
+               struct rte_crypto_dh_xform dh;
+               /**< DH xform parameters */
+
+               struct rte_crypto_dsa_xform dsa;
+               /**< DSA xform parameters */
+
+               struct rte_crypto_ec_xform ec;
+               /**< EC xform parameters, used by elliptic curve based
+                * operations.
+                */
+       };
+};
+
+/**
  * Asymmetric Cryptographic Operation.
  *
  * Structure describing asymmetric crypto operation params.
-- 
2.13.6

Reply via email to