[dpdk-dev] [PATCH v2 1/3] cryptodev: add result field to mod exp and inverse operations

Shally Verma shallyv at marvell.com
Tue Feb 12 11:55:01 CET 2019



>-----Original Message-----
>From: Arek Kusztal <arkadiuszx.kusztal at intel.com>
>Sent: 08 February 2019 16:44
>To: dev at dpdk.org
>Cc: akhil.goyal at nxp.com; fiona.trahe at intel.com; shally.verma at caviumnetworks.com; Arek Kusztal <arkadiuszx.kusztal at intel.com>
>Subject: [PATCH v2 1/3] cryptodev: add result field to mod exp and inverse operations
>
>External Email
>
>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 at intel.com>
>---
Acked-by: Shally Verma <shallyv at marvell.com>

> lib/librte_cryptodev/rte_crypto_asym.h | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
>diff --git a/lib/librte_cryptodev/rte_crypto_asym.h b/lib/librte_cryptodev/rte_crypto_asym.h
>index 0a50cd5..991263f 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)
>+        */
> };
>
> /**
>--
>2.1.0



More information about the dev mailing list