get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/111504/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 111504,
    "url": "https://patches.dpdk.org/api/patches/111504/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220520055445.40063-21-arkadiuszx.kusztal@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20220520055445.40063-21-arkadiuszx.kusztal@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220520055445.40063-21-arkadiuszx.kusztal@intel.com",
    "date": "2022-05-20T05:54:25",
    "name": "[20/40] cryptodev: add elliptic curve diffie hellman",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "75857bc2d1ff954356f1f93c92fb8b84f80a8f39",
    "submitter": {
        "id": 452,
        "url": "https://patches.dpdk.org/api/people/452/?format=api",
        "name": "Arkadiusz Kusztal",
        "email": "arkadiuszx.kusztal@intel.com"
    },
    "delegate": {
        "id": 6690,
        "url": "https://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220520055445.40063-21-arkadiuszx.kusztal@intel.com/mbox/",
    "series": [
        {
            "id": 23057,
            "url": "https://patches.dpdk.org/api/series/23057/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=23057",
            "date": "2022-05-20T05:54:05",
            "name": "cryptodev: rsa, dh, ecdh changes",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/23057/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/111504/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/111504/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 56A4EA0503;\n\tFri, 20 May 2022 09:04:38 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E1F7C42B9D;\n\tFri, 20 May 2022 09:03:22 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 48B3B42BC1\n for <dev@dpdk.org>; Fri, 20 May 2022 09:03:21 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 May 2022 00:03:21 -0700",
            "from silpixa00399302.ir.intel.com ([10.237.214.136])\n by orsmga008.jf.intel.com with ESMTP; 20 May 2022 00:03:19 -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=1653030201; x=1684566201;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=8Pj9SQ/hEuzr45FJnI9fizaq0gRgzEA2GuJDy42G5ag=;\n b=jvIu9PKs5gibjtUt8czMVnFPW5UjPoA24a3D2KLV1mxzqMTvYf5HmWQi\n qfphaBn4ahmAiUX709gvuIHfMsTG59/X95kh1kJkGQ2DusLsNlgkWC5ru\n A8vEPrFkvoyW7ROpKzTkEizBFwubzhIYJD2haUZE1fpTiXkVd+QZ6YnRV\n wQuu90uOqWr5CrA6aMJxoIBfVHbKS7698f3vVLf8A6sN4DgBBBknh9CJ0\n TmVofqOwTQGiDXNDiQv8HcwcIFSMgkelGarGn4cGwzX1r9PtsPho6BPWV\n 1IF+VN04K6gS7qzJRs5qBckU+EGMvcukhiGpso+UPpB1nLxA2e/Ad2YHF Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10352\"; a=\"333140388\"",
            "E=Sophos;i=\"5.91,238,1647327600\"; d=\"scan'208\";a=\"333140388\"",
            "E=Sophos;i=\"5.91,238,1647327600\"; d=\"scan'208\";a=\"599058376\""
        ],
        "X-ExtLoop1": "1",
        "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "gakhil@marvell.com, anoobj@marvell.com, roy.fan.zhang@intel.com,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>",
        "Subject": "[PATCH 20/40] cryptodev: add elliptic curve diffie hellman",
        "Date": "Fri, 20 May 2022 06:54:25 +0100",
        "Message-Id": "<20220520055445.40063-21-arkadiuszx.kusztal@intel.com>",
        "X-Mailer": "git-send-email 2.13.6",
        "In-Reply-To": "<20220520055445.40063-1-arkadiuszx.kusztal@intel.com>",
        "References": "<20220520055445.40063-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 elliptic curve Diffie-Hellman parameters.\nPoint multiplication allows the user to process every phase of\nECDH, but for phase 1, user should not really care about the generator.\nThe user does not even need to know what the generator looks like,\ntherefore setting ec xform would make this work.\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n lib/cryptodev/rte_crypto_asym.h | 34 +++++++++++++++++++++-------------\n 1 file changed, 21 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h\nindex 52cb1c5c80..09edf2ac3d 100644\n--- a/lib/cryptodev/rte_crypto_asym.h\n+++ b/lib/cryptodev/rte_crypto_asym.h\n@@ -82,8 +82,10 @@ enum rte_crypto_asym_xform_type {\n \t/**< Modular Exponentiation */\n \tRTE_CRYPTO_ASYM_XFORM_ECDSA,\n \t/**< Elliptic Curve Digital Signature Algorithm */\n-\tRTE_CRYPTO_ASYM_XFORM_ECPM\n+\tRTE_CRYPTO_ASYM_XFORM_ECPM,\n \t/**< Elliptic Curve Point Multiplication */\n+\tRTE_CRYPTO_ASYM_XFORM_ECDH\n+\t/**< Elliptic Curve Diffie Hellman */\n };\n \n /**\n@@ -383,22 +385,28 @@ struct rte_crypto_dh_op_param {\n \t/**<\n \t * Output generated private key when op_type is\n \t * DH PRIVATE_KEY_GENERATION\n-\t * Input when op_type is DH SHARED_SECRET_COMPUTATION.\n-\t *\n+\t * Input for RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE\n \t */\n-\trte_crypto_uint pub_key;\n+\tunion {\n+\t\trte_crypto_uint pub_key;\n+\t\tstruct rte_crypto_ec_point pub_point;\n+\t};\n \t/**<\n-\t * Output generated public key when op_type is\n-\t * DH PUB_KEY_GENERATION.\n-\t * Input peer public key when op_type is DH\n-\t * SHARED_SECRET_COMPUTATION\n-\t *\n+\t * Diffie-Hellman public part\n+\t * For DH it is big-endian unsigned integer.\n+\t * For ECDH it is a point on the curve.\n+\t * Output for RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATE\n+\t * Input for RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE\n \t */\n-\trte_crypto_uint shared_secret;\n+\tunion {\n+\t\trte_crypto_uint shared_secret;\n+\t\tstruct rte_crypto_ec_point shared_point;\n+\t};\n \t/**<\n-\t * Output with calculated shared secret\n-\t * when op type is SHARED_SECRET_COMPUTATION.\n-\t *\n+\t * Diffie-Hellman shared secret\n+\t * For DH it is big-endian unsigned integer.\n+\t * For ECDH it is a point on the curve.\n+\t * Output for RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE\n \t */\n };\n \n",
    "prefixes": [
        "20/40"
    ]
}