get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 111831,
    "url": "http://patches.dpdk.org/api/patches/111831/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220525155324.9288-8-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-8-arkadiuszx.kusztal@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220525155324.9288-8-arkadiuszx.kusztal@intel.com",
    "date": "2022-05-25T15:53:17",
    "name": "[v2,07/14] cryptodev: add elliptic curve diffie hellman",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e9e6c6cdd1fcb7e96f14f97a4a68e86dbed527b7",
    "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-8-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/111831/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/111831/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 95E04A0555;\n\tWed, 25 May 2022 19:04:08 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0BDAE40151;\n\tWed, 25 May 2022 19:04:05 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id A6E2D40143\n for <dev@dpdk.org>; Wed, 25 May 2022 19:04:03 +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:21 -0700",
            "from silpixa00399302.ir.intel.com ([10.237.214.136])\n by FMSMGA003.fm.intel.com with ESMTP; 25 May 2022 10:01: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=1653498243; x=1685034243;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=KTBPe5IfrIpntqSCc+CcQf/Sy8bTH/+qrtcnxf3NYEE=;\n b=Fnf2szM43KQgwSZPN+9bTM8Zbf7kcdiB4hWi5eer5vcRBAdTi6s3xp9x\n O2l5CFJ2rxuNtd37Y6hko8ygWCGyrK7taDbKxhoPnOaWJf123bFpXeoaG\n Ia9Jolcw3wZ3+/WelJNezSTZt1EYnOGKgiAVjqMCYvd/os0Jr0x+lIiW8\n 3/j31ZeYV3aIPaBtyrFG9C6Ypr6LmKyxvykYa5EQVQ4LkM4GEfJwGo/bC\n +WSuVpqTX4EdjbiJxtlUL/Z6b9hcARRToszAwN5AzrCxae7IMKGKh8RLk\n z75dOfpTtGjxuxaZxfY/LxsEDOuwKPQsk5/YQJJFlAXvhgvHz2tNSBAiu Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10358\"; a=\"273596347\"",
            "E=Sophos;i=\"5.91,250,1647327600\"; d=\"scan'208\";a=\"273596347\"",
            "E=Sophos;i=\"5.91,250,1647327600\"; d=\"scan'208\";a=\"664502358\""
        ],
        "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 07/14] cryptodev: add elliptic curve diffie hellman",
        "Date": "Wed, 25 May 2022 16:53:17 +0100",
        "Message-Id": "<20220525155324.9288-8-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 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 | 38 ++++++++++++++++++++++++++++++++++++++\n 1 file changed, 38 insertions(+)",
    "diff": "diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h\nindex ffb0e8ed17..0dab7c0593 100644\n--- a/lib/cryptodev/rte_crypto_asym.h\n+++ b/lib/cryptodev/rte_crypto_asym.h\n@@ -112,6 +112,8 @@ enum rte_crypto_asym_xform_type {\n \t/**< Elliptic Curve Digital Signature Algorithm */\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 \tRTE_CRYPTO_ASYM_XFORM_TYPE_LIST_END\n \t/**< End of list */\n };\n@@ -407,6 +409,42 @@ struct rte_crypto_dh_op_param {\n };\n \n /**\n+ * Elliptic Curve Diffie-Hellman Operations params.\n+ * @note:\n+ */\n+struct rte_crypto_ecdh_op_param {\n+\tenum rte_crypto_asym_ke_type op_type;\n+\t/**< Key exchange operation type */\n+\trte_crypto_uint priv_key;\n+\t/**<\n+\t * Output - generated private key, when xform type is\n+\t * RTE_CRYPTO_ASYM_KE_PRIVATE_KEY_GENERATE.\n+\t *\n+\t * Input - private key, when xform type is one of:\n+\t * RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATE,\n+\t * RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE.\n+\t *\n+\t * In case priv_key.length is 0 and xform type is set with\n+\t * RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATE, CSRNG capable\n+\t * device will generate private key and use it for public\n+\t * key generation.\n+\t */\n+\tstruct rte_crypto_ec_point pub_key;\n+\t/**<\n+\t * Output - generated public key, when xform type is\n+\t * RTE_CRYPTO_ASYM_KE_PUBLIC_KEY_GENERATE.\n+\t *\n+\t * Input - peer's public key, when xform type is\n+\t * RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE.\n+\t */\n+\tstruct rte_crypto_ec_point shared_secret;\n+\t/**<\n+\t * Output - calculated shared secret when xform type is\n+\t * RTE_CRYPTO_ASYM_KE_SHARED_SECRET_COMPUTE.\n+\t */\n+};\n+\n+/**\n  * DSA Operations params\n  *\n  */\n",
    "prefixes": [
        "v2",
        "07/14"
    ]
}