cryptodev: add result field to mod exp and inv
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Fri, 8 Feb 2019 11:13:36 +0000 (12:13 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 22 Mar 2019 13:27:46 +0000 (14:27 +0100)
This commit adds result field to be used when modular exponentiation or
modular multiplicative inverse operation is used

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Shally Verma <shallyv@marvell.com>
lib/librte_cryptodev/rte_crypto_asym.h

index 265559c..5e43620 100644 (file)
@@ -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)
+        */
 };
 
 /**