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 82DE22B87 for ; Tue, 5 Mar 2019 10:11:25 +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 x2594Lh6001888; Tue, 5 Mar 2019 01:11: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=BFa3QrMftmS2fzwS1OU/F6gXUBfqAtjUz6aPqiEsNVM=; b=S5mHVld6Rynd4V1AZmldSzo8fJXkyeYnXa+hvV0wjNi+lvvW/uYlzcFstx7Q3/W8JXzU 7d7T8wkhOGLW9DYw1W5P3vUukUYCPR3TeBaKA9I4IJ59wiMsG0RPrwkvwAoCP0b3aWzQ 9TE9DzeQdnmgx3mKpe/vrxGZpnsvzSBSxKDUT4hXwESyhkPbNF1XNOhtBpkFrQs2NDgY k6KKWfu8V48yBA9M8wiyL5bESFsM15nEKk+GWzcpFXSsS0DxMSm349nNRDXvGDJeccv2 G3JVEtb50eGBuBUeXShfzkZLBYW/geKChzpSL0zoPjTPvEkVFzcM+JuJ0VLAwc/h1Osw fA== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2r1e3fs2s9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 05 Mar 2019 01:11:24 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 5 Mar 2019 01:11:22 -0800 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.52) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 5 Mar 2019 01:11:22 -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=BFa3QrMftmS2fzwS1OU/F6gXUBfqAtjUz6aPqiEsNVM=; b=kQvH+9xvwZSH7+bjfls0iMdWx3yyGEoVM2pUVG2dbJrv9XlPpYO6mE10+Mh26NHdPFg25wTbE7+Bv4SJ7UeB1F+Usu1DWbKV+UI12cjAp4XTYJxnNaRc1IjED+OBAp+jpTC8zCLloiCBt3hXURWjkuBXaNfQaVIgp4XgbBR8MZE= Received: from MN2PR18MB2542.namprd18.prod.outlook.com (20.179.82.221) by MN2PR18MB3087.namprd18.prod.outlook.com (20.179.20.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.16; Tue, 5 Mar 2019 09:11:18 +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.1665.020; Tue, 5 Mar 2019 09:11:18 +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" Thread-Topic: [PATCH v2 0/3] adding rsa priv key feature flag Thread-Index: AQHUzqEHAOyD3J5P4k2kbBjbBi6kGKX8yVSX Date: Tue, 5 Mar 2019 09:11:18 +0000 Message-ID: References: <20190227133258.8962-1-ayverma@marvell.com> In-Reply-To: <20190227133258.8962-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: [199.233.58.37] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: de9a2ed5-fcde-44a6-3a04-08d6a14a872b x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MN2PR18MB3087; x-ms-traffictypediagnostic: MN2PR18MB3087: x-microsoft-exchange-diagnostics: =?us-ascii?Q?1; MN2PR18MB3087; 23:DNkNkIJZW0Lg33DP9fkMIORzcnn9+t1W3QCDWEv9B?= =?us-ascii?Q?078k0PMfJNWoyTv/23VsVmty5caSKUTHuN2fHSwv61C841sUS5cPsDW9ivx/?= =?us-ascii?Q?N7kbLGndB80fJIRPE07YRCxAlEzV+gy7zCOdU8juJDjvCgvXMrl0LqMuENAp?= =?us-ascii?Q?6l+ZftDAlWO4XMCqZZ151DEt+F/vE75h+5NuaNx5nvuGabNXuNu0NmY77LeT?= =?us-ascii?Q?jL6FsnxA5Dh5mNiw7KFfofVBN8yGpOvZPPXFAEdp15aaKC5cjuymEE5Zjkeg?= =?us-ascii?Q?4x9RlSqUscLUDEQ7dGJmZa2kpEvW4D0i/StIxoOleQgCLrTIgGzj9iAG32S1?= =?us-ascii?Q?XBPKTV2z4Y3uPl5YFtRGeDCF+evsfAB/W83OCrEWSP72bP24DhB/RK4+xHuj?= =?us-ascii?Q?uoTN5vGoYkVDVcbzUgx5G51Tc9f3tEBTb5k55PgDrZ+zYf3RMFxi2U0W2d9H?= =?us-ascii?Q?WZnMdEvxnx0TaCg/Vl41AP96s/4XIsJqDTL3Qsf4Jc1QgvuxtXpO/rLfGE2W?= =?us-ascii?Q?Q3SL2E/Bud513vjDPaMXuW9KS5E3mF5j6q5xGwNgrTS/Z9QEcfdXWOXlEosU?= =?us-ascii?Q?o7J/Vp0GmTO2N6uQPGVmYvejC7MaokWmggYBn6Tv0flXGePqg5tvtDw/p+rb?= =?us-ascii?Q?mykXchkVwtK8gZE6pbi3rWBwmhdFLlXCOJIHKtIQkVIBgH4fHsdma5y5RsNu?= =?us-ascii?Q?JwlWplKIWzvDN1M95RMMZR38eKPUjCONW9anJrP2SrXcfEJp1KoopbNw0Qov?= =?us-ascii?Q?fWiZNyuJrUnwFIZhXPsZuMxqoVBmPx3w3dirkd0mtsait3llIJuvILDM38CB?= =?us-ascii?Q?iH1UPXRRdviZO/S5si9xomSwtiwVARtXN0b1tSxSTd0cR9E6/0M+T9+oJabP?= =?us-ascii?Q?6t+GO6ooigW+lNhfzev+sZJZa4Y+2I+af6x6h2LgbjGOslg2eXEHj6GL9DVR?= =?us-ascii?Q?TECdWC/C6BR9EHLLRwyCN7klu5kxtuGj83uaAdNgq1wW+SL2zV8uDqoOGOjl?= =?us-ascii?Q?KtliyB0XgZmRHpnFc6fSwWzjqxvBHKTHPuKUemNqNQb1637QhYx/0i1V83Yu?= =?us-ascii?Q?uK7H4VE5hfliseyJ95AIhIarO3eWT1Xwptr0wKdaeijCQxYsk5LtE5wIhuxB?= =?us-ascii?Q?I6BnmUutbsDv4jzEg1lGZ1zHOyvrvip7KmfUw9RPzHr/dadars/63Sobv02H?= =?us-ascii?Q?i/XWrhRxBsIpIX7happu9M+SH4dmveQs1MoytaZQ6svYLkDj3hqpGErQH4zp?= =?us-ascii?Q?DpSMNrWtmScdKIXJi2kKXTRZwTEHiFR46OIG0Y+NL9evn9yIQ2bkS2b1ieyz?= =?us-ascii?Q?sJXtqGbykPOzBik5zJqhdADEw7T0d5deePUw6MAjT/lU7vTLfzmcQVvwmeD4?= =?us-ascii?Q?/hRIcOUvX4/vyHDBul8gl8ugmY=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0967749BC1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(346002)(39860400002)(366004)(376002)(199004)(189003)(7696005)(105586002)(5660300002)(6916009)(25786009)(8676002)(6606003)(486006)(19627405001)(74316002)(71200400001)(71190400001)(54906003)(81166006)(81156014)(316002)(52536013)(6246003)(99286004)(476003)(97736004)(66066001)(11346002)(99946001)(446003)(8936002)(2351001)(76176011)(106356001)(86362001)(102836004)(53546011)(14454004)(2501003)(478600001)(186003)(26005)(68736007)(33656002)(256004)(14444005)(5640700003)(6436002)(229853002)(4326008)(6506007)(7736002)(54896002)(6116002)(55016002)(9686003)(3846002)(2906002)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB3087; 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: fEv5howgcGFE5cG6ttTxldcr3jNPar88JGmo6KXh+2AeQLUwNuqEAoX1OA3YEuy6icSHQHUeWgBr5NuUN8Vr2072J0/O+mD2CMR4vyfV3z0FndbVWJvp3bemPW3u4S5FkNSFkhoYOdDt2vqTyv+JD23pP/Eh6QOqa1x4qhnUOPoQwPwCuk4k0StzMuPrHiOmVcZ9ISVMgMnS2Q6INL5NyOeOyxAKxa59/gwZib8srI5DyHI5AWZHY0v/ub73nGrQEAvNBcB3DJtY31gMvuqgJnimS1QNIhPQ4AcCwES+Pe1T6eV/ZpmFGy4faSDFPZ05ie5XI9atLQwbcbdCeqvI9u93sI7M5O/LeqRpjzZqO5d0ZGcfTha8VZCsoTUHCkDWGZYsm0ePd/QdCt69uP3tzi+VgVaucgosKuh9S8/TPss= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: de9a2ed5-fcde-44a6-3a04-08d6a14a872b X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2019 09:11:18.5761 (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: MN2PR18MB3087 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-05_05:, , signatures=0 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 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: Tue, 05 Mar 2019 09:11:25 -0000 Hi Akhil, Did you get a chance to look into these. Thanks and regards Ayuj Verma ________________________________ From: Ayuj Verma Sent: 27 February 2019 19:03:31 To: akhil.goyal@nxp.com Cc: arkadiuszx.kusztal@intel.com; fiona.trahe@intel.com; Shally Verma; Suni= la Sahu; Kanaka Durga Kotamarthy; Arvind Desai; dev@dpdk.org; Ayuj Verma Subject: [PATCH v2 0/3] adding rsa priv key feature flag 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(-) -- 2.20.0