get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64696,
    "url": "http://patches.dpdk.org/api/patches/64696/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1579092219-15696-2-git-send-email-anoobj@marvell.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": "<1579092219-15696-2-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1579092219-15696-2-git-send-email-anoobj@marvell.com",
    "date": "2020-01-15T12:43:36",
    "name": "[v2,1/4] cryptodev: support ECDSA",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "99798ff3479f5d11added38ad05446dc279d81eb",
    "submitter": {
        "id": 1205,
        "url": "http://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.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/1579092219-15696-2-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 8135,
            "url": "http://patches.dpdk.org/api/series/8135/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8135",
            "date": "2020-01-15T12:43:35",
            "name": "add ECDSA support",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/8135/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/64696/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/64696/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 59DDDA0514;\n\tWed, 15 Jan 2020 13:44:35 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 38B301C039;\n\tWed, 15 Jan 2020 13:44:35 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id EF2311C031\n for <dev@dpdk.org>; Wed, 15 Jan 2020 13:44:32 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 00FCgofH018047; Wed, 15 Jan 2020 04:44:32 -0800",
            "from sc-exch02.marvell.com ([199.233.58.182])\n by mx0a-0016f401.pphosted.com with ESMTP id 2xhc6smyfw-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 15 Jan 2020 04:44:32 -0800",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com\n (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 15 Jan\n 2020 04:44:30 -0800",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Wed, 15 Jan 2020 04:44:30 -0800",
            "from ajoseph83.caveonetworks.com (unknown [10.29.45.60])\n by maili.marvell.com (Postfix) with ESMTP id EAC513F703F;\n Wed, 15 Jan 2020 04:44:26 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0818;\n bh=q5wotnvnOBAU+4eJ95CO2/Sbj1JmJsCvmKUwYnZbso8=;\n b=qjAnoH7ksriBakQ69jsyKW810JCqz6EfEytzzB/Jpjpi9n+Tmj0Ufx7VkRoGuxfAV4XR\n xsg0WOgjYyWwBUId5jefzt9HdEfv1b0RUVamH4VcwszuT7ETGXnaIM0CXMzVxjGMFFyk\n y2tkY2FOzqgEH/gDMmZ7YRmC3GVQGz5ksrIHfPTmyIr/VvnO+F3sNWOFAK41TYjsZfc8\n ANu/mBmM7n36CgVsxZkFngfl+FaRLwBB2y+MUHXtf4rP6hkQ1SGJWvVaMuJR6KTyXdNE\n Il+9p1gFF7xC2AMUUmy3jbC57YPXAj0gfNB384cz5huJrMqKoJfdZ7NwLJNNv5hwlX9p Og==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <akhil.goyal@nxp.com>, Declan Doherty\n <declan.doherty@intel.com>, Pablo de Lara <pablo.de.lara.guarch@intel.com>",
        "CC": "Ayuj Verma <ayverma@marvell.com>, Fiona Trahe <fiona.trahe@intel.com>,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>, Jerin Jacob\n <jerinj@marvell.com>, Narayana Prasad <pathreya@marvell.com>, Shally Verma\n <shallyv@marvell.com>, Ankur Dwivedi <adwivedi@marvell.com>, Sunila Sahu\n <ssahu@marvell.com>, <dev@dpdk.org>, Anoob Joseph <anoobj@marvell.com>",
        "Date": "Wed, 15 Jan 2020 18:13:36 +0530",
        "Message-ID": "<1579092219-15696-2-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1579092219-15696-1-git-send-email-anoobj@marvell.com>",
        "References": "<1575546206-2478-1-git-send-email-anoobj@marvell.com>\n <1579092219-15696-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572\n definitions=2020-01-15_02:2020-01-15,\n 2020-01-14 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v2 1/4] cryptodev: support ECDSA",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Ayuj Verma <ayverma@marvell.com>\n\nAsymmetric crypto library is extended to add ECDSA. Elliptic curve\nxform and ECDSA op params are introduced.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Ayuj Verma <ayverma@marvell.com>\nSigned-off-by: Sunila Sahu <ssahu@marvell.com>\n---\n doc/guides/cryptodevs/features/default.ini | 11 ++--\n doc/guides/rel_notes/release_20_02.rst     |  4 ++\n lib/librte_cryptodev/rte_crypto_asym.h     | 84 ++++++++++++++++++++++++++++++\n lib/librte_cryptodev/rte_cryptodev.c       |  1 +\n 4 files changed, 95 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/doc/guides/cryptodevs/features/default.ini b/doc/guides/cryptodevs/features/default.ini\nindex b7f9a0a..2f6c785 100644\n--- a/doc/guides/cryptodevs/features/default.ini\n+++ b/doc/guides/cryptodevs/features/default.ini\n@@ -103,8 +103,9 @@ AES CCM (256) =\n ; Supported Asymmetric algorithms of a default crypto driver.\n ;\n [Asymmetric]\n-RSA =\n-DSA =\n-Modular Exponentiation =\n-Modular Inversion =\n-Diffie-hellman =\n\\ No newline at end of file\n+RSA                     =\n+DSA                     =\n+Modular Exponentiation  =\n+Modular Inversion       =\n+Diffie-hellman          =\n+ECDSA                   =\ndiff --git a/doc/guides/rel_notes/release_20_02.rst b/doc/guides/rel_notes/release_20_02.rst\nindex 0eaa45a..2e97c60 100644\n--- a/doc/guides/rel_notes/release_20_02.rst\n+++ b/doc/guides/rel_notes/release_20_02.rst\n@@ -56,6 +56,10 @@ New Features\n      Also, make sure to start the actual text at the margin.\n      =========================================================\n \n+* **Added support for ECDSA.**\n+\n+  Added ECDSA(Elliptic Curve Digital Signature Algorithm) support to asymmetric\n+  crypto library specifications.\n \n Removed Items\n -------------\ndiff --git a/lib/librte_cryptodev/rte_crypto_asym.h b/lib/librte_cryptodev/rte_crypto_asym.h\nindex 0d34ce8..e17614e 100644\n--- a/lib/librte_cryptodev/rte_crypto_asym.h\n+++ b/lib/librte_cryptodev/rte_crypto_asym.h\n@@ -27,6 +27,13 @@ extern \"C\" {\n \n #include \"rte_crypto_sym.h\"\n \n+/**\n+ * Buffer to hold crypto params required for asym operations.\n+ *\n+ * These buffers can be used for both input to PMD and output from PMD. When\n+ * used for output from PMD, application has to ensure the buffer is large\n+ * enough to hold the target data.\n+ */\n typedef struct rte_crypto_param_t {\n \tuint8_t *data;\n \t/**< pointer to buffer holding data */\n@@ -81,6 +88,10 @@ enum rte_crypto_asym_xform_type {\n \t/**< Modular Exponentiation\n \t * Perform Modular Exponentiation b^e mod n\n \t */\n+\tRTE_CRYPTO_ASYM_XFORM_ECDSA,\n+\t/**< Elliptic Curve Digital Signature Algorithm\n+\t * Perform Signature Generation and Verification.\n+\t */\n \tRTE_CRYPTO_ASYM_XFORM_TYPE_LIST_END\n \t/**< End of list */\n };\n@@ -319,6 +330,40 @@ struct rte_crypto_dsa_xform {\n };\n \n /**\n+ * TLS named curves\n+ * https://tools.ietf.org/html/rfc8422\n+ */\n+enum rte_crypto_ec_group {\n+\tRTE_CRYPTO_EC_GROUP_UNKNOWN  = 0,\n+\tRTE_CRYPTO_EC_GROUP_SECP192R1 = 19,\n+\tRTE_CRYPTO_EC_GROUP_SECP224R1 = 21,\n+\tRTE_CRYPTO_EC_GROUP_SECP256R1 = 23,\n+\tRTE_CRYPTO_EC_GROUP_SECP384R1 = 24,\n+\tRTE_CRYPTO_EC_GROUP_SECP521R1 = 25,\n+};\n+\n+/**\n+ * Structure for elliptic curve point\n+ */\n+struct rte_crypto_ec_point {\n+\trte_crypto_param x;\n+\t/**< X coordinate */\n+\trte_crypto_param y;\n+\t/**< Y coordinate */\n+};\n+\n+/**\n+ * Asymmetric elliptic curve transform data\n+ *\n+ * Structure describing all EC based xform params\n+ *\n+ */\n+struct rte_crypto_ec_xform {\n+\tenum rte_crypto_ec_group curve_id;\n+\t/**< Pre-defined ec groups */\n+};\n+\n+/**\n  * Operations params for modular operations:\n  * exponentiation and multiplicative inverse\n  *\n@@ -372,6 +417,11 @@ struct rte_crypto_asym_xform {\n \n \t\tstruct rte_crypto_dsa_xform dsa;\n \t\t/**< DSA xform parameters */\n+\n+\t\tstruct rte_crypto_ec_xform ec;\n+\t\t/**< EC xform parameters, used by elliptic curve based\n+\t\t * operations.\n+\t\t */\n \t};\n };\n \n@@ -516,6 +566,39 @@ struct rte_crypto_dsa_op_param {\n };\n \n /**\n+ * ECDSA operation params\n+ */\n+struct rte_crypto_ecdsa_op_param {\n+\tenum rte_crypto_asym_op_type op_type;\n+\t/**< Signature generation or verification */\n+\n+\trte_crypto_param pkey;\n+\t/**< Private key of the signer for signature generation */\n+\n+\tstruct rte_crypto_ec_point q;\n+\t/**< Public key of the signer for verification */\n+\n+\trte_crypto_param message;\n+\t/**< Input message digest to be signed or verified */\n+\n+\trte_crypto_param k;\n+\t/**< The ECDSA per-message secret number, which is an integer\n+\t * in the interval (1, n-1)\n+\t */\n+\n+\trte_crypto_param r;\n+\t/**< r component of elliptic curve signature\n+\t *     output : for signature generation\n+\t *     input  : for signature verification\n+\t */\n+\trte_crypto_param s;\n+\t/**< s component of elliptic curve signature\n+\t *     output : for signature generation\n+\t *     input  : for signature verification\n+\t */\n+};\n+\n+/**\n  * Asymmetric Cryptographic Operation.\n  *\n  * Structure describing asymmetric crypto operation params.\n@@ -537,6 +620,7 @@ struct rte_crypto_asym_op {\n \t\tstruct rte_crypto_mod_op_param modinv;\n \t\tstruct rte_crypto_dh_op_param dh;\n \t\tstruct rte_crypto_dsa_op_param dsa;\n+\t\tstruct rte_crypto_ecdsa_op_param ecdsa;\n \t};\n };\n \ndiff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c\nindex 89aa2ed..0d6babb 100644\n--- a/lib/librte_cryptodev/rte_cryptodev.c\n+++ b/lib/librte_cryptodev/rte_cryptodev.c\n@@ -173,6 +173,7 @@ const char *rte_crypto_asym_xform_strings[] = {\n \t[RTE_CRYPTO_ASYM_XFORM_MODINV]\t= \"modinv\",\n \t[RTE_CRYPTO_ASYM_XFORM_DH]\t= \"dh\",\n \t[RTE_CRYPTO_ASYM_XFORM_DSA]\t= \"dsa\",\n+\t[RTE_CRYPTO_ASYM_XFORM_ECDSA]\t= \"ecdsa\",\n };\n \n /**\n",
    "prefixes": [
        "v2",
        "1/4"
    ]
}