From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0064.outbound.protection.outlook.com [104.47.40.64]) by dpdk.org (Postfix) with ESMTP id 4DA541B00B for ; Wed, 16 May 2018 08:05:56 +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:X-MS-Exchange-SenderADCheck; bh=mRVNU5p71kR00qwi+eIZ8iA7KeFM26DDkb7ru84KyYc=; b=GnnpYfJ5KBZh8qiXIBhzyhcCCgACc0QjS6ga5Be2UNSUYsD9un6njBjnz20upqkO4Nlbiy5DDzTe2nBEavyBVI7J4WdsEOqpqNS0odNHT8Ak8t1StQUW7SC4sVQNUlpdBrC4m3jKLcS+IcKplUpQwb6Ff1um59Ff2v7nDILNEL0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Shally.Verma@cavium.com; Received: from hyd1sverma-dt.caveonetworks.com (115.113.156.2) by DM5PR0701MB3637.namprd07.prod.outlook.com (2603:10b6:4:7d::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Wed, 16 May 2018 06:05:53 +0000 From: Shally Verma To: pablo.de.lara.guarch@intel.com Cc: fiona.trahe@intel.com, akhil.goyal@nxp.com, dev@dpdk.org, pathreya@caviumnetworks.com Date: Wed, 16 May 2018 11:35:07 +0530 Message-Id: <1526450713-17299-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: PN1PR0101CA0047.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:c::33) To DM5PR0701MB3637.namprd07.prod.outlook.com (2603:10b6:4:7d::38) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM5PR0701MB3637; X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3637; 3:ngANOENBm1BMkbVgZEqnWGsLl455UCHjFh4bC5jsSNv8tY6lKFSbKBbi2J+WuIBS18pa7Hm9r9orc9Sp1bu2Ll23h6Ah1RN+ficB21UBUbvPKXO1sbUl/X4JoTAnQHxR8rqEjEIxAUKGuKnj3saczXsv1n5F4hAcmgXXEbWWw2f1pzbAkVe4XsTAxS6+19vLjJN+ORcYIoa0WRi+YOzNOuOe1HiJBdo+q8LopzQYxk336IdxlxjEJh5XMaOg6/67; 25:AFljLB3qq3qFt7LuC4+kL/hC30noAnEPIoWOgep6UQAAvSiKbb56YTY+K+Dl6SYUAJ6Mg832JA1coKStNX5RHcLLXwT+MoeobiSKQf9RvGMHzy87438hTnQPqB0E6O/d58hFiZ2lp1PfhbA9A3WYRKalEA9R78hBAMrzQt2G/fP+5758f2f92JnSizNN9GutAiSZhRF+f0SwvB3afM6SaB9wMYEL9o2erQVIxEXh2zt0J7vLUJXHyd9Wu6B3J4DRuQ333v5nlTa1c6p4C1RCs7DOBEmKNhv+c+F8zBl5wDsoRsm0bKJ3Aesz5QZS96Ls9tD5WGEl5rK/KeLaQmuKcw==; 31:K/tEWXKmPeSU+wB1WC/8tDymAegrH5TEiU+TcJU3HOnWKZLE3/xrFC430yTBYNgaC3wKC2xghrnqxr3UJnNeGb4E9924KSpmPwvCuWgmiCZ0flgz+iD0rYut7pxOJHU5L/ziPfXo1SFeEU2MnfKdB7FAN52406Q79fFX8BID+E2oSGbmYcFZYMRXLWL1wklFBieoYHTIkuRmFLTRTgN8kMaYNwktiM0CMlh+jLqlXW8= X-MS-TrafficTypeDiagnostic: DM5PR0701MB3637: X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3637; 20:Mrk/CGuLrLl+UgNolsJzhA4HCkoKgjMKpDibm1iY+ZNeo58HLkSdjKK/rsqthxb1C53mt85OmRN82R4J+Z39KUG4Tl3BJADfIIXqA1ojNzWV6ESFqkdqMhK8/Uq8AYbaoTAtplLg9/OKv1RZJg6vNUgv5+QbHd6E4URA0I9k2pLfunY7zWjznrqswFW4jET1138MHSJrpIB1cGR3lSGVZXxbLqrzXugaq0pCCqf5/jLBiejhmJM6m0dTU2eONZutTgmQRbVBCQd0pMxGP5KMuGdtFGo7BdgcEG3ybkzJ6FUFkhmzuR4ITcId0ppnqWKiVZefxC3ayU+odMRMb5aQL3y3AN2UUyRcP3Y35LwOSdKG6BruNcn0G0WUKFyy4dVlFjADX/Z6lbrdsD/sRKprgPLKI0OL/odFz6RltgsBtaRMhlXDl1Ndt4sWCQbi8GKVy8Uk+WXPx7WQ4Wx3TTohZJwBifq3zKS0U26ANpCXoPT7PcUHsmKymMOkn5zVJ0fueiTVnzXzXamPoWz3c7nOEd8d5VTO1GzE6bYKlhg4vaqRPBXwwpbemKxWbWCp71gfznE1HabAug6BhNW0PAyYxyQu/Us1qVpgxI983ZLtoto=; 4:Cniln2olpCvcraWbmdefyJBsXOAe8Jxf6aexvx0IjG+79rToAWCXkG8D2PmCnjHHevMVSy5fF8kndy1JqfZcznEI5xX02egbEJ1QRv6JV+5AnIvxEGw/F/w6Y06W+8aPCPkBV2AJ6YyosCEhvxtc8zg+EzZETqPdIpvElns6XOmVhvceAq9ESAFhDHn3QQE6JMSO7rdXm/AbsT7T0S5JKY1AuCZ+sq0Q0ki3tEzvHlhvI9hDaluJbpkzEvALJhZzBBLejCkmeMGB9naBMyU6Hg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:DM5PR0701MB3637; BCL:0; PCL:0; RULEID:; SRVR:DM5PR0701MB3637; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(39380400002)(366004)(39860400002)(189003)(199004)(53376002)(6486002)(7736002)(305945005)(42882007)(106356001)(105586002)(3846002)(6116002)(8656006)(53416004)(6666003)(47776003)(2351001)(2361001)(59450400001)(66066001)(6506007)(386003)(6306002)(6512007)(55236004)(16526019)(8676002)(51416003)(52116002)(50226002)(186003)(69596002)(81166006)(16586007)(316002)(26005)(6916009)(81156014)(107886003)(5660300001)(8936002)(53936002)(36756003)(48376002)(50466002)(966005)(25786009)(478600001)(956004)(72206003)(5890100001)(97736004)(476003)(486006)(4326008)(2906002)(44832011)(1720100001)(68736007)(2616005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR0701MB3637; H:hyd1sverma-dt.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR0701MB3637; 23:wJwHh5EQvXe/2h7nwzDHvkLTCl+tManVH37fdsy?= =?us-ascii?Q?47pRyAq8Q3tsoRkZZPtYZdO8taMj/bBkWkM9yu3PCo5IHb9IiA6UIFyciGUz?= =?us-ascii?Q?TDJMVTNpKsQUchiX9MhtQ2530/tm3tFUz5yks70gXd6VoMewe8yFBQMpDfmD?= =?us-ascii?Q?oQt0vd1EuelvA/qMFNahx3dZEyPImBd4AOMbq9FO3Sv/rQ+Jy02LQ6yVcqEZ?= =?us-ascii?Q?DEgr6vlN4G1hqTBTOStYLvNgTvmJ+wgrj0hCDlosB1iUMnufC/Hpu0nsIWeS?= =?us-ascii?Q?U7+czcYS0AsvBn5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==; 5:4/msZklB7muP2+N8xb9mmZpEjg6kksk0T3qIei5bSNDHMKdM7okBSkoT30Oa3CGo/J5Hw4kwiZ2aoXdYH2NHQllPxWQCPgcwV7gvDoh7YL38mwijUkqULxsQz6BMeb/GaRIEH9LvoHgdgwatja6TNELWkmAdrUDswWjx5SkE+Vg=; 24:SSZBzCyBLQAP1wBZJQmNHv0piapKPx3BX9zdQgf5uNitFh8NLgJQLXJo1ZfJFPyKgGpcX1JxCNfixwJTCDNDZQopff7OUgUaMJVw4z6j9Cg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3637; 7:wwi66o+zeeYerxzgToZf3jE1uW92vpjF4D7m2bd8u303EFuP2+h4uSURMK1PPD//vg9FenldEa++CEALxFTh6oiZb+sHUPiXUMpqEQdfLH1rvuraaBl+sbccVTxwm8SaA9w3Nn8VxpNljXdQOyxjVOYi0wv4wg5s961JtZQlyD16c6XXcN2KjC4Il0tVXCbIuDHwa9248LDmxsoKloa5JmaAP5qvzd6Cx1ZZsbpuLURsM2h39FepRtUWXSJLYhOh X-MS-Office365-Filtering-Correlation-Id: 6ea007ca-5f5e-4734-8f9d-08d5baf315f0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 06:05:53.2105 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6ea007ca-5f5e-4734-8f9d-08d5baf315f0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR0701MB3637 Subject: [dpdk-dev] [PATCH v3 0/6] crypto: add asym crypto support 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, 16 May 2018 06:05:56 -0000 This patch series add support for asymmetric crypto in DPDK librte_cryptodev framework along with unit test, PMD and documentation updates This patch series is divided in to following categories: 1. library patches with asymmetric API, xform and capability definitions 2. Unit test case addition 3. Openssl PMD changes with asymmetric crypto support 4. Programmer Guide updates with asymmetric description changes in v3: - correct rte_cryptodev_asym_session_create to pass void** to rte_mempool_get() and add support for private_data_size flag - remove redundant xform_type from rte_cryptodev_asymmetric_capability - added rte_cryptodev_asym_session_set/get_private_data for app to setup private data in a session as per latest dpdk-next-crypto spec - rename few APIs to be consistent with other API names - update test meson.build to include asym unit test file changes in v2: -addresses patch apply failure raised on asym crypto v1 patch series: https://dpdk.org/dev/patchwork/patch/36575/ https://dpdk.org/dev/patchwork/patch/36576/ https://dpdk.org/dev/patchwork/patch/36577/ And, unit test and PMD patch series: https://dpdk.org/dev/patchwork/patch/36928/ https://dpdk.org/dev/patchwork/patch/36929/ https://dpdk.org/dev/patchwork/patch/36930/ -- resolve git apply patch error on patch id 36575 -- resolve git apply patch error on patch id 36929 Changes in v1: - 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 TBD: - add elliptic curve support - rename of existing session_configure/clear APIs to sym_session_configure/clear/init APIs It is based on review discussion on RFC v1 asym crypto patch http://dpdk.org/patch/34308. 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 (6): lib/cryptodev: add asymmetric algos in cryptodev lib/cryptodev: add asym op support in cryptodev lib/cryptodev: add asymmetric crypto capability in cryptodev test/crypto: add unit testcase for asym crypto crypto/openssl: add asym crypto support doc: add asym crypto in cryptodev programmer guide doc/guides/cryptodevs/features/openssl.ini | 11 + doc/guides/cryptodevs/openssl.rst | 1 + doc/guides/prog_guide/cryptodev_lib.rst | 338 +++- drivers/crypto/openssl/rte_openssl_pmd.c | 377 ++++- drivers/crypto/openssl/rte_openssl_pmd_ops.c | 395 ++++- drivers/crypto/openssl/rte_openssl_pmd_private.h | 29 + lib/librte_cryptodev/Makefile | 3 +- lib/librte_cryptodev/meson.build | 3 +- lib/librte_cryptodev/rte_crypto.h | 37 +- lib/librte_cryptodev/rte_crypto_asym.h | 519 +++++++ lib/librte_cryptodev/rte_cryptodev.c | 253 +++ lib/librte_cryptodev/rte_cryptodev.h | 217 ++- lib/librte_cryptodev/rte_cryptodev_pmd.h | 58 +- lib/librte_cryptodev/rte_cryptodev_version.map | 12 + test/test/Makefile | 3 +- test/test/meson.build | 1 + test/test/test_cryptodev_asym.c | 1787 ++++++++++++++++++++++ 17 files changed, 4015 insertions(+), 29 deletions(-) create mode 100644 lib/librte_cryptodev/rte_crypto_asym.h create mode 100644 test/test/test_cryptodev_asym.c -- 2.14.3