get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104878,
    "url": "http://patchwork.dpdk.org/api/patches/104878/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1638777528-553-3-git-send-email-anoobj@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<1638777528-553-3-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1638777528-553-3-git-send-email-anoobj@marvell.com",
    "date": "2021-12-06T07:58:37",
    "name": "[02/13] test/crypto: add IPsec AES-CBC-HMAC-SHA256 known vectors",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "fd0d2ae7bd7e6eca8b93951c35dc8d565d7e1369",
    "submitter": {
        "id": 1205,
        "url": "http://patchwork.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patchwork.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1638777528-553-3-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 20861,
            "url": "http://patchwork.dpdk.org/api/series/20861/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20861",
            "date": "2021-12-06T07:58:35",
            "name": "Add new cases to lookaside IPsec tests",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/20861/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104878/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/104878/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 AFC6AA0C41;\n\tMon,  6 Dec 2021 08:59:33 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6A0544115A;\n\tMon,  6 Dec 2021 08:59:29 +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 156994115A\n for <dev@dpdk.org>; Mon,  6 Dec 2021 08:59:27 +0100 (CET)",
            "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 ESMTP id\n 1B5Lo8QE022970;\n Sun, 5 Dec 2021 23:59:27 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3cs0qn270p-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Sun, 05 Dec 2021 23:59:27 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Sun, 5 Dec 2021 23:59:25 -0800",
            "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, 5 Dec 2021 23:59:25 -0800",
            "from HY-LT1002.marvell.com (HY-LT1002.marvell.com [10.28.176.218])\n by maili.marvell.com (Postfix) with ESMTP id BDDCA3F704A;\n Sun,  5 Dec 2021 23:59:21 -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=viV296DaRjV+VACSMNt9ZiKwrUWFmMiKmlUoHVKrZ4I=;\n b=lEeMv6V1Ru2tmRdM+WBWqfH4Y088EwtY/rJ/q3vzoL0B5vNgiPH+nS6pJf/vvT5yVcrF\n nt4LVdOXGBCIF/aQC9ZRHx4/5yizjVAn7/EMf/rjCStqXfdpoZgXlBh/9rqbpuKt3Efz\n SWN9s/UqYuN5cupIhvIvVMtREMKsC373/KfvU/ZrHg+OfDpdqUQ4ZFuo21eDxoAacXDv\n 7PZ7JJ39ADoVksf+gZmw+M3HfARJlf6Yu9JEbTPbiwXaOVNXfv+9DiKwlxnXb+jOXB7Y\n Nkzl5537F1V+yaLlGGv68lDlyxNPGYoaL1BGA3Wv5hoxL15NIvbx8E++Fjtpu83xWO1N zw==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Declan Doherty\n <declan.doherty@intel.com>, Fan Zhang <roy.fan.zhang@intel.com>, \"Pablo de\n Lara\" <pablo.de.lara.guarch@intel.com>",
        "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Jerin Jacob <jerinj@marvell.com>,\n Archana Muniganti <marchana@marvell.com>, Hemant Agrawal\n <hemant.agrawal@nxp.com>, Radu Nicolau <radu.nicolau@intel.com>,\n Ciara Power <ciara.power@intel.com>,\n Gagandeep Singh <g.singh@nxp.com>, <dev@dpdk.org>",
        "Subject": "[PATCH 02/13] test/crypto: add IPsec AES-CBC-HMAC-SHA256 known\n vectors",
        "Date": "Mon, 6 Dec 2021 13:28:37 +0530",
        "Message-ID": "<1638777528-553-3-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1638777528-553-1-git-send-email-anoobj@marvell.com>",
        "References": "<1638777528-553-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "3i9KDUAXFUWfMfgX5-XpCnouU0beaXHD",
        "X-Proofpoint-ORIG-GUID": "3i9KDUAXFUWfMfgX5-XpCnouU0beaXHD",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513\n definitions=2021-12-06_03,2021-12-06_01,2021-12-02_01",
        "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\nAdding lookaside IPsec AES-CBC-HMAC-SHA256 test cases.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n app/test/test_cryptodev.c                          |  12 ++-\n app/test/test_cryptodev_security_ipsec.h           |   3 +\n .../test_cryptodev_security_ipsec_test_vectors.h   | 109 +++++++++++++++++++++\n 3 files changed, 123 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 1e4b690..3fa618d 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -9197,7 +9197,7 @@ test_ipsec_proto_process(const struct ipsec_test_data td[],\n \t\t       sizeof(ut_params->auth_xform));\n \t\tut_params->cipher_xform.cipher.key.data = td[0].key.data;\n \t\tut_params->cipher_xform.cipher.iv.offset = IV_OFFSET;\n-\t\tut_params->auth_xform.auth.key.data = td[0].key.data;\n+\t\tut_params->auth_xform.auth.key.data = td[0].auth_key.data;\n \n \t\t/* Verify crypto capabilities */\n \n@@ -14423,6 +14423,11 @@ static struct unit_test_suite ipsec_proto_testsuite  = {\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_ipsec_proto_known_vec, &pkt_aes_256_gcm),\n \t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Outbound known vector (ESP tunnel mode IPv4 AES-CBC 128 HMAC-SHA256 [16B ICV])\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_known_vec,\n+\t\t\t&pkt_aes_128_cbc_hmac_sha256),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n \t\t\t\"Inbound known vector (ESP tunnel mode IPv4 AES-GCM 128)\",\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_ipsec_proto_known_vec_inb, &pkt_aes_128_gcm),\n@@ -14438,6 +14443,11 @@ static struct unit_test_suite ipsec_proto_testsuite  = {\n \t\t\t\"Inbound known vector (ESP tunnel mode IPv4 AES-CBC 128)\",\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_ipsec_proto_known_vec_inb, &pkt_aes_128_cbc_null),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Inbound known vector (ESP tunnel mode IPv4 AES-CBC 128 HMAC-SHA256 [16B ICV])\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_known_vec_inb,\n+\t\t\t&pkt_aes_128_cbc_hmac_sha256),\n \t\tTEST_CASE_NAMED_ST(\n \t\t\t\"Combined test alg list\",\n \t\t\tut_setup_security, ut_teardown,\ndiff --git a/app/test/test_cryptodev_security_ipsec.h b/app/test/test_cryptodev_security_ipsec.h\nindex 91c6cd4..70a264a 100644\n--- a/app/test/test_cryptodev_security_ipsec.h\n+++ b/app/test/test_cryptodev_security_ipsec.h\n@@ -14,6 +14,9 @@ struct ipsec_test_data {\n \tstruct {\n \t\tuint8_t data[32];\n \t} key;\n+\tstruct {\n+\t\tuint8_t data[32];\n+\t} auth_key;\n \n \tstruct {\n \t\tuint8_t data[1024];\ndiff --git a/app/test/test_cryptodev_security_ipsec_test_vectors.h b/app/test/test_cryptodev_security_ipsec_test_vectors.h\nindex bf831e9..16c88fe 100644\n--- a/app/test/test_cryptodev_security_ipsec_test_vectors.h\n+++ b/app/test/test_cryptodev_security_ipsec_test_vectors.h\n@@ -434,4 +434,113 @@ struct ipsec_test_data pkt_aes_128_cbc_null = {\n \t},\n };\n \n+struct ipsec_test_data pkt_aes_128_cbc_hmac_sha256 = {\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0x00, 0x04, 0x05, 0x01, 0x23, 0x00, 0x00, 0x00,\n+\t\t\t0x00, 0x00, 0x0a, 0x0b, 0x0c, 0x0f, 0x00, 0x00,\n+\t\t},\n+\t},\n+\t.auth_key = {\n+\t\t.data = {\n+\t\t\t0xde, 0x34, 0x56, 0x00, 0x00, 0x00, 0x78, 0x00,\n+\t\t\t0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,\n+\t\t\t0x10, 0x30, 0x40, 0x00, 0x01, 0x02, 0x03, 0x04,\n+\t\t\t0x0a, 0x0b, 0x0c, 0x0d, 0x05, 0x06, 0x07, 0x08,\n+\t\t},\n+\t},\n+\t.input_text = {\n+\t\t.data = {\n+\t\t\t/* IP */\n+\t\t\t0x45, 0x00, 0x00, 0x32, 0x00, 0x01, 0x00, 0x00,\n+\t\t\t0x1f, 0x11, 0x17, 0x8b, 0xc0, 0xa8, 0x01, 0x6f,\n+\t\t\t0xc0, 0xa8, 0x01, 0x70,\n+\n+\t\t\t/* UDP */\n+\t\t\t0x00, 0x09, 0x00, 0x09, 0x00, 0x1e, 0x00, 0x00,\n+\t\t\t0xbe, 0x9b, 0xe9, 0x55, 0x00, 0x00, 0x00, 0x21,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t},\n+\t\t.len = 50,\n+\t},\n+\t.output_text = {\n+\t\t.data = {\n+\t\t\t/* IP - outer header */\n+\t\t\t0x45, 0x00, 0x00, 0x7c, 0x00, 0x01, 0x00, 0x00,\n+\t\t\t0x40, 0x32, 0x52, 0x4d, 0x14, 0x00, 0x00, 0x01,\n+\t\t\t0x14, 0x00, 0x00, 0x02,\n+\n+\t\t\t/* ESP */\n+\t\t\t0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x01,\n+\n+\t\t\t/* IV */\n+\t\t\t0x34, 0x12, 0x67, 0x45, 0xff, 0xff, 0x00, 0x00,\n+\t\t\t0x20, 0xbf, 0xe8, 0x39, 0x00, 0x00, 0x00, 0x00,\n+\n+\t\t\t/* Data */\n+\t\t\t0x67, 0xb5, 0x46, 0x6e, 0x78, 0x17, 0xd3, 0x5a,\n+\t\t\t0xac, 0x62, 0x62, 0x62, 0xb0, 0x57, 0x9b, 0x09,\n+\t\t\t0x19, 0x4f, 0x06, 0x59, 0xc8, 0xb0, 0x30, 0x65,\n+\t\t\t0x1f, 0x45, 0x57, 0x41, 0x72, 0x17, 0x28, 0xe9,\n+\t\t\t0xad, 0x50, 0xbe, 0x44, 0x1d, 0x2d, 0x9a, 0xd0,\n+\t\t\t0x48, 0x75, 0x0d, 0x1c, 0x8d, 0x24, 0xa8, 0x6f,\n+\t\t\t0x6b, 0x24, 0xb6, 0x5d, 0x43, 0x1e, 0x55, 0xf0,\n+\t\t\t0xf7, 0x14, 0x1f, 0xf2, 0x61, 0xd4, 0xe0, 0x30,\n+\t\t\t0x16, 0xbe, 0x1b, 0x5c, 0xcc, 0xb7, 0x66, 0x1c,\n+\t\t\t0x47, 0xad, 0x07, 0x6c, 0xd5, 0xcb, 0xce, 0x6c,\n+\t\t},\n+\t\t.len = 124,\n+\t},\n+\t.iv = {\n+\t\t.data = {\n+\t\t\t0x34, 0x12, 0x67, 0x45, 0xff, 0xff, 0x00, 0x00,\n+\t\t\t0x20, 0xbf, 0xe8, 0x39, 0x00, 0x00, 0x00, 0x00,\n+\t\t},\n+\t},\n+\n+\t.ipsec_xform = {\n+\t\t.spi = 52,\n+\t\t.options.esn = 0,\n+\t\t.options.udp_encap = 0,\n+\t\t.options.copy_dscp = 0,\n+\t\t.options.copy_flabel = 0,\n+\t\t.options.copy_df = 0,\n+\t\t.options.dec_ttl = 0,\n+\t\t.options.ecn = 0,\n+\t\t.options.stats = 0,\n+\t\t.options.tunnel_hdr_verify = 0,\n+\t\t.direction = RTE_SECURITY_IPSEC_SA_DIR_EGRESS,\n+\t\t.proto = RTE_SECURITY_IPSEC_SA_PROTO_ESP,\n+\t\t.mode = RTE_SECURITY_IPSEC_SA_MODE_TUNNEL,\n+\t\t.tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4,\n+\t\t.replay_win_sz = 0,\n+\t},\n+\n+\t.aead = false,\n+\n+\t.xform = {\n+\t\t.chain.cipher = {\n+\t\t\t.next = NULL,\n+\t\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t\t.cipher = {\n+\t\t\t\t.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT,\n+\t\t\t\t.algo = RTE_CRYPTO_CIPHER_AES_CBC,\n+\t\t\t\t.key.length = 16,\n+\t\t\t\t.iv.length = 16,\n+\t\t\t},\n+\t\t},\n+\t\t.chain.auth = {\n+\t\t\t.next = NULL,\n+\t\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t\t.auth = {\n+\t\t\t\t.op = RTE_CRYPTO_AUTH_OP_GENERATE,\n+\t\t\t\t.algo = RTE_CRYPTO_AUTH_SHA256_HMAC,\n+\t\t\t\t.key.length = 32,\n+\t\t\t\t.digest_length = 16,\n+\t\t\t},\n+\t\t},\n+\t},\n+};\n+\n #endif /* TEST_CRYPTODEV_SECURITY_IPSEC_TEST_VECTORS_H_ */\n",
    "prefixes": [
        "02/13"
    ]
}