get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 134919,
    "url": "http://patches.dpdk.org/api/patches/134919/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231207130216.140-8-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": "<20231207130216.140-8-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231207130216.140-8-anoobj@marvell.com",
    "date": "2023-12-07T13:02:09",
    "name": "[07/14] test/crypto: add AES-GCM 128 TLS 1.2 vector",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6c230942e7b12cf114d0dbf772f3df2f42826456",
    "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/20231207130216.140-8-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 30476,
            "url": "http://patches.dpdk.org/api/series/30476/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30476",
            "date": "2023-12-07T13:02:02",
            "name": "Add TLS record test suite",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/30476/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/134919/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/134919/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 AF73C43699;\n\tThu,  7 Dec 2023 14:03:35 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 16ACD42F1B;\n\tThu,  7 Dec 2023 14:02:46 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 27E5A42F1B\n for <dev@dpdk.org>; Thu,  7 Dec 2023 14:02:44 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3B79PGlc032068; Thu, 7 Dec 2023 05:02:43 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uubdd8n5v-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 07 Dec 2023 05:02:43 -0800",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Thu, 7 Dec 2023 05:02:41 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Thu, 7 Dec 2023 05:02:41 -0800",
            "from BG-LT92004.corp.innovium.com (unknown [10.28.163.189])\n by maili.marvell.com (Postfix) with ESMTP id AF9F83F70AD;\n Thu,  7 Dec 2023 05:02:38 -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=pfpt0220;\n bh=MuoFfaWUzEPf0c0RRBjgXbivR8JffuTQaWxE+kkLyFM=;\n b=hjWFK6Jq26s8VKK0+KlV7Qi1AEq0wgqPkHTMC03vQSqFOPyS8pmsuMsxDrfqCTDcVnoe\n afV8vsJCYQYpO7k5coaRWonqDl4jFdfkSVL1SKHZtYM45K8wVH9j0e7ULsk4BV5MA+zo\n gUj3z2yMJMAEO7R5KKc8uSVcNOkhZSdx5hVL0j3R6T9JReec3HK6d750Brv9RiUUI7BL\n jEB9mUCGhIkqYQc+ZsLu/Jcsn5Oawxbx85+HXVUfAI9pGNBu5DnpudHQ8NUxh895NjOI\n E3Epe7Sr1ohoUsXocBhcZ8x50V3JrHhScUxTZryBtBwSZA9RZrspjooNA18fsZNyZBOC 2A==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Jerin Jacob <jerinj@marvell.com>",
        "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Harry van Haaren\n <harry.van.haaren@intel.com>, Hemant Agrawal <hemant.agrawal@nxp.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>, <dev@dpdk.org>, \"Vidya\n Sagar Velumuri\" <vvelumuri@marvell.com>",
        "Subject": "[PATCH 07/14] test/crypto: add AES-GCM 128 TLS 1.2 vector",
        "Date": "Thu, 7 Dec 2023 18:32:09 +0530",
        "Message-ID": "<20231207130216.140-8-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20231207130216.140-1-anoobj@marvell.com>",
        "References": "<20231207130216.140-1-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "XkRlQ8p98ZdA4BHdlNN_nbTyKm8eHo-c",
        "X-Proofpoint-GUID": "XkRlQ8p98ZdA4BHdlNN_nbTyKm8eHo-c",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-12-07_10,2023-12-07_01,2023-05-22_02",
        "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": "From: Tejasree Kondoj <ktejasree@marvell.com>\n\nAdd AES-GCM-128 test vector generated with kTLS.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n app/test/test_cryptodev.c                     |  8 +--\n app/test/test_cryptodev_security_tls_record.h |  2 +-\n ...yptodev_security_tls_record_test_vectors.h | 67 ++++++++++++++++++-\n 3 files changed, 71 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex cd83370790..e7e4b93c20 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -16814,13 +16814,13 @@ static struct unit_test_suite tls12_record_proto_testsuite  = {\n \t.setup = tls_record_proto_testsuite_setup,\n \t.unit_test_cases = {\n \t\tTEST_CASE_NAMED_WITH_DATA(\n-\t\t\t\"Known vector TBD\",\n+\t\t\t\"Write record known vector AES-GCM-128 (vector 1)\",\n \t\t\tut_setup_security, ut_teardown,\n-\t\t\ttest_tls_record_proto_known_vec, &tls_test_data1),\n+\t\t\ttest_tls_record_proto_known_vec, &tls_test_data_aes_128_gcm_v1),\n \t\tTEST_CASE_NAMED_WITH_DATA(\n-\t\t\t\"Known vector TBD\",\n+\t\t\t\"Read record known vector AES-GCM-128 (vector 1)\",\n \t\t\tut_setup_security, ut_teardown,\n-\t\t\ttest_tls_record_proto_known_vec_read, &tls_test_data1),\n+\t\t\ttest_tls_record_proto_known_vec_read, &tls_test_data_aes_128_gcm_v1),\n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n };\ndiff --git a/app/test/test_cryptodev_security_tls_record.h b/app/test/test_cryptodev_security_tls_record.h\nindex 9a0cf70218..b9cadd5cd4 100644\n--- a/app/test/test_cryptodev_security_tls_record.h\n+++ b/app/test/test_cryptodev_security_tls_record.h\n@@ -55,7 +55,7 @@ struct tls_record_test_flags {\n \tbool display_alg;\n };\n \n-extern struct tls_record_test_data tls_test_data1;\n+extern struct tls_record_test_data tls_test_data_aes_128_gcm_v1;\n \n int test_tls_record_status_check(struct rte_crypto_op *op);\n \ndiff --git a/app/test/test_cryptodev_security_tls_record_test_vectors.h b/app/test/test_cryptodev_security_tls_record_test_vectors.h\nindex 5aa0d27fda..52e97e8557 100644\n--- a/app/test/test_cryptodev_security_tls_record_test_vectors.h\n+++ b/app/test/test_cryptodev_security_tls_record_test_vectors.h\n@@ -11,6 +11,71 @@\n #include \"test_cryptodev.h\"\n #include \"test_cryptodev_security_tls_record.h\"\n \n-struct tls_record_test_data tls_test_data1;\n+/* TLS 1.2 AES-GCM 128 vector generated with kTLS. */\n+struct tls_record_test_data tls_test_data_aes_128_gcm_v1 = {\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0x77, 0xc4, 0x9b, 0x0c, 0x2b, 0xe2, 0xd2, 0x4e,\n+\t\t\t0xf5, 0x36, 0xb4, 0xea, 0x16, 0xb0, 0xed, 0x1f\n+\t\t},\n+\t},\n+\t.input_text = {\n+\t\t.data = {\n+\t\t\t0x61, 0x62, 0x63, 0x64, 0x31, 0x32, 0x33, 0x34,\n+\t\t\t0x61, 0x62, 0x63, 0x64, 0x31, 0x32, 0x33, 0x34,\n+\t\t\t0xa\n+\t\t},\n+\t\t.len = 17,\n+\t},\n+\t.output_text = {\n+\t\t.data = {\n+\t\t\t0x17, 0x03, 0x03, 0x00, 0x29,\n+\t\t\t0x3a, 0xcd, 0x41, 0x5d, 0x42, 0xac, 0xce, 0x36,\n+\t\t\t0xad, 0xd1, 0x83, 0xa0, 0x16, 0x84, 0xce, 0x84,\n+\t\t\t0xfc, 0xc2, 0xa7, 0x6b, 0xa1, 0x89, 0x5d, 0xf2,\n+\t\t\t0xeb,\n+\t\t\t0x9b, 0x90, 0x01, 0x56, 0xf8, 0x9d, 0xac, 0x0c,\n+\t\t\t0xa8, 0x95, 0xba, 0xcc, 0x1f, 0xf3, 0x36, 0x2b\n+\t\t},\n+\t\t.len = 46,\n+\t},\n+\t.imp_nonce = {\n+\t\t.data = {\n+\t\t\t0xda, 0xf8, 0x8f, 0x12\n+\t\t},\n+\t\t.len = 4,\n+\t},\n+\n+\t.iv = {\n+\t\t.data = {\n+\t\t\t0x3a, 0xcd, 0x41, 0x5d, 0x42, 0xac, 0xce, 0x36\n+\t\t},\n+\t},\n+\n+\t.xform = {\n+\t\t.aead = {\n+\t\t\t.next = NULL,\n+\t\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n+\t\t\t.aead = {\n+\t\t\t\t.op = RTE_CRYPTO_AEAD_OP_ENCRYPT,\n+\t\t\t\t.algo = RTE_CRYPTO_AEAD_AES_GCM,\n+\t\t\t\t.key.length = 16,\n+\t\t\t\t.iv.length = 12,\n+\t\t\t\t.iv.offset = IV_OFFSET,\n+\t\t\t\t.digest_length = 16,\n+\t\t\t\t.aad_length = 13,\n+\t\t\t},\n+\t\t},\n+\t},\n+\n+\t.tls_record_xform = {\n+\t\t.ver = RTE_SECURITY_VERSION_TLS_1_2,\n+\t\t.type = RTE_SECURITY_TLS_SESS_TYPE_WRITE,\n+\t\t.tls_1_2.seq_no = 0x1,\n+\t},\n+\n+\t.aead = true,\n+\t.app_type = 0x17,\n+};\n \n #endif\n",
    "prefixes": [
        "07/14"
    ]
}