get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 111516,
    "url": "http://patches.dpdk.org/api/patches/111516/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220520055445.40063-33-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": "<20220520055445.40063-33-arkadiuszx.kusztal@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220520055445.40063-33-arkadiuszx.kusztal@intel.com",
    "date": "2022-05-20T05:54:37",
    "name": "[32/40] crypto/openssl: reduce rsa struct to only necessary fields",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "43d0a841a0fdf56969af361075af91a4e1ab0ec9",
    "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/20220520055445.40063-33-arkadiuszx.kusztal@intel.com/mbox/",
    "series": [
        {
            "id": 23057,
            "url": "http://patches.dpdk.org/api/series/23057/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23057",
            "date": "2022-05-20T05:54:05",
            "name": "cryptodev: rsa, dh, ecdh changes",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/23057/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/111516/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/111516/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 E3DCBA0503;\n\tFri, 20 May 2022 09:05:48 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5C25042BB0;\n\tFri, 20 May 2022 09:03:54 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 0ED6542B85\n for <dev@dpdk.org>; Fri, 20 May 2022 09:03:51 +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:51 -0700",
            "from silpixa00399302.ir.intel.com ([10.237.214.136])\n by orsmga008.jf.intel.com with ESMTP; 20 May 2022 00:03:50 -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=1653030232; x=1684566232;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=vqTrINyRK9heX0qwc1kL+T5DUoLplIpXuEsm1xlkZ3g=;\n b=ZP4hMYSheKMmAIz9WIUjPcwLcs3jPIq9WOgsS0zMC6bLM+M8vZgOPlAo\n oX5I23Cfnok9E+/m14LcydKApWYs8FDcEU0D+OEqSE1Z3rvnoLgJy368q\n xwQ8NuG9A5AZwrwo0OyVW/QyxM8hoggyGRKrXVBUsuMoHL4XNV39RfwtE\n Dn5t86awmizYgrq1CYNi1Ibmd7Kuay4q33OR8PwIWCB8JaYhbG3EWzqkS\n H8GZ1ZtBvh2JvgGhOuYAsb/TW1lOoxnxYdfqVYAWwx+1IsVnfeURpFAm8\n fKYOcrBOfLTabdqtK977QEcoQ1p9W1j58bXeahihierw3ZH0NRUy0V6Ge w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10352\"; a=\"333140464\"",
            "E=Sophos;i=\"5.91,238,1647327600\"; d=\"scan'208\";a=\"333140464\"",
            "E=Sophos;i=\"5.91,238,1647327600\"; d=\"scan'208\";a=\"599058562\""
        ],
        "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 32/40] crypto/openssl: reduce rsa struct to only necessary\n fields",
        "Date": "Fri, 20 May 2022 06:54:37 +0100",
        "Message-Id": "<20220520055445.40063-33-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": "- reduced rsa struct to only necessary fields.\nThis commit reflects changes to the asymmetric crypto API.\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n drivers/crypto/openssl/rte_openssl_pmd.c | 30 +++++++++++++++---------------\n 1 file changed, 15 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_pmd.c\nindex 6b3cf7a6aa..f5eb82ac2a 100644\n--- a/drivers/crypto/openssl/rte_openssl_pmd.c\n+++ b/drivers/crypto/openssl/rte_openssl_pmd.c\n@@ -1915,47 +1915,47 @@ process_openssl_rsa_op(struct rte_crypto_op *cop,\n \n \tswitch (op->rsa.op_type) {\n \tcase RTE_CRYPTO_ASYM_OP_ENCRYPT:\n-\t\tret = RSA_public_encrypt(op->rsa.message.length,\n-\t\t\t\top->rsa.message.data,\n-\t\t\t\top->rsa.cipher.data,\n+\t\tret = RSA_public_encrypt(op->rsa.input.length,\n+\t\t\t\top->rsa.input.data,\n+\t\t\t\top->rsa.output.data,\n \t\t\t\trsa,\n \t\t\t\tpad);\n \n \t\tif (ret > 0)\n-\t\t\top->rsa.cipher.length = ret;\n+\t\t\top->rsa.output.length = ret;\n \t\tOPENSSL_LOG(DEBUG,\n \t\t\t\t\"length of encrypted text %d\\n\", ret);\n \t\tbreak;\n \n \tcase RTE_CRYPTO_ASYM_OP_DECRYPT:\n-\t\tret = RSA_private_decrypt(op->rsa.cipher.length,\n-\t\t\t\top->rsa.cipher.data,\n-\t\t\t\top->rsa.message.data,\n+\t\tret = RSA_private_decrypt(op->rsa.input.length,\n+\t\t\t\top->rsa.input.data,\n+\t\t\t\top->rsa.output.data,\n \t\t\t\trsa,\n \t\t\t\tpad);\n \t\tif (ret > 0)\n-\t\t\top->rsa.message.length = ret;\n+\t\t\top->rsa.output.length = ret;\n \t\tbreak;\n \n \tcase RTE_CRYPTO_ASYM_OP_SIGN:\n-\t\tret = RSA_private_encrypt(op->rsa.message.length,\n-\t\t\t\top->rsa.message.data,\n-\t\t\t\top->rsa.sign.data,\n+\t\tret = RSA_private_encrypt(op->rsa.input.length,\n+\t\t\t\top->rsa.input.data,\n+\t\t\t\top->rsa.output.data,\n \t\t\t\trsa,\n \t\t\t\tpad);\n \t\tif (ret > 0)\n-\t\t\top->rsa.sign.length = ret;\n+\t\t\top->rsa.output.length = ret;\n \t\tbreak;\n \n \tcase RTE_CRYPTO_ASYM_OP_VERIFY:\n-\t\ttmp = rte_malloc(NULL, op->rsa.sign.length, 0);\n+\t\ttmp = rte_malloc(NULL, op->rsa.input.length, 0);\n \t\tif (tmp == NULL) {\n \t\t\tOPENSSL_LOG(ERR, \"Memory allocation failed\");\n \t\t\tcop->status = RTE_CRYPTO_OP_STATUS_ERROR;\n \t\t\tbreak;\n \t\t}\n-\t\tret = RSA_public_decrypt(op->rsa.sign.length,\n-\t\t\t\top->rsa.sign.data,\n+\t\tret = RSA_public_decrypt(op->rsa.input.length,\n+\t\t\t\top->rsa.input.data,\n \t\t\t\ttmp,\n \t\t\t\trsa,\n \t\t\t\tpad);\n",
    "prefixes": [
        "32/40"
    ]
}