From: Arek Kusztal Date: Fri, 11 Feb 2022 16:02:35 +0000 (+0000) Subject: cryptodev: add DSA random number k X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a678c5d365899a5649d6260a500ce377767bc953;p=dpdk.git cryptodev: add DSA random number k This commit adds random number 'k' to DSA op param struct for asymmetric crypto ops. This parameter is crucial in stiuations where: - PMD cannot generate random number - User would like to provide random source Additionally, it makes DSA consistent with ECDSA in terms of 'k' which includes this parameter. Signed-off-by: Arek Kusztal Acked-by: Akhil Goyal --- diff --git a/devtools/libabigail.abignore b/devtools/libabigail.abignore index 5be41b8805..ef0602975a 100644 --- a/devtools/libabigail.abignore +++ b/devtools/libabigail.abignore @@ -16,3 +16,7 @@ [suppress_type] name = rte_security_ipsec_sa_options has_data_member_inserted_between = {offset_of(reserved_opts), end} + +; Ignore changes to rte_crypto_asym_op, asymmetric crypto API is experimental +[suppress_type] + name = rte_crypto_asym_op diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h index 9c866f553f..e0def3d9ab 100644 --- a/lib/cryptodev/rte_crypto_asym.h +++ b/lib/cryptodev/rte_crypto_asym.h @@ -547,6 +547,10 @@ struct rte_crypto_dsa_op_param { /**< Signature Generation or Verification */ rte_crypto_param message; /**< input message to be signed or verified */ + rte_crypto_param k; + /**< Per-message secret number, which is an integer + * in the interval (1, q-1) + */ rte_crypto_param r; /**< dsa sign component 'r' value *