Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/137981/?format=api
http://patches.dpdk.org/api/patches/137981/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240305072213.283205-21-asasidharan@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": "<20240305072213.283205-21-asasidharan@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20240305072213.283205-21-asasidharan@marvell.com", "date": "2024-03-05T07:22:12", "name": "[20/21] test/crypto: unit tests for padding in DTLS-1.2", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "64b1cf98d7c8bc43853a99218f3cb8b5802b35bd", "submitter": { "id": 2800, "url": "http://patches.dpdk.org/api/people/2800/?format=api", "name": "Aakash Sasidharan", "email": "asasidharan@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/20240305072213.283205-21-asasidharan@marvell.com/mbox/", "series": [ { "id": 31370, "url": "http://patches.dpdk.org/api/series/31370/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31370", "date": "2024-03-05T07:21:52", "name": "Improvements and new test cases", "version": 1, "mbox": "http://patches.dpdk.org/series/31370/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/137981/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/137981/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 AE52A43C4C;\n\tTue, 5 Mar 2024 08:24:58 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7FE9942E14;\n\tTue, 5 Mar 2024 08:23:21 +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 07EC542DF8\n for <dev@dpdk.org>; Tue, 5 Mar 2024 08:23:19 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id\n 424LRwqu014925; Mon, 4 Mar 2024 23:23:19 -0800", "from dc6wp-exch02.marvell.com ([4.21.29.225])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wm4gmr91w-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Mon, 04 Mar 2024 23:23:19 -0800 (PST)", "from DC6WP-EXCH02.marvell.com (10.76.176.209) by\n DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1258.12; Mon, 4 Mar 2024 23:23:18 -0800", "from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com\n (10.76.176.209) with Microsoft SMTP Server id 15.2.1258.12 via Frontend\n Transport; Mon, 4 Mar 2024 23:23:18 -0800", "from localhost.localdomain (unknown [10.28.36.177])\n by maili.marvell.com (Postfix) with ESMTP id 1406F3F7079;\n Mon, 4 Mar 2024 23:23:15 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding:content-type; s=\n pfpt0220; bh=OI8uvnqR9u2yfdtrpxNo08KausJt7d3uoComq6wYp+A=; b=Pt5\n KA+tQXFIf2klQZyfqCKWI2xWdzu7xNhw3i2Wg8koXzZ7uwc+yYxp1yeADdNMKbrj\n LB8QbE4IqFwN1wsgLEzSd5aMCNWCuCMUHN86SM/1jrn/6sahf92Y8qw+3Eq8k14t\n pCm/Mfz6CTnwbuUV+bIlRwe+fg/yY05cxfHJM42Fl7Vp2Hh+BbTxcni9hzHz6Yjb\n bSltjWfhg77gxnfhnlyQJ6t0slxtxMiG0vbiCThndIijLzfJKI/tsH1+pfR1G4uQ\n UN/3Qa3yM7SGDC37xgy1netvK5+VtdABgrI7eVLkOldZ4CVu4XqSStDgR58emgLG\n aw3cRwkVHFvFRY0UIaw==", "From": "Aakash Sasidharan <asasidharan@marvell.com>", "To": "Akhil Goyal <gakhil@marvell.com>, Fan Zhang <fanzhang.oss@gmail.com>", "CC": "<jerinj@marvell.com>, <anoobj@marvell.com>, <vvelumuri@marvell.com>,\n <asasidharan@marvell.com>, <dev@dpdk.org>", "Subject": "[PATCH 20/21] test/crypto: unit tests for padding in DTLS-1.2", "Date": "Tue, 5 Mar 2024 12:52:12 +0530", "Message-ID": "<20240305072213.283205-21-asasidharan@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20240305072213.283205-1-asasidharan@marvell.com>", "References": "<20240305072213.283205-1-asasidharan@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "Xsnyy-uAhDNIlq10eykurQ2nAB3W69xg", "X-Proofpoint-GUID": "Xsnyy-uAhDNIlq10eykurQ2nAB3W69xg", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2024-03-05_04,2024-03-04_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: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n\nAdd unit tests to verify the padding for DTLS-1.2.\n\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n app/test/test_cryptodev.c | 60 +++++++++++++++++++++++++++++++++++++++\n 1 file changed, 60 insertions(+)", "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex dfee18c0e3..2e564489e9 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -12483,6 +12483,42 @@ test_dtls_1_2_record_proto_zero_len_non_app(void)\n \treturn test_tls_record_proto_all(&flags);\n }\n \n+static int\n+test_dtls_1_2_record_proto_dm_opt_padding(void)\n+{\n+\treturn test_tls_record_proto_opt_padding(1, 0, RTE_SECURITY_VERSION_DTLS_1_2);\n+}\n+\n+static int\n+test_dtls_1_2_record_proto_dm_opt_padding_1(void)\n+{\n+\treturn test_tls_record_proto_opt_padding(25, 0, RTE_SECURITY_VERSION_DTLS_1_2);\n+}\n+\n+static int\n+test_dtls_1_2_record_proto_sg_opt_padding(void)\n+{\n+\treturn test_tls_record_proto_opt_padding(1, 5, RTE_SECURITY_VERSION_DTLS_1_2);\n+}\n+\n+static int\n+test_dtls_1_2_record_proto_sg_opt_padding_1(void)\n+{\n+\treturn test_tls_record_proto_opt_padding(8, 4, RTE_SECURITY_VERSION_DTLS_1_2);\n+}\n+\n+static int\n+test_dtls_1_2_record_proto_sg_opt_padding_2(void)\n+{\n+\treturn test_tls_record_proto_opt_padding(8, 5, RTE_SECURITY_VERSION_DTLS_1_2);\n+}\n+\n+static int\n+test_dtls_1_2_record_proto_sg_opt_padding_max(void)\n+{\n+\treturn test_tls_record_proto_opt_padding(33, 4, RTE_SECURITY_VERSION_DTLS_1_2);\n+}\n+\n static int\n test_tls_1_3_record_proto_corrupt_pkt(void)\n {\n@@ -17824,6 +17860,30 @@ static struct unit_test_suite dtls12_record_proto_testsuite = {\n \t\t\t\"Antireplay with window size 4096\",\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_dtls_1_2_record_proto_antireplay4096),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"DTLS record DM mode with optional padding < 2 blocks\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_dtls_1_2_record_proto_dm_opt_padding),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"DTLS record DM mode with optional padding > 2 blocks\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_dtls_1_2_record_proto_dm_opt_padding_1),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"DTLS record SG mode with optional padding < 2 blocks\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_dtls_1_2_record_proto_sg_opt_padding),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"DTLS record SG mode with optional padding > 2 blocks\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_dtls_1_2_record_proto_sg_opt_padding_1),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"DTLS record SG mode with optional padding > 2 blocks\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_dtls_1_2_record_proto_sg_opt_padding_2),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"DTLS record SG mode with optional padding > max range\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_dtls_1_2_record_proto_sg_opt_padding_max),\n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n };\n", "prefixes": [ "20/21" ] }{ "id": 137981, "url": "