get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 111506,
    "url": "https://patches.dpdk.org/api/patches/111506/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220520055445.40063-23-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-23-arkadiuszx.kusztal@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220520055445.40063-23-arkadiuszx.kusztal@intel.com",
    "date": "2022-05-20T05:54:27",
    "name": "[22/40] cryptodev: move RSA padding into separate struct",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "d2c52b003e9c9900d435a8e96ac319e7367e99f3",
    "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-23-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/111506/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/111506/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 32A2CA0503;\n\tFri, 20 May 2022 09:04:49 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B774242B81;\n\tFri, 20 May 2022 09:03:27 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id A8DFC42BDE\n for <dev@dpdk.org>; Fri, 20 May 2022 09:03:25 +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:25 -0700",
            "from silpixa00399302.ir.intel.com ([10.237.214.136])\n by orsmga008.jf.intel.com with ESMTP; 20 May 2022 00:03: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=1653030205; x=1684566205;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=QhDO2OOmfanrGiBba8r0ubMIqG1Ng3bfyYjpXvzCK3Q=;\n b=LkQO3WAbxk4q6ZJ7UqMWxP9SwXZxLwTgJU26p5brUAgyQW8JGZULrD7F\n AU8JTrLpseSAFLIWubeF4zOHHpjwUiT55/IGnXKVRIq5Wm+J/tV2Vg8j9\n p463vAHkddxaQ4/RrX/yE4uqRzpvFucbP8prTT9ueRqmqNcOclcYJdnf4\n XfEikoZZJNlC/2SQxfJYdbTt5MVvl4GuIy0xPC+/B81Fp+GXtdvi7R9pX\n Q/SKQRule9BwR8ylp/t9DHLEESa3oiPf1Yp41xk3heo8xjOfG2acjpxXm\n b8Icq5PqkpHnapfO6NbYMvF+eFuX2UNzxbVcVD7K0cRlO9y9EVCYVYQMc Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10352\"; a=\"333140397\"",
            "E=Sophos;i=\"5.91,238,1647327600\"; d=\"scan'208\";a=\"333140397\"",
            "E=Sophos;i=\"5.91,238,1647327600\"; d=\"scan'208\";a=\"599058410\""
        ],
        "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 22/40] cryptodev: move RSA padding into separate struct",
        "Date": "Fri, 20 May 2022 06:54:27 +0100",
        "Message-Id": "<20220520055445.40063-23-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": "- move RSA padding into separate struct.\nMore padding members should be added into padding,\ntherefore having separate struct for padding parameters will\nmake this more readable.\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n lib/cryptodev/rte_crypto_asym.h | 42 +++++++++++++++++++++++------------------\n 1 file changed, 24 insertions(+), 18 deletions(-)",
    "diff": "diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h\nindex 73ff9ff815..97c3fbee38 100644\n--- a/lib/cryptodev/rte_crypto_asym.h\n+++ b/lib/cryptodev/rte_crypto_asym.h\n@@ -201,6 +201,28 @@ struct rte_crypto_rsa_priv_key_qt {\n };\n \n /**\n+ * RSA padding type\n+ */\n+struct rte_crypto_rsa_padding {\n+\tenum rte_crypto_rsa_padding_type type;\n+\t/**< RSA padding scheme to be used for transform */\n+\tenum rte_crypto_auth_algorithm md;\n+\t/**< Hash algorithm to be used for data hash if padding\n+\t * scheme is either OAEP or PSS. Valid hash algorithms\n+\t * are:\n+\t * MD5, SHA1, SHA224, SHA256, SHA384, SHA512\n+\t */\n+\tenum rte_crypto_auth_algorithm mgf1md;\n+\t/**<\n+\t * Hash algorithm to be used for mask generation if\n+\t * padding scheme is either OAEP or PSS. If padding\n+\t * scheme is unspecified data hash algorithm is used\n+\t * for mask generation. Valid hash algorithms are:\n+\t * MD5, SHA1, SHA224, SHA256, SHA384, SHA512\n+\t */\n+};\n+\n+/**\n  * Asymmetric RSA transform data\n  *\n  * Structure describing RSA xform params\n@@ -355,25 +377,9 @@ struct rte_crypto_rsa_op_param {\n \t *\n \t * All data is in Octet-string network byte order format.\n \t */\n+\tstruct rte_crypto_rsa_padding padding;\n+\t/**< RSA padding information */\n \n-\tenum rte_crypto_rsa_padding_type pad;\n-\t/**< RSA padding scheme to be used for transform */\n-\n-\tenum rte_crypto_auth_algorithm md;\n-\t/**< Hash algorithm to be used for data hash if padding\n-\t * scheme is either OAEP or PSS. Valid hash algorithms\n-\t * are:\n-\t * MD5, SHA1, SHA224, SHA256, SHA384, SHA512\n-\t */\n-\n-\tenum rte_crypto_auth_algorithm mgf1md;\n-\t/**<\n-\t * Hash algorithm to be used for mask generation if\n-\t * padding scheme is either OAEP or PSS. If padding\n-\t * scheme is unspecified data hash algorithm is used\n-\t * for mask generation. Valid hash algorithms are:\n-\t * MD5, SHA1, SHA224, SHA256, SHA384, SHA512\n-\t */\n };\n \n /**\n",
    "prefixes": [
        "22/40"
    ]
}