From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1RDThUF020164; Wed, 27 Feb 2019 05:33:38 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=9udMK3+nr1JgpulAuyARGKJFYawpyhBc8fIX5MzCp/o=; b=fLUksWfZZgLVURHoRd+LVLE++s8TJP5LMkNIP7u3l8g9PXlarNvlFQtrjFgeHy6LvWo9 ObTdBorIH4at9ExMtyW/RtLiSAkAwC8+7VJHITtrhuU9oGmZ4as8qd1hf6lYiQ2rzrZ4 iEOthrXw2aWOoEiXZEajCz2nPCdnDNLQo02PWEkLTELylY03gcyqVwvQpLBYXqFeEoHz snRKo20TN7aWCe8gxW9KQM9/8a3R56OyutbzM7fB1rg4O5vMfAh/YR4cbhzOOqfck15o FQeYx7RmYQFtdxLcnpKVPFwpmg3zct9xiBK5oSpvxbhZXJLVyJYUZPLI7Drc2pP0t+yT 1g== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2qwhfgsm1g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 27 Feb 2019 05:33:37 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 27 Feb 2019 05:33:36 -0800 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.59) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 27 Feb 2019 05:33:36 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9udMK3+nr1JgpulAuyARGKJFYawpyhBc8fIX5MzCp/o=; b=t8vzI86znraKGho+dwk5bWBQQYZnAnOY+7yzs3OSWAUpzR35ng88KFV2M6fVqeva1b5mRrqmPqtTCtRCe0f/xXXKJ8+4JAHJ50wUk631T3Tl4Y6LsEBazeAr6cLL4qGbzOgLKhRS/Oxpz+RiEefu1dwYlGYaI0XRW0UU4gN/IpU= Received: from MN2PR18MB2542.namprd18.prod.outlook.com (20.179.82.221) by MN2PR18MB2607.namprd18.prod.outlook.com (20.179.82.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.15; Wed, 27 Feb 2019 13:33:31 +0000 Received: from MN2PR18MB2542.namprd18.prod.outlook.com ([fe80::2cd3:8b8:fbbb:db98]) by MN2PR18MB2542.namprd18.prod.outlook.com ([fe80::2cd3:8b8:fbbb:db98%5]) with mapi id 15.20.1643.022; Wed, 27 Feb 2019 13:33:31 +0000 From: Ayuj Verma To: "akhil.goyal@nxp.com" CC: "arkadiuszx.kusztal@intel.com" , "fiona.trahe@intel.com" , Shally Verma , Sunila Sahu , "Kanaka Durga Kotamarthy" , Arvind Desai , "dev@dpdk.org" , Ayuj Verma Thread-Topic: [PATCH v2 0/3] adding rsa priv key feature flag Thread-Index: AQHUzqEHAOyD3J5P4k2kbBjbBi6kGA== Date: Wed, 27 Feb 2019 13:33:31 +0000 Message-ID: <20190227133258.8962-1-ayverma@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: PN1PR01CA0109.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::25) To MN2PR18MB2542.namprd18.prod.outlook.com (2603:10b6:208:103::29) x-mailer: git-send-email 2.20.0 x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [111.93.218.67] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0882e39b-c971-4370-eea3-08d69cb829a1 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MN2PR18MB2607; x-ms-traffictypediagnostic: MN2PR18MB2607: x-microsoft-exchange-diagnostics: 1; MN2PR18MB2607; 20:hmdiL4YTlUegcnDeDGS+/jhVl8DbZ0jD+P8PCdslvWTTIyxOVisG7LZqbeH9phEhx/1exf1eSTAWPOnO1UtyFjaiiT/9fISdQOBNtr/pPwaj+BE20mIB4HoMQbv+EPJ/jm9jxE2i3vGu89KiPtB5jFhKpdfZB2K+4676qO8CNJY= x-microsoft-antispam-prvs: x-forefront-prvs: 0961DF5286 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(396003)(366004)(39860400002)(136003)(346002)(376002)(199004)(189003)(78486014)(99286004)(86362001)(26005)(186003)(14444005)(305945005)(7736002)(6436002)(6512007)(386003)(6506007)(5640700003)(3846002)(2906002)(486006)(6116002)(54906003)(6916009)(97736004)(256004)(1076003)(2616005)(476003)(4744005)(2501003)(5660300002)(71190400001)(71200400001)(478600001)(4326008)(14454004)(25786009)(107886003)(2351001)(8676002)(53936002)(316002)(102836004)(8936002)(6486002)(68736007)(81166006)(52116002)(81156014)(66066001)(50226002)(105586002)(106356001)(36756003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2607; H:MN2PR18MB2542.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: sEYEYbI2XH/6YkJEP19Ut8+swoRLIv88/Xjc71rRcU/kH4whZqR5k4EFRVXEKtpFHJX59//kWJHZixY1J49p4ZZvPu8uM+2H+EtCp0VDa5fYcZXCwY315DehC0GOI72wineoQ03nKkkvOLdA83mdq8uSQInzFOCU1kueA/x5i5hT8Z/G7Fjd9BTHHqMwstbWo4opsprULuo+xLG8o5mIiaB/ksweXj3naAZO5XbuqWD3/R/TMtuKgFJVQbV8WaQE+d96k2yUO7gVBPt2m9aFnRLxDP+zy5nTO9xybYtAzWUHT3eCwf1A4FSLx1U5WbEUI67P+ufPaoewFZ6kNqEJ3pHFdvXd5BwTICzJBSKeN8WxnJpw/YpaJSKA7ry81ZKNqCDK5kCeE9a2iRD74SD/aIBk4iOXEtcXmgbi0KzGDKg= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 0882e39b-c971-4370-eea3-08d69cb829a1 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2019 13:33:27.9138 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2607 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-27_08:, , signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=798 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902270090 Subject: [dpdk-dev] [PATCH v2 0/3] adding rsa priv key feature flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 13:33:39 -0000 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