]> git.droids-corp.org - dpdk.git/commitdiff
cryptodev: add DSA random number k
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Fri, 11 Feb 2022 16:02:35 +0000 (16:02 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Sat, 12 Feb 2022 10:18:22 +0000 (11:18 +0100)
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 <arkadiuszx.kusztal@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
devtools/libabigail.abignore
lib/cryptodev/rte_crypto_asym.h

index 5be41b88055a26cd03da703d85997d2aca008eac..ef0602975acb620e5a1423ce1e44470df348d6bb 100644 (file)
@@ -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
index 9c866f553fdfec5671c655fa6736a84ab9b98990..e0def3d9ab667c6ea763871855d89c520a74ebe3 100644 (file)
@@ -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
         *