diff mbox series

[19/40] cryptodev: changed order of dh fields

Message ID 20220520055445.40063-20-arkadiuszx.kusztal@intel.com (mailing list archive)
State Changes Requested
Delegated to: akhil goyal
Headers show
Series cryptodev: rsa, dh, ecdh changes | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Kusztal, ArkadiuszX May 20, 2022, 5:54 a.m. UTC
- changed order of Diffie-Hellman struct fields.
Now order of Diffie-Hellman struct members corresponds
to order of operation in Diffie-Hellman key exchange.

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
---
 lib/cryptodev/rte_crypto_asym.h | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h
index 728a98f02e..52cb1c5c80 100644
--- a/lib/cryptodev/rte_crypto_asym.h
+++ b/lib/cryptodev/rte_crypto_asym.h
@@ -379,6 +379,13 @@  struct rte_crypto_rsa_op_param {
 struct rte_crypto_dh_op_param {
 	enum rte_crypto_asym_ke_type op_type;
 	/**< Key exchange operation type */
+	rte_crypto_uint priv_key;
+	/**<
+	 * Output generated private key when op_type is
+	 * DH PRIVATE_KEY_GENERATION
+	 * Input when op_type is DH SHARED_SECRET_COMPUTATION.
+	 *
+	 */
 	rte_crypto_uint pub_key;
 	/**<
 	 * Output generated public key when op_type is
@@ -387,15 +394,6 @@  struct rte_crypto_dh_op_param {
 	 * SHARED_SECRET_COMPUTATION
 	 *
 	 */
-
-	rte_crypto_uint priv_key;
-	/**<
-	 * Output generated private key when op_type is
-	 * DH PRIVATE_KEY_GENERATION
-	 * Input when op_type is DH SHARED_SECRET_COMPUTATION.
-	 *
-	 */
-
 	rte_crypto_uint shared_secret;
 	/**<
 	 * Output with calculated shared secret