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 182591B6E2 for ; Fri, 8 Feb 2019 09:48:24 +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 x188j5Xl004275; Fri, 8 Feb 2019 00:48:24 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=pfpt0818; bh=DRQCr4G6ky5tdXYVXpYiyLtrd2zrCYYGFi4edWIrLUo=; b=wLO7B0ycGb5KOU9TZUTr8deeOLG94aVRQAtHDUxcoJoG+BcV+z2MWYa+ZVIIKXGM7HGF HhFa8ELIlaRH5Ufu1MQ8lU08Lw2pWjYA/KswyX7s8PWQtFHoi7iXs1DdXJcbqFpiJ7W4 9BOlu9joAn52C6RBX8M2RtUgre4nmtZJnab5l5KB0uaB2Rb90MvGO7uLwvRMQ/o6GLHl LBbPhNiyw3P9VIykIL6yXWWUxn5NOvuAzzHo67wIL98n7+HHU3UmbsGIsD7VQ8n+QC43 CQl7hPF55K34Wr7wWMQ0JYLNlgdFMA9ZEzYmH6UI3jXO00P0iLuuXbt1AaVGbeCz/EqD FQ== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2qgcr4ca5d-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 08 Feb 2019 00:48:24 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 8 Feb 2019 00:47:43 -0800 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (104.47.34.52) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 8 Feb 2019 00:47:43 -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=DRQCr4G6ky5tdXYVXpYiyLtrd2zrCYYGFi4edWIrLUo=; b=ovJSnoX+3Wchm5pmbvjJMzl6Qc6unEyP60QSW3DtejmkacnFqcSX0mvsy5lLa+NLdwJKkEir/Gw4lzfPnlLUM1ZPzVJE93rJemVZaVhiyz04kb8x6MKtbAnUvrFXvSaYQooGgcixUjAdcC9lEjMRkjCwcL+Lc0cwqZ85n7icIO8= Received: from DM6PR18MB2908.namprd18.prod.outlook.com (20.179.50.12) by DM6PR18MB2474.namprd18.prod.outlook.com (20.179.104.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.21; Fri, 8 Feb 2019 08:47:42 +0000 Received: from DM6PR18MB2908.namprd18.prod.outlook.com ([fe80::d176:5cef:c5d7:b9ae]) by DM6PR18MB2908.namprd18.prod.outlook.com ([fe80::d176:5cef:c5d7:b9ae%5]) with mapi id 15.20.1601.016; Fri, 8 Feb 2019 08:47:42 +0000 From: Ayuj Verma To: "pablo.de.lara.guarch@intel.com" CC: "fiona.trahe@intel.com" , "dev@dpdk.org" , Shally Verma , Sunila Sahu , Kanaka Durga Kotamarthy , Arvind Desai Thread-Topic: [PATCH 0/3] adding op-type crt sign and decrypt Thread-Index: AQHUvg1gQkJoFzcev0ymVfke48+GsaXVmWXE Date: Fri, 8 Feb 2019 08:47:42 +0000 Message-ID: References: <20190206111405.30860-1-ayverma@marvell.com> In-Reply-To: <20190206111405.30860-1-ayverma@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [106.51.240.97] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM6PR18MB2474; 20:AeTRsC9PeG0Q/nq+bGReaNVYNwWDEfohWCOg4IVIen1l+CJVj7rBgl9YpHU8tju34f6TUKEi2sFTEWKlzhpHV02v5WpkSSl5tn2bOdxlKi9+Zk8F3/rEZiIfyanXySZvc9alPpvt6QHV1R5LKiyvjbuP0g18+X6EnApAn+MJLLQ= x-ms-office365-filtering-correlation-id: ab4363d6-195a-4848-8d12-08d68da2168d x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020); SRVR:DM6PR18MB2474; x-ms-traffictypediagnostic: DM6PR18MB2474: x-microsoft-antispam-prvs: x-forefront-prvs: 094213BFEA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(366004)(346002)(39860400002)(376002)(199004)(189003)(8936002)(74316002)(66066001)(6246003)(6116002)(2501003)(3846002)(229853002)(186003)(107886003)(33656002)(446003)(68736007)(2906002)(11346002)(486006)(6606003)(81156014)(78486014)(9456002)(8676002)(6916009)(53936002)(7736002)(81166006)(25786009)(478600001)(476003)(4326008)(14454004)(71200400001)(71190400001)(97736004)(102836004)(14444005)(256004)(55236004)(53546011)(99946001)(54906003)(6506007)(106356001)(26005)(105586002)(9686003)(2351001)(86362001)(54896002)(55016002)(19627405001)(99286004)(7696005)(316002)(76176011)(5640700003)(6436002)(561944003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR18MB2474; H:DM6PR18MB2908.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: xXGb39wx/k4+husdU/1cZ2iskD5+ligOEOeL+Medm/nVmKdzM6ezVnF9wJ0mMj3T9IFxKmQV3wMey+fdt5R19T2qd8rPXRxNNRfiV2GAAtJGT9HyhnV7nnr0HMSPBZ7MyJiTe1ny9pM6t718ecQvya1mrMdmeXXBNsL75Agf6/x1ZIi0pX9fRCIff/QYS7E0a4Vv9YlmmXpOkt3tjSwE/nIkozNeHXnXxNzzklRDqiVgtqIgRNuip3ZsbiKzURjrmfMYr5zexuPzlXOGO2bROH7KqfsIAZJIc0NciozmZB98OSodgxGn2zp9apj/7Z/UXC2J+V9/vz9yScjYwTzQROsX2YSWX7MhdDnVotRQt6y2Kct4H4Se9x9BndSEKO3OLmrnFP9rdoufPsVMwUUDzHH7HkInv+lJfRKYzSS4j9A= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ab4363d6-195a-4848-8d12-08d68da2168d X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Feb 2019 08:47:42.1637 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB2474 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-08_06:, , 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902080064 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH 0/3] adding op-type crt sign and decrypt 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: Fri, 08 Feb 2019 08:48:25 -0000 Hi Pablo,Fiona Did you get a chance to look into these. Thanks and regards Ayuj Verma ________________________________ From: Ayuj Verma Sent: 06 February 2019 16:46:17 To: pablo.de.lara.guarch@intel.com Cc: fiona.trahe@intel.com; dev@dpdk.org; Shally Verma; Sunila Sahu; Kanaka = Durga Kotamarthy; Arvind Desai; Ayuj Verma Subject: [PATCH 0/3] adding op-type crt sign and decrypt Some PMDs can only support RSA private key operations using CRT keys (quintuple) only. Thus it is required to add in PMD RSA xform capability which key type is supported to perform sign and decrypt ops. Thus add an another op_type RTE_CRYPTO_OP_TYPE_SIGN_CRT and RTE_CRYPTO_OP_TYPE_DECRYPT_CRT, which would mean perform an private key op using CRT keys (quintuple) 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. Another proposal is, it is not known if non-crt keys is used at all to perform otherwise naturally slow RSA private keys operations. So, it is also possible to deprecate RSA_KEY_TYPE_EXPONENT altogether and just use quintuple key type for private key operations. In that case, there is no need to add another SIGN/DECRYPT_CRT variant, current SIGN and DECRYPT operation default to using quintuple RSA keys. Ayuj Verma (3): lib/cryptodev: add crt sign and decrypt ops crypto/openssl: update op-type mask with crt ops test/crypto: check for rsa capa for op-type drivers/crypto/openssl/rte_openssl_pmd_ops.c | 4 +- lib/librte_cryptodev/rte_crypto_asym.h | 8 ++++ test/test/test_cryptodev_asym.c | 47 ++++++++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-) -- 2.20.0