[1/3] cryptodev: add result field to mod exp and inverse operations

Message ID 20190208081907.3248-2-arkadiuszx.kusztal@intel.com (mailing list archive)
State Superseded, archived
Delegated to: akhil goyal
Headers
Series crypotodev: add result field to modular operations |

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Arkadiusz Kusztal Feb. 8, 2019, 8:19 a.m. UTC
  This commit adds result field to be used when modular exponentiation or
modular multiplicative inverse operation is used

This patch depends on "cryptodev: rework mod exp and mod inv comments"
(http://patchwork.dpdk.org/patch/50132/)

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
---
 lib/librte_cryptodev/rte_crypto_asym.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
  

Patch

diff --git a/lib/librte_cryptodev/rte_crypto_asym.h b/lib/librte_cryptodev/rte_crypto_asym.h
index 0a50cd5..f5375bd 100644
--- a/lib/librte_cryptodev/rte_crypto_asym.h
+++ b/lib/librte_cryptodev/rte_crypto_asym.h
@@ -339,6 +339,16 @@  struct rte_crypto_mod_op_param {
 	 * be relatively prime to modulus in corresponding Modular
 	 * Multiplicative Inverse rte_crypto_modinv_xform
 	 */
+
+	rte_crypto_param result;
+	/**<
+	* Pointer to the result of modular exponentiation/multiplicative inverse
+	* data in octet-string network byte order format.
+	*
+	* This field shall be big enough to hold the result of Modular
+	* Exponentiation or Modular Multplicative Inverse
+	* (bigger or equal to length of modulus)
+	*/
 };
 
 /**