From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0070.outbound.protection.outlook.com [104.47.42.70]) by dpdk.org (Postfix) with ESMTP id D45F42B96 for ; Tue, 27 Mar 2018 14:55:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=gtZZ2fJA+DWWubYi5zN7xPWhYt0Ba4k1+QkNl31GLK8=; b=ILxIbR3nhOAro7rstUBmpeDPUQ0A+M7OrqbDch1pNzIOsVawiUMhcaXfUEDryetHZQvY7CsUy46PHpaqx3tNGzrLomHchVKu4H6LQCN85x9OjGX0sm2x1vERwSjVyCakquMS5QeVf6pWRRwiCghF/NZ2dCmo8AEXZrPV1Tjj6ck= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Shally.Verma@cavium.com; Received: from hyd1sverma-dt.caveonetworks.com (115.113.156.2) by MWHPR0701MB3644.namprd07.prod.outlook.com (2603:10b6:301:7d::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Tue, 27 Mar 2018 12:54:58 +0000 From: Shally Verma To: pablo.de.lara.guarch@intel.com Cc: declan.doherty@intel.com, fiona.trahe@intel.com, pathreya@caviumnetworks.com, ssahu@caviumnetworks.com, agupta@caviumnetworks.com, dev@dpdk.org Date: Tue, 27 Mar 2018 18:24:38 +0530 Message-Id: <1522155281-16329-1-git-send-email-shally.verma@caviumnetworks.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: MA1PR01CA0089.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::29) To MWHPR0701MB3644.namprd07.prod.outlook.com (2603:10b6:301:7d::37) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c98b4274-6f9c-4244-3359-08d593e1f374 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:MWHPR0701MB3644; X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3644; 3:9Pca9Chm9/VuMUJcDEf0JLNzGOfk7aHMIq+PYUlYnEQuyqAybX0GPBlvIo7FaxK2O0vc6i6pjmHSrBL2ax2D/UjFiApChBT2y0jJtOsjzB4SzvZeZz8rZDaz0ekD4SxRZpG4c4ibrLC1wESlucgPVWKjo8N4GGaHuk5GOuTDHuhwIK8/z9PpLCrIKB+CWar3H2Cio1g1gOaaQjp44ecUS00/LGAi5HDrf6pFVqLsWpSjG1ZA7uo6sm0v+BKBksj4; 25:Shxpl34RAJgZhXPApjOqXxnA2C+qxVV7IV7Z4W+owqdEWJxpsM3KCRulkDTJdN/+oub7ZdrAmSrn/OY+Hfz/6kXjLXzU1IAaaRNBvvQwFr9rFvEgVf6Y3Ro3vzJwWpX8EoIQ6zK+QZr7RqVc8PH0Vk+m3XW4DKZIXzOHPtYz3PoOFK+AMzKplO71LTlVkkYlka7NT5T1rT5JcwOGq2v83VLLw4kItUTe6BV5odKDpBt6N2WLBzc9L4FXUj0ec1SLhXexbCKrFYfZzJr2weQgxW/8PwqbMT3/6pAGPZwnxPDMr6Sa95cL9iAZLWxlcJp31Xxn9JeBURdKYmBNzsYGUg==; 31:bTYhRH9bVwPgiiQW94bw/d0gCWFUO8KtkVa6UBRzlm9LZX+g3YDKE1+ILzP98ndkICmo9ogjyWs9ytlT393kbw7fkHZxtCFk0NIO4j5Gm8l0z6iOFbKNeRQwVJE3rbbqodzrFovD2T7qR0n6LFSkTaFwJzi3U1MXqOQqy6hggaf/aPb3I3v0z3Tmkkx0QoPqT7IRmuRQ2rAS7z2MhA1G8AnZP7Mb2r5gx6Ay64suKHU= X-MS-TrafficTypeDiagnostic: MWHPR0701MB3644: X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3644; 20:S+9QlroaErmLyhGW5YFjdQR4GAlpSJdMs/M5g+TMIPb4UL1dtGdWBOJiF4FWlmYVpV4GJO6ZLetMFtgX1y7P9pF2IgGp4QXfURMZWP/0hOYU5k0yZexBDwcoeQ/Xbs2dk1gw8osCNqDHL4ZZR/oqD3Sxse6fSoOamgrhkgJKzrZ/dU56kQjK4UXYRW8dENJd0n0oNO4ANH6xICaKI4UkYtq8+zjZBEs1SArFGunduQ/n1XMA0txG3Tb6sKFq05RHtf4GofaFcLHo2LoVIkVRNMlV+aKimi3TW1C3jRiRWtfyOFczVVtvQeYueO0XxkNxFEPnxowpZa7ytJ5sTd2/PoFYhezVNkszBl5FFP+ap/oIlGa9urt9ph6/BlPiWolnle2bhzhoKyspphV2jri3JnIeWcBnApT5S0O+LwtXpWbkLH4iEa9QPFTTuE7aOpC3DUq5QcrZFiQhAcYiPioAW67LpEfr1hXcUZx4apOfoVqb6GgvXYv+wxNfBOTiCALdIX+ONqHAR0uWVVweCdmc14LRrb8y8Q837IfZ3pQL7a9KIachJuegEMio3y4hl/hbWlTGlFORGjdDoccXZslz4ccximrn/kHcmlN7HKphqO4=; 4:zBKknQmLDds7UfP1aUML+t8N6NP6LhmuAfit2Oauyu0D7SylXjXuzjR5tBsspqxZfFjkTzKEIL9UuDML3vMYGcHpLl6xoL+47HHuQpcdl0XzFrlYRK30iuYSQpP4lLC/II5hNkPwbTsT8cD/Ce6DuUJqhScTOsUPx1q7jrjpW6QWaBMRvQirQfm1zSfgGcwgzw6AwX/lkDNthZRH8iGXDZ0w00hlCIlSt2fwmRHWMXrPFOX4XtJ818GnA63SkYlwXhJAn4D2J+ufNy91jkt9vg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231221)(944501327)(52105095)(93006095)(6041310)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:MWHPR0701MB3644; BCL:0; PCL:0; RULEID:; SRVR:MWHPR0701MB3644; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39850400004)(396003)(376002)(39380400002)(189003)(199004)(55236004)(36756003)(81166006)(16586007)(68736007)(5890100001)(81156014)(50466002)(6666003)(106356001)(6916009)(53416004)(8676002)(5660300001)(478600001)(966005)(105586002)(2906002)(72206003)(1720100001)(50226002)(4326008)(3846002)(6116002)(69596002)(48376002)(53376002)(8936002)(2361001)(316002)(2351001)(6306002)(97736004)(6512007)(26005)(305945005)(42882007)(2616005)(16526019)(186003)(6486002)(47776003)(7736002)(956004)(25786009)(53936002)(386003)(6506007)(51416003)(486005)(52116002)(476003)(486005)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR0701MB3644; H:hyd1sverma-dt.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR0701MB3644; 23:RvruFBAvuA4jvhUPVtzpLhuDi8jnkTNj30ww2sK?= =?us-ascii?Q?VU8XiZJnbbHvfqRSAf4rI6F1wz6tiueelBvLQOir6rSKCYuoedApihOZ3TRo?= =?us-ascii?Q?9qVbhN3j9rWNpHydZEShPK7ws8xyD2XJABHOlOp3YCqvITtTNgwcT528VgLe?= =?us-ascii?Q?BAmvVp8UU9Mh68yKfJgtrNrziWK8tnQVsCO/cgNAP3EyWw/u7kUQDgiIeKXW?= =?us-ascii?Q?vVC6HL9JvAmEykVwGtSmvvsFNUBorJScEFpOVVIceYnSyrmb+rMQvotbX7KS?= =?us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jKjIoymyvM/gFVeaU2V11x86pYXe6qR2lDs/+hptwMjZ?= =?us-ascii?Q?LGoGreW0J2rtsXrgbt26qn6+mPl1tVsluG2iVMs6LkTwidhZy/IxYc3mVEVn?= =?us-ascii?Q?4aD5vX9faq+H8qV2glFAP9X3AUvUdw+EPeYFpANnQw71TE9HWpDzr7lWXz5w?= =?us-ascii?Q?r5YkiKdn4RTU8p7xjVgpp2KRD4I3DKK3OQ+iJIhRo6jPh0oAmEsOWIVDrA29?= =?us-ascii?Q?z5bSosdZrs7g8hBNMK7Bm3v7/VXQ=3D?= X-Microsoft-Antispam-Message-Info: k8zibaMzMkO2gYQk5Vqmw2RDkD80We/DSBDf/US4Trleu1NpNSap+ETu2EwLjXVYxrWa2vlURSM97C2qiE5/KIQF3aL6u7Fwi+rBv2JGD+satrc1HmIWuceru6v8m+LQ5wd52lAWicsOPVkDMqjDDqoH7uacOjBooPcI6+WUvE7z0dEzQauE6t+/0wBI4jyf X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3644; 6:/4QkUDm2bosVa7KoEzTJwhgX8FcPQMAeMMDJLmOIDNqsDnGFsFfoN9+zKPpXZaCX1nA7IW9nofdISNyLHGufvEkcoikfgCVADekjeQF5ydPfqhSzyTj/chhACtrafQwGAaJMbTR3NO+oCIOsclbbSqBAFNLJPmpwTKglcQm0gUYWJ04kBXoh13RidtSSFB24cAXBFptlWaKAxAt0BJFmsSdCWifnnwf1tzsvvBXpku2Ok+dOdMbGWy0Flu2EPQfZun/klZJgnNhbtx70NQ5vl/Cp8ILvB8sXJGrxXsY0KJwDze7/E8AczrCy2oL8z6t7gNevcRRgLCJMWe89u1GIE5U0NmrjWm/rrrQi5MStGw4OchVquTzWPgZbAV/D68OTgzeSi2svv1RJddA3g4pZlPMVy+YLVANUdjlpV0i5w96fyU7aP+yQYoBz0IrDRp+FWoE0w6ZYANnqxe7f3nJOqQ==; 5:U3p+46y1KemnI2FEXPWd30P9ur1Svz3lPaten4XHf3VwS1HSdK9dqc9NpmAL0ZZVfWahlD1wyzN3sxPtNn9bBXHEd4BNYV48pOUJ+7samMr9ndpDqs5smTfwRDB01k35gG8qJ4ErRypOsKNNoE1BPu6AJUf3dcwWpAgiXq+EO0Y=; 24:lac5ThCet5NMzWVmNOZxsjGoJe5JmbSn8ZDHb++LkLqAKrk3b6ZujPiKsHxxrluAYWUGK6cR0bQpaxvU/XZWrex4vIDTRASKQJHaLAzt6KE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3644; 7:Qy6IGiakvCwkLUKU9mXkVYbwtDZMk3j5PTjZqf1OnTZ5/3vy1pmXHsH/yO7mW06VGYrBd/6HIB1gW6/442EPEB1K1rtNG+r3c38940iAOUgt+GHou1NjjL9+FLF+vhQgevWVkmu01ugjTisI7q0uBqyfo5oZnDDrN/CE786NDkH2xfHoduLcg3fJKTxUv2xouYr9/0Z5glujsMUrBOkQig+rdre/EY1Ptwftu3ftqDbIynxVwRConYzfxtiOKFsV X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:54:58.2790 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c98b4274-6f9c-4244-3359-08d593e1f374 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR0701MB3644 Subject: [dpdk-dev] [PATCH v1 0/3] lib/cryptodev: add support of asymmetric crypto 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, 27 Mar 2018 12:55:03 -0000 This patch series add support for asymmetric crypto API specification in DPDK librte_cryptodev library. It is based on review discussion on RFC v1 patch http://dpdk.org/patch/34308 Key changes from RFCv1 include: - removal of dedicated sym and asym qp setup, - remove asym qp count and attach/detach_session apis - re-org xforms params for deffie-hellman to allow public key and optional private key generations - move elliptic curve changes into another separate patch/patch series Todo: - add elliptic curve support - rename of existing session_configure/clear APIs to sym_session_configure/clear/init APIs This patch series is divided in to 3 patches: 1. lib/cryptodev: add support for asymmetric crypto op in cryptodev Extend librte_cryptodev for asymmetric op pool and sessions create/destroy and other associated PMD ops 2. lib/cryptodev: add asymmetric crypto capability in cryptodev Extend capability in librte_cryptodev for asymmetric capability and associated APIs 3. lib/cryptodev: add asymmetric algos in cryptodev Add new rte_crypto_asym.h defining supported asymmetric algos(xforms) and associated ops structures RFC v1 patch http://dpdk.org/patch/34308 is further a derivative of earlier reviewed RFC v2 patch series: http://dpdk.org/dev/patchwork/patch/24245/ http://dpdk.org/dev/patchwork/patch/24246/ http://dpdk.org/dev/patchwork/patch/24247/ Shally Verma (3): lib/cryptodev: add support for asymmetric crypto op lib/cryptodev: add asymmetric crypto capability in cryptodev lib/cryptodev: add asymmetric algos in cryptodev lib/librte_cryptodev/Makefile | 3 +- lib/librte_cryptodev/rte_crypto.h | 37 +- lib/librte_cryptodev/rte_crypto_asym.h | 519 +++++++++++++++++++++++++ lib/librte_cryptodev/rte_cryptodev.c | 218 ++++++++++- lib/librte_cryptodev/rte_cryptodev.h | 186 ++++++++- lib/librte_cryptodev/rte_cryptodev_pmd.h | 58 ++- lib/librte_cryptodev/rte_cryptodev_version.map | 17 + 7 files changed, 1031 insertions(+), 7 deletions(-) create mode 100644 lib/librte_cryptodev/rte_crypto_asym.h -- 2.14.3