[1/3] lib/cryptodev: add crt sign and decrypt ops
Checks
Commit Message
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(+)
@@ -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,