get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 134920,
    "url": "https://patches.dpdk.org/api/patches/134920/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231207130216.140-9-anoobj@marvell.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": "<20231207130216.140-9-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231207130216.140-9-anoobj@marvell.com",
    "date": "2023-12-07T13:02:10",
    "name": "[08/14] test/crypto: add TLS1.2 vectors",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "56696b0c1b66b119d577e38be78f378682e5f0db",
    "submitter": {
        "id": 1205,
        "url": "https://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.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/20231207130216.140-9-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 30476,
            "url": "https://patches.dpdk.org/api/series/30476/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=30476",
            "date": "2023-12-07T13:02:02",
            "name": "Add TLS record test suite",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/30476/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/134920/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/134920/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 C37BE43699;\n\tThu,  7 Dec 2023 14:03:44 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3B15C42F23;\n\tThu,  7 Dec 2023 14:02:50 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 95CE942F0C\n for <dev@dpdk.org>; Thu,  7 Dec 2023 14:02:48 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3B76M49N017005; Thu, 7 Dec 2023 05:02:47 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3uu8qe98m9-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 07 Dec 2023 05:02:47 -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:44 -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:44 -0800",
            "from BG-LT92004.corp.innovium.com (unknown [10.28.163.189])\n by maili.marvell.com (Postfix) with ESMTP id D5B9C3F7093;\n Thu,  7 Dec 2023 05:02:41 -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=FVa9Q8gbWPzE1WSctp/gbKQECdKSGu+pxG9jffquUZ8=;\n b=fDqQ4HrbPSEyMXdcWwZEqNqUkt/l6OrFVWv3EO55nfWPnZf3n1rblHrvQ8lsYIsoyf/5\n PuefDI1hdeDRg7SI/QfTF94uBbok2Icz3b+o6d6EOQ497lzds9KDRAmRU9iftK79YLiB\n 10GMVfvPNO8BWpnKeFTBy1TnpuQRwBBOjy4XiPrmumalug59MHfbAZyca2TnSBZ8dtS4\n Trjsvk4tLc3aUfu91Mgz3Xsmye10qeNcGUmSeoD/RUNVSMcoHcTlj72801bxvFAQfSCB\n rI0XEDLpsIVMsWDDPJb8h8PBrRZsq3FLcMgNLW86Wz7gV1xhXSjV/55B3tNX/Dy8WBzb 7w==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Jerin Jacob <jerinj@marvell.com>",
        "CC": "Harry van Haaren <harry.van.haaren@intel.com>, Hemant Agrawal\n <hemant.agrawal@nxp.com>, Konstantin Ananyev\n <konstantin.v.ananyev@yandex.ru>, <dev@dpdk.org>, Vidya Sagar Velumuri\n <vvelumuri@marvell.com>",
        "Subject": "[PATCH 08/14] test/crypto: add TLS1.2 vectors",
        "Date": "Thu, 7 Dec 2023 18:32:10 +0530",
        "Message-ID": "<20231207130216.140-9-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-GUID": "1E47LsbxTbBCswbkvlcMkTFkWw5j9jiF",
        "X-Proofpoint-ORIG-GUID": "1E47LsbxTbBCswbkvlcMkTFkWw5j9jiF",
        "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: Akhil Goyal <gakhil@marvell.com>\n\nAdded TLS 1.2 test vectors for AES-128-CBC-SHA1\n\nSigned-off-by: Akhil Goyal <gakhil@marvell.com>\n---\n app/test/test_cryptodev.c                     |  8 ++\n app/test/test_cryptodev_security_tls_record.h |  1 +\n ...yptodev_security_tls_record_test_vectors.h | 91 +++++++++++++++++++\n 3 files changed, 100 insertions(+)",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex e7e4b93c20..a82f971135 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -16817,10 +16817,18 @@ static struct unit_test_suite tls12_record_proto_testsuite  = {\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_data_aes_128_gcm_v1),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Write record known vector AES-128-CBC-SHA1\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_tls_record_proto_known_vec, &tls_test_data_aes_128_cbc_sha1_hmac),\n \t\tTEST_CASE_NAMED_WITH_DATA(\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_data_aes_128_gcm_v1),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Read record known vector AES-128-CBC-SHA1\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_tls_record_proto_known_vec_read, &tls_test_data_aes_128_cbc_sha1_hmac),\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 b9cadd5cd4..3e42db2c03 100644\n--- a/app/test/test_cryptodev_security_tls_record.h\n+++ b/app/test/test_cryptodev_security_tls_record.h\n@@ -56,6 +56,7 @@ struct tls_record_test_flags {\n };\n \n extern struct tls_record_test_data tls_test_data_aes_128_gcm_v1;\n+extern struct tls_record_test_data tls_test_data_aes_128_cbc_sha1_hmac;\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 52e97e8557..85ad2df500 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@@ -78,4 +78,95 @@ struct tls_record_test_data tls_test_data_aes_128_gcm_v1 = {\n \t.app_type = 0x17,\n };\n \n+struct tls_record_test_data tls_test_data_aes_128_cbc_sha1_hmac = {\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0xee, 0x2b, 0x2a, 0x59, 0xbf, 0x60, 0x36, 0xba,\n+\t\t\t0xe4, 0xdc, 0x7d, 0x8b, 0xc7, 0x0d, 0xbb, 0x85,\n+\t\t},\n+\t},\n+\t.auth_key = {\n+\t\t.data = {\n+\t\t\t0xcf, 0x4f, 0xc1, 0x7d, 0x6d, 0x4c, 0x0d, 0x13,\n+\t\t\t0x3d, 0x8f, 0x95, 0xb5, 0xdd, 0xb0, 0x85, 0x08,\n+\t\t\t0x38, 0x2c, 0xa1, 0xa0,\n+\t\t},\n+\t},\n+\t.input_text = {\n+\t\t.data = {\n+\t\t\t/* plain text data */\n+\t\t\t0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,\n+\t\t\t0x54, 0x4c, 0x53, 0x20, 0x31, 0x2e, 0x32, 0x20,\n+\t\t\t0x41, 0x45, 0x53, 0x2d, 0x31, 0x32, 0x38, 0x2d,\n+\t\t\t0x43, 0x42, 0x43, 0x20, 0x53, 0x48, 0x41, 0x31,\n+\t\t\t0x20, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65,\n+\t\t\t0x20, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x0a,\n+\t\t},\n+\t\t.len = 48,\n+\t},\n+\t.output_text = {\n+\t\t.data = {\n+\t\t\t/* TLS header */\n+\t\t\t0x17, 0x03, 0x03, 0x00, 0x60,\n+\t\t\t/* Encrypted data */\n+\t\t\t0x30, 0x76, 0x10, 0x2e, 0xb2, 0xe3, 0xb6, 0x93,\n+\t\t\t0x70, 0xd4, 0xdf, 0x2a, 0x4f, 0x92, 0x1d, 0x3c,\n+\t\t\t0x9a, 0x87, 0x38, 0xb0, 0x8e, 0x82, 0xf1, 0x33,\n+\t\t\t0xa2, 0x5e, 0xce, 0xaf, 0x51, 0xf1, 0x51, 0x17,\n+\t\t\t0x4f, 0x63, 0x55, 0x60, 0xa5, 0x3f, 0xc5, 0x42,\n+\t\t\t0x9a, 0x80, 0x7a, 0x19, 0xb9, 0x77, 0x5b, 0x6f,\n+\t\t\t0x1b, 0x2e, 0x2c, 0x0a, 0xa1, 0xa9, 0xf4, 0xb1,\n+\t\t\t0xc7, 0x12, 0x7d, 0xfc, 0x92, 0x2f, 0xf4, 0xfc,\n+\t\t\t0x20, 0x16, 0x1a, 0xa3, 0x94, 0xc6, 0xfe, 0x64,\n+\t\t\t0x8d, 0x16, 0xd2, 0x52, 0x56, 0x83, 0x75, 0x3f,\n+\t\t\t0x5b, 0x89, 0xf4, 0x29, 0x72, 0x46, 0x19, 0xd2,\n+\t\t\t0xae, 0xea, 0xe3, 0xfc, 0x23, 0xd9, 0x00, 0x6c,\n+\t\t},\n+\t\t.len = 101,\n+\t},\n+\t.iv = {\n+\t\t.data = {\n+\t\t\t0x30, 0x76, 0x10, 0x2e, 0xb2, 0xe3, 0xb6, 0x93,\n+\t\t\t0x70, 0xd4, 0xdf, 0x2a, 0x4f, 0x92, 0x1d, 0x3c,\n+\t\t},\n+\t},\n+\n+\t.xform = {\n+\t\t.chain = {\n+\t\t\t.auth = {\n+\t\t\t\t.next = NULL,\n+\t\t\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t\t\t.auth = {\n+\t\t\t\t\t.op = RTE_CRYPTO_AUTH_OP_GENERATE,\n+\t\t\t\t\t.algo = RTE_CRYPTO_AUTH_SHA1_HMAC,\n+\t\t\t\t\t.key.length = 20,\n+\t\t\t\t\t.iv.length = 0,\n+\t\t\t\t\t.iv.offset = 0,\n+\t\t\t\t\t.digest_length = 20,\n+\t\t\t\t},\n+\t\t\t},\n+\t\t\t.cipher = {\n+\t\t\t\t.next = NULL,\n+\t\t\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t\t\t.cipher = {\n+\t\t\t\t\t.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT,\n+\t\t\t\t\t.algo = RTE_CRYPTO_CIPHER_AES_CBC,\n+\t\t\t\t\t.key.length = 16,\n+\t\t\t\t\t.iv.length = 16,\n+\t\t\t\t\t.iv.offset = IV_OFFSET,\n+\t\t\t\t},\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 = false,\n+\t.app_type = 0x17,\n+};\n+\n #endif\n",
    "prefixes": [
        "08/14"
    ]
}