From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ayuj Verma Subject: [PATCH 1/3] lib/cryptodev: add crt sign and decrypt ops Date: Wed, 6 Feb 2019 11:16:29 +0000 Message-ID: <20190206111405.30860-2-ayverma@marvell.com> References: <20190206111405.30860-1-ayverma@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "fiona.trahe@intel.com" , "dev@dpdk.org" , Shally Verma , Sunila Sahu , Kanaka Durga Kotamarthy , Arvind Desai , Ayuj Verma To: "pablo.de.lara.guarch@intel.com" Return-path: Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id BA5EE1B40F for ; Wed, 6 Feb 2019 12:16:33 +0100 (CET) In-Reply-To: <20190206111405.30860-1-ayverma@marvell.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Signed-off-by: Shally Verma --- 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, --=20 2.20.0