- 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.kusz...@intel.com> --- lib/cryptodev/rte_crypto_asym.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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 -- 2.13.6