From: Ayuj Verma Subject: [PATCH v2 0/3] adding rsa priv key feature flag Date: Wed, 27 Feb 2019 13:33:31 +0000 Message-ID: <20190227133258.8962-1-ayverma@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "arkadiuszx.kusztal@intel.com" , "fiona.trahe@intel.com" , Shally Verma , Sunila Sahu , "Kanaka Durga Kotamarthy" , Arvind Desai , "dev@dpdk.org" , Ayuj Verma To: "akhil.goyal@nxp.com" Return-path: Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id BE60A5424 for ; Wed, 27 Feb 2019 14:33:38 +0100 (CET) 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" Some PMDs can only support RSA private key operations using CRT (quintuple) or exponent key only. Thus it is required to add feature flag (ff) in PMD to reflect which key type is supported to perform sign and decrypt ops. Thus add feature flags RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_EXP and RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT which would mean support to perform a private key op using CRT keys (quintuple) or exponent or both. App should query PMD feature flag to check if specific key type is supported and call operation with relevant key type. Ayuj Verma (3): lib/cryptodev: add rsa priv key feature flag crypto/openssl: set rsa private op feature flag test/crypto: check for rsa key type feature flag drivers/crypto/openssl/rte_openssl_pmd.c | 4 +++- lib/librte_cryptodev/rte_cryptodev.c | 4 ++++ lib/librte_cryptodev/rte_cryptodev.h | 4 ++++ test/test/test_cryptodev_asym.c | 26 ++++++++++++++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) --=20 2.20.0