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 <ayve...@marvell.com>
Signed-off-by: Shally Verma <shal...@marvell.com>
---
 lib/librte_cryptodev/rte_crypto_asym.h | 8 ++++++++
 1 file changed, 8 insertions(+)

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,
-- 
2.20.0

Reply via email to