From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0042.outbound.protection.outlook.com [104.47.32.42]) by dpdk.org (Postfix) with ESMTP id 4952DA48B for ; Tue, 23 Jan 2018 10:55:10 +0100 (CET) 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=v5Gus57LXPZxzCggrHEEP5USqEVD/3qQ/f44mZVDYdk=; b=czeCLioR+vBF8G1gP/gBOdqBER0Rfnd6rKq0lnSBGd1Hey0X1HwyODjdW6asIFmq0TOG7shzrE59G+oJqR+Iy+cNcZ/o2jgAqtYsR63tSCQJQdhUNaaO4YM+N/BdhXZomnJexhpGeSRr4UVHreKu1wyad6dZ+RswusVpTATwLyo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Shally.Verma@cavium.com; Received: from hyd1sverma-dt.caveonetworks.com (115.113.156.2) by CY1PR0701MB1116.namprd07.prod.outlook.com (10.160.145.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Tue, 23 Jan 2018 09:55:05 +0000 From: Shally Verma To: declan.doherty@intel.com Cc: dev@dpdk.org, pathreya@caviumnetworks.com, nmurthy@caviumnetworks.com, ssahu@caviumnetworks.com, agupta@caviumnetworks.com Date: Tue, 23 Jan 2018 15:24:22 +0530 Message-Id: <1516701263-13154-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: BMXPR01CA0004.INDPRD01.PROD.OUTLOOK.COM (10.174.214.142) To CY1PR0701MB1116.namprd07.prod.outlook.com (10.160.145.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 65528ce8-f9f3-4bd8-311b-08d562476225 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:CY1PR0701MB1116; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1116; 3:5J2iOKGeB4oSKWq2hbbvpgWchZcGyw87/4Wv49Fb7yV/bbnmXjcPGyKzz+DA1OI/hy3Y3bksE2Gn1mZr6Rj1T0W8gjsng1dt+RXsTqhhk/pDhDVO1/3QwiCDh22qKi2hAfDczIm+61PQcOGIpX1dob3L4GX5iisZ5ppilB47I1+KY5rvPZrF3lz7i9NKY12fkmykbIl2fTq6b61Dcy9/lpeHbv7hygNXjp8/I+f7LJ72Ni+ZVoMFUkFKKH4oA5on; 25:KFBrVd/HA0JibpNHe97XHhGGfef4ImqmsNA+ezGgpfQvLUhk33RsvVsWFZGjAq0PnF3nhsuazm+NDmp4VwICPZsUwZ84z8YszDSVQek4JuOnh3yXIychOfwDRBz9QaxlK1DQmNxhQ4OQfPvg4T6zy9Q+es3zaEuG7fzWfGrNpiG92mN5p/Tzj71hxlm2VcqIZRC8YA8BbdPqSbY+VUnMDit5zewxNBrDeyHvDyBTjszBkrtDABjAj/Wnj/MBl/+Z0Fkvt8ld5oW1XAV1cX0K68dWhMvpZ/hjoOCfigxU6A7ofhOr2nBZZR+c/q/lx/48FJTPdduKIsGbSZD/bLo28g==; 31:1uVU6dpZrMYzGRakG1rM9x9gU8dWGU5f0HZ+3EaoPDzbE7mCm69AUL6wdvAUZsZiSG8ybEVlO/f23ocdVJA93G89LoDivLGL8ZzpzcdCDgloDs/OHbJefuu88jmMZY3Fho7WslOGLT5IYlRZNi5R762ZDUEBSRI08J4epKuOiehain4mNg53oH6RTY4XP7ar5uEGRCIVJQtlgI8Jxu0RAn6iDitJ9nSsie5MSy5FZKM= X-MS-TrafficTypeDiagnostic: CY1PR0701MB1116: X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1116; 20:CzljfgMDIwZTbwtdZl0RQeUaZSUteZBvT/68oP3MJt5h5MhmdrOBB0sHGHsyPTuPFXmNkdJQiFWksIAhdaG6+peSldbwTuZ4kC/xkT/o7c5TGglTZZjlal16rdufKtgbH18PXHQ1KMaPL2n4ur4gOTlXJ/8/6DQlsEwPEOZ8fp/Xgc2+7Wik3N6UhObqqFq/LS9XzUBJTXP+SAyFg1lmu91ahAEs6ZPIFTgjZHVBxs+8cISBH4cowiFuFS6ViC3mOVvdBGkSWdQgeYLKKOVL3SQ92fXJ529iXbNSIA3C5vlVwuOOel0Q05JEQIbOswZIkE57jfS9HhBnV1v1nVWe84QGbUQGyKkY5YF+fVGCtTuVKLJzrDW/mm9uWFvuItZXfRfup6ZTqscdeCjfZileHsqg0WJdqVmX8IyTB3Po9ocZ2QcVDPuTVg6eKkPgqUltDivlKafTkf7jEJwcUzHJmMgKonvd2B4F8VtNSbuVAxODPw/dZzjJDN2ufYknNw7oYbEd98fdFdFc6owtHYpkkf2Ucqh+Gm8EGPxjxb3m1Y9JwJhmO4qmR/Jp69ZjSd/BATUbdPzv2Aez60JsU85O/YXKDJ0s+vS2isxqh8ak7R8=; 4:Otm3vApv3458rkF3b8pJrq0ghN/KfqlUjhKWHcVLD87sMH52gOZcF7q9XDdVjA46lvLiynX/9hk1wk+NEv6YFvhyuhBiaPtT66Hkd37XYbeNawWR4AtxEtxWidDRejEzQyCb5A2AMazNsA5ALbUnqYb9HbpofH78MbkZMeeYZl+pyMgfu2KwpbnJjTYF36L0WxH/I78kKmuDdYiyKFRYUJa0x8JTIkg2l3iq4Zscc96s9eUwZQJsDVwWeLrmptQlA404AcxMzijtQeFz0XmTyw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3002001)(93006095)(3231023)(2400081)(944501161)(10201501046)(6041288)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:CY1PR0701MB1116; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR0701MB1116; X-Forefront-PRVS: 05610E64EE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39380400002)(366004)(39860400002)(346002)(189003)(199004)(2361001)(2906002)(6306002)(50226002)(8936002)(7736002)(966005)(105586002)(68736007)(47776003)(48376002)(5660300001)(72206003)(25786009)(50466002)(36756003)(3846002)(6116002)(2351001)(106356001)(66066001)(69596002)(6666003)(81156014)(51416003)(6506007)(386003)(55236004)(81166006)(97736004)(53936002)(6486002)(6916009)(52116002)(42882006)(8676002)(4326008)(6512007)(53416004)(107886003)(478600001)(305945005)(53376002)(26005)(316002)(16586007)(16526018); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1116; 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; CY1PR0701MB1116; 23:F7ud3V8fdcKh03F7WXr/Ed8fID4HiJ7ppFZrrlk?= =?us-ascii?Q?9bsvQ7aDgJ0kpPIPUF8CXBpUvHcmI0lLrYvkKSuAAkI6pXnQWH4AUYsHyKnc?= =?us-ascii?Q?o54oGebQnCo/cAQWqXzOGcHJRCSd03rDDak+UZonKx/1UF4VSGJF4biTVjdi?= =?us-ascii?Q?E+ptYhIZEt1UNPhB9JLrbr6QdmDQdgMQffprucWagrscND4FGr5HTQ84FUOG?= =?us-ascii?Q?YY6DlgCr1Dkj+wToz2O0WSI5Eb40TRB/HyFftmDaGZdy6wduSYLq6zt0qdYC?= =?us-ascii?Q?Aeb2XuMQO1ujS5AbRh8MtF5TaB7/AiyM1A1600y90PMdDcFwHt991FKhPyN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hae9iQsHuBxfYcWmeyQ//3RFep?= =?us-ascii?Q?hNvmjLS89Vw4yokCqtoI=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1116; 6:agXhqhZq11D7KXcQ0M04/jAy1VOLIgUmbNo6Mwk490ydRL4ShtGQAV0zbm4luCKre/DO46DUYsHOO0rFoTrZlLkkY6zKhWxAZWBeAjdvHbse72IiOj3KHVnbWKHzT58ieRhG/UsbQErEUozHVb5LiyuBXCDwgtugy7T+c6sSnOXpoYdOftVxcz6Sm7v+klB7AUYR5A+2B7I9gyG1UjghI+QRAiq27RsASpYp3Z22vi5LXYWB7U2rR8pf/ycTDdaqauHv/rURzg81jooPB3mGIeI6MPxU3YOPeD7r37jXADH/z9+a+nB7Gia5NyiBRPOlrw71kAeQZmm9V4Yb14vlYk5z/2N3k6rdRbVWGx7ijx0=; 5:FevmrnZ2m5vU5HzG9UwX9Am1Hb82Id/8G9dcOE2XsuIbhl1OXVf1HOQtBgBBsfqzh5diaSeK30DAG30yZjC6k8ZKR71co4sUujl1Y4zkWgnHC91qtbbX/uKdUI95uhGxt8IXSL3jLnw9WkPMlP2be153DVAQmjGTN01XGKzycAo=; 24:Nme8jHRJIdE4Ew1eLKMbgM2jHl5hK6ISjFjO+QF5VpuMeO/wRZcd/QfmsXLQViUweO8HXFfDr3H1eFOMuEE4NdAsVEOfo3M71qkhIIMZk3o=; 7:uedIct1WwkKZjU/3Pk5WY16nihh5WUpSjfL2EduMUZ0Gc+J6o0kM6klc69L/Hz4YRwdyM8FBnA5/CWk5rxxbtWLomYnt8JKMmOGdydDQ3igbuoVhTUkN2pKfkmCKagzoMSxZksP6lHLlBT83+GVSNnMxL8wgHOGMQGaCc6ofoiL4rFEOaMu0/2f1GeIvDxfqPJFrF1d9PT7tVvPw8+A81UdSpkCu2jsMoxvv1XGLIPBOehmGqvGAu2fw+gRP1KIS SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2018 09:55:05.0817 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 65528ce8-f9f3-4bd8-311b-08d562476225 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1116 Subject: [dpdk-dev] [RFC v1 0/1] 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, 23 Jan 2018 09:55:10 -0000 This an RFC API specification to add support for asymmetric crypto in DPDK cryptodev library. It is derivative of earlier submitted RFC v2 patch series by Umesh Kartha (umesh.kartha@caviumnetworks.com): http://dpdk.org/dev/patchwork/patch/24245/ http://dpdk.org/dev/patchwork/patch/24246/ http://dpdk.org/dev/patchwork/patch/24247/ and *inclusive of review comments on RFC v2* with few minor changes to asymmetric xform structures. Current list of proposed asymmetric algorithm is as per RFC v2. This spec primarily addresses last open review comment regarding queue pair management among different kind of crypto devices. Since, crypto devices can be of different capabilities, such as: - can perform symmetric only operations, - can perform asymmetric only operations, - can do both but may have different ways to manage queue pairs, such as, may have dedicated queues for these or may use all qp to input any kind of operation. Thus, it become key design question how to enable PMDs to do crypto operations with such different capabilities and queue arrangements. So, current specification focuses on defining device capabilities and PMD operations so as to encompass all kind of anticipated crypto devices and intend to invite discussions and feedback on same. Current version only complete with RSA algorithm and associated params. Others algorithm capability and params will be added subsequently. Shally Verma (1): lib/cryptodev: add support of asymmetric crypto lib/librte_cryptodev/Makefile | 1 + lib/librte_cryptodev/rte_crypto.h | 39 +- lib/librte_cryptodev/rte_crypto_asym.h | 949 +++++++++++++++++++++++++ lib/librte_cryptodev/rte_cryptodev.c | 287 ++++++++ lib/librte_cryptodev/rte_cryptodev.h | 358 +++++++++- lib/librte_cryptodev/rte_cryptodev_pmd.c | 19 +- lib/librte_cryptodev/rte_cryptodev_pmd.h | 154 +++- lib/librte_cryptodev/rte_cryptodev_version.map | 21 + 8 files changed, 1811 insertions(+), 17 deletions(-) create mode 100644 lib/librte_cryptodev/rte_crypto_asym.h -- 1.9.1