[19/40] cryptodev: changed order of dh fields
Checks
Commit Message
- 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(-)
@@ -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