get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 102723,
    "url": "http://patches.dpdk.org/api/patches/102723/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211025040004.3171175-1-kirankumark@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": "<20211025040004.3171175-1-kirankumark@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211025040004.3171175-1-kirankumark@marvell.com",
    "date": "2021-10-25T04:00:04",
    "name": "crypto/cnxk: fix bus error on RSA verify",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "177f0b3274d722a5cb9ce1ac9d123141a95143d9",
    "submitter": {
        "id": 1260,
        "url": "http://patches.dpdk.org/api/people/1260/?format=api",
        "name": "Kiran Kumar Kokkilagadda",
        "email": "kirankumark@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/20211025040004.3171175-1-kirankumark@marvell.com/mbox/",
    "series": [
        {
            "id": 19938,
            "url": "http://patches.dpdk.org/api/series/19938/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19938",
            "date": "2021-10-25T04:00:04",
            "name": "crypto/cnxk: fix bus error on RSA verify",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/19938/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/102723/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/102723/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 993A0A0C45;\n\tMon, 25 Oct 2021 06:00:18 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 58D25407FF;\n\tMon, 25 Oct 2021 06:00:18 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id C8AC44003E\n for <dev@dpdk.org>; Mon, 25 Oct 2021 06:00:16 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19P0E37N015508\n for <dev@dpdk.org>; Sun, 24 Oct 2021 21:00:16 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com with ESMTP id 3bwhv1rge0-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Sun, 24 Oct 2021 21:00:15 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Sun, 24 Oct 2021 21:00:14 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Sun, 24 Oct 2021 21:00:14 -0700",
            "from cavium-kiran.marvell.com (unknown [10.28.34.15])\n by maili.marvell.com (Postfix) with ESMTP id 7686B3F7114;\n Sun, 24 Oct 2021 21:00:08 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=Ek01QmLmiPhwk+OAlGYKwD0HNB7G/x0YPP0duYpZQ3Y=;\n b=Sl2K/f35KPNPpYlw8WKT2oDnZWMQ7+LyvxZL+l0VQwj8t3vIm1uFNOZDWlQC3fhozu02\n MVOH9nTky7BVM5DHemucxHyvRmDRiYNrySE/+CCtBFcFF4GJfPK+NtJgPiZBJ2ZoCfBi\n OfeJsjUZWwKLbmi3H3c1nXgGvAH2ckuEH+/M50EoZPo5efdHk4nDXeA9L3JvtG/rQqDo\n 1lVrCPjA8gWiT+/yCymBY3gdDlbnzsnvaN6ukJPUZKTWb751WfzdpTqgbLPik29hyJ9N\n hzBqf+jBEY/1bqDxO8ZiktDOr6m6GYHf3BucfaotkeF6/jPUXeGLLnGIlhVcpIyXVhHh Mg==",
        "From": "<kirankumark@marvell.com>",
        "To": "Ankur Dwivedi <adwivedi@marvell.com>, Anoob Joseph <anoobj@marvell.com>,\n Tejasree Kondoj <ktejasree@marvell.com>",
        "CC": "<dev@dpdk.org>, Kiran Kumar K <kirankumark@marvell.com>",
        "Date": "Mon, 25 Oct 2021 09:30:04 +0530",
        "Message-ID": "<20211025040004.3171175-1-kirankumark@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "TZdyCQBmNVMuRm92FZkYObQziMfcr2zO",
        "X-Proofpoint-GUID": "TZdyCQBmNVMuRm92FZkYObQziMfcr2zO",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475\n definitions=2021-10-25_01,2021-10-25_01,2020-04-07_01",
        "Subject": "[dpdk-dev] [PATCH] crypto/cnxk: fix bus error on RSA verify",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Kiran Kumar K <kirankumark@marvell.com>\n\nWhile creating RSA session, private key length is not being\ncalculated properly. This is causing bus error on RSA verify.\nThis patch fix the issue with length calculation.\n\nFixes: 5a3513caeb455 (\"crypto/cnxk: add asymmetric session\")\n\nSigned-off-by: Kiran Kumar K <kirankumark@marvell.com>\n---\n drivers/crypto/cnxk/cnxk_ae.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/crypto/cnxk/cnxk_ae.h b/drivers/crypto/cnxk/cnxk_ae.h\nindex 00dc75ef9d..6222171fe6 100644\n--- a/drivers/crypto/cnxk/cnxk_ae.h\n+++ b/drivers/crypto/cnxk/cnxk_ae.h\n@@ -82,15 +82,15 @@ cnxk_ae_fill_rsa_params(struct cnxk_ae_sess *sess,\n \tstruct rte_crypto_rsa_xform *rsa = &sess->rsa_ctx;\n \tsize_t mod_len = xfrm_rsa->n.length;\n \tsize_t exp_len = xfrm_rsa->e.length;\n-\tsize_t len = (mod_len / 2);\n \tuint64_t total_size;\n+\tsize_t len = 0;\n \n \tif (qt.p.length != 0 && qt.p.data == NULL)\n \t\treturn -EINVAL;\n \n \t/* Make sure key length used is not more than mod_len/2 */\n \tif (qt.p.data != NULL)\n-\t\tlen = RTE_MIN(len, qt.p.length);\n+\t\tlen = (((mod_len / 2) < qt.p.length) ? 0 : qt.p.length);\n \n \t/* Total size required for RSA key params(n,e,(q,dQ,p,dP,qInv)) */\n \ttotal_size = mod_len + exp_len + 5 * len;\n",
    "prefixes": []
}