[1/3] lib/cryptodev: add crt sign and decrypt ops

Message ID 20190206111405.30860-2-ayverma@marvell.com (mailing list archive)
State Superseded, archived
Delegated to: akhil goyal
Headers
Series adding op-type crt sign and decrypt |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/intel-Performance-Testing success Performance Testing PASS
ci/Intel-compilation success Compilation OK

Commit Message

Ayuj Verma Feb. 6, 2019, 11:16 a.m. UTC
  Add CRT variant of RTE_CRYPTO_ASYM_SIGN and DECRYPT operation,
to perform RSA Sign and Decrypt using CRT quintuple keys only

PMD would reflect its capability to support these
operations using its op_type mask. App should query
RSA xform capability API to check if specific op_type is
supported, thus call operation with relevant key type.

Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
---
 lib/librte_cryptodev/rte_crypto_asym.h | 8 ++++++++
 1 file changed, 8 insertions(+)
  

Patch

diff --git a/lib/librte_cryptodev/rte_crypto_asym.h b/lib/librte_cryptodev/rte_crypto_asym.h
index 5e185b2dd..2c1f95eb6 100644
--- a/lib/librte_cryptodev/rte_crypto_asym.h
+++ b/lib/librte_cryptodev/rte_crypto_asym.h
@@ -91,8 +91,16 @@  enum rte_crypto_asym_op_type {
 	/**< Asymmetric Encrypt operation */
 	RTE_CRYPTO_ASYM_OP_DECRYPT,
 	/**< Asymmetric Decrypt operation */
+	RTE_CRYPTO_ASYM_OP_DECRYPT_CRT,
+	/**< RSA private key decrypt operation
+	 * using CRT quintuple keys
+	 */
 	RTE_CRYPTO_ASYM_OP_SIGN,
 	/**< Signature Generation operation */
+	RTE_CRYPTO_ASYM_OP_SIGN_CRT,
+	/**< RSA signature (private key encrypt)
+	 * generation using CRT quintuple keys
+	 */
 	RTE_CRYPTO_ASYM_OP_VERIFY,
 	/**< Signature Verification operation */
 	RTE_CRYPTO_ASYM_OP_PRIVATE_KEY_GENERATE,