[PATCH v3 1/4] crypto: add dsa random number k
Arek Kusztal
arkadiuszx.kusztal at intel.com
Fri Feb 11 17:02:35 CET 2022
This commit adds random number 'k' to dsa
op param struct.
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 at intel.com>
---
devtools/libabigail.abignore | 5 +++++
lib/cryptodev/rte_crypto_asym.h | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/devtools/libabigail.abignore b/devtools/libabigail.abignore
index 4b676f317d..4463df9dd6 100644
--- a/devtools/libabigail.abignore
+++ b/devtools/libabigail.abignore
@@ -11,3 +11,8 @@
; Ignore generated PMD information strings
[suppress_variable]
name_regexp = _pmd_info$
+
+; Ignore changes to rte_crypto_asym_op, asymmetric crypto API
+; is experimental
+[suppress_type]
+ name = rte_crypto_asym_op
\ No newline at end of file
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
*
--
2.13.6
More information about the dev
mailing list