Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/111833/?format=api
http://patches.dpdk.org/api/patches/111833/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220525155324.9288-10-arkadiuszx.kusztal@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20220525155324.9288-10-arkadiuszx.kusztal@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220525155324.9288-10-arkadiuszx.kusztal@intel.com", "date": "2022-05-25T15:53:19", "name": "[v2,09/14] cryptodev: add asym op flags", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f09f810328996b7eb3e5f85f66221922ae7a5a3a", "submitter": { "id": 452, "url": "http://patches.dpdk.org/api/people/452/?format=api", "name": "Arkadiusz Kusztal", "email": "arkadiuszx.kusztal@intel.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220525155324.9288-10-arkadiuszx.kusztal@intel.com/mbox/", "series": [ { "id": 23159, "url": "http://patches.dpdk.org/api/series/23159/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23159", "date": "2022-05-25T15:53:10", "name": "cryptodev: rsa, dh, ecdh changes", "version": 2, "mbox": "http://patches.dpdk.org/series/23159/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/111833/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/111833/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3C3F1A0555;\n\tWed, 25 May 2022 19:04:25 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 01A7642B75;\n\tWed, 25 May 2022 19:04:20 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 5F9CD4281B\n for <dev@dpdk.org>; Wed, 25 May 2022 19:04:18 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 May 2022 10:01:24 -0700", "from silpixa00399302.ir.intel.com ([10.237.214.136])\n by FMSMGA003.fm.intel.com with ESMTP; 25 May 2022 10:01:23 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1653498258; x=1685034258;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=jnBUoqg83LUVjoejJBLBna+SguSLOuLWIeDdo9yGuK0=;\n b=inKzywviiTtGIP3pYvG6CWO1HgNrpYtIXqiA79iJ8VK9Wktqtz+Br+q1\n queIqJcmZ5a7ShLG/bqOUywQu2KxUs8VmGIFg0Xl2Pdbh8jDqvDbvFBao\n nahV1JL1qMxDkjZOaXD3G5WqiHyCPO7rvbnhu0GJzbpFDd84ZkLFpQOgI\n 6sVlauz+KCEGrQt7plb0biS0ujhgH0zHsC4kW2UGGVgOv0lEOEHWKDRmA\n bKVW/oDxJ6VpTkwy7BnmH9e7Rgg/4d7CMdaU/zIk8uXT4nMdWQI/XW11K\n OrxFASBR1lglj4byl+ns8S0xYdV9IwNPAS3M0tVDhJQg5w7fF3/KX2uBR Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10358\"; a=\"273596433\"", "E=Sophos;i=\"5.91,250,1647327600\"; d=\"scan'208\";a=\"273596433\"", "E=Sophos;i=\"5.91,250,1647327600\"; d=\"scan'208\";a=\"664502391\"" ], "X-ExtLoop1": "1", "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>", "To": "dev@dpdk.org", "Cc": "gakhil@marvell.com, roy.fan.zhang@intel.com,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>", "Subject": "[PATCH v2 09/14] cryptodev: add asym op flags", "Date": "Wed, 25 May 2022 16:53:19 +0100", "Message-Id": "<20220525155324.9288-10-arkadiuszx.kusztal@intel.com>", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20220525155324.9288-1-arkadiuszx.kusztal@intel.com>", "References": "<20220525155324.9288-1-arkadiuszx.kusztal@intel.com>", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "- Added flags to rte_crypto_asym_op struct.\nIt may be shared between different algorithms.\n- Added Diffie-Hellman padding flags.\nDiffie-Hellman padding is used in certain protocols,\nin others, leading zero bytes need to be stripped.\nEven same protocol may use a different approach - most\nglaring example is TLS1.2 - TLS1.3.\nFor ease of use, and to avoid additional copy\non certain occasions, driver should be able to return both.\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n lib/cryptodev/rte_crypto_asym.h | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)", "diff": "diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h\nindex 3eafaecbbe..1a57c0c532 100644\n--- a/lib/cryptodev/rte_crypto_asym.h\n+++ b/lib/cryptodev/rte_crypto_asym.h\n@@ -75,6 +75,19 @@ struct rte_crypto_ec_point {\n \t/**< Y coordinate */\n };\n \n+#define RTE_CRYPTO_ASYM_FLAG_PUB_KEY_NO_PADDING\t\tRTE_BIT32(0)\n+/**<\n+ * If set to 1 - public key will be returned\n+ * without leading zero bytes, otherwise it will be\n+ * padded to the left with zero bytes (default)\n+ */\n+#define RTE_CRYPTO_ASYM_FLAG_SHARED_KEY_NO_PADDING\tRTE_BIT32(1)\n+/**<\n+ * If set to 1 - shared key will be returned\n+ * without leading zero bytes, otherwise it will be\n+ * padded to the left with zero bytes (default)\n+ */\n+\n /**\n * List of elliptic curves. This enum aligns with\n * TLS \"Supported Groups\" registry (previously known as\n@@ -589,6 +602,8 @@ struct rte_crypto_asym_op {\n \t\tstruct rte_crypto_ecdsa_op_param ecdsa;\n \t\tstruct rte_crypto_ecpm_op_param ecpm;\n \t};\n+\tuint16_t flags;\n+\t/**< Asymmetric crypto operation flags */\n };\n \n #ifdef __cplusplus\n", "prefixes": [ "v2", "09/14" ] }{ "id": 111833, "url": "