DPDK patches and discussions
 help / color / mirror / Atom feed
From: Arek Kusztal <arkadiuszx.kusztal@intel.com>
To: dev@dpdk.org
Cc: akhil.goyal@nxp.com, fiona.trahe@intel.com,
	shally.verma@caviumnetworks.com,
	Arek Kusztal <arkadiuszx.kusztal@intel.com>
Subject: [dpdk-dev] [PATCH 1/3] cryptodev: add result field to mod exp and inverse operations
Date: Fri,  8 Feb 2019 09:19:05 +0100	[thread overview]
Message-ID: <20190208081907.3248-2-arkadiuszx.kusztal@intel.com> (raw)
In-Reply-To: <20190208081907.3248-1-arkadiuszx.kusztal@intel.com>

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(+)

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)
+	*/
 };
 
 /**
-- 
2.1.0

  reply	other threads:[~2019-02-08  8:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-08  8:19 [dpdk-dev] [PATCH 0/3] crypotodev: add result field to modular operations Arek Kusztal
2019-02-08  8:19 ` Arek Kusztal [this message]
2019-02-08  8:19 ` [dpdk-dev] [PATCH 2/3] openssl: add result field to mod exp and mod inv operations Arek Kusztal
2019-02-08  8:19 ` [dpdk-dev] [PATCH 3/3] test: add result field to mod exp and mod inv Arek Kusztal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190208081907.3248-2-arkadiuszx.kusztal@intel.com \
    --to=arkadiuszx.kusztal@intel.com \
    --cc=akhil.goyal@nxp.com \
    --cc=dev@dpdk.org \
    --cc=fiona.trahe@intel.com \
    --cc=shally.verma@caviumnetworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).