Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/134914/?format=api
http://patches.dpdk.org/api/patches/134914/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231207130216.140-3-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-3-anoobj@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231207130216.140-3-anoobj@marvell.com", "date": "2023-12-07T13:02:04", "name": "[02/14] test/crypto: move algorithm list to common", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "720f3054692264c6de488498a95962ec48e0c57f", "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-3-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/134914/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/134914/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 5F09843699;\n\tThu, 7 Dec 2023 14:02:42 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0BFBE42EFE;\n\tThu, 7 Dec 2023 14:02:31 +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 259634025C\n for <dev@dpdk.org>; Thu, 7 Dec 2023 14:02:29 +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 3B79PGbG032087; Thu, 7 Dec 2023 05:02:28 -0800", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uubdd8n4f-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 07 Dec 2023 05:02:28 -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:26 -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:26 -0800", "from BG-LT92004.corp.innovium.com (unknown [10.28.163.189])\n by maili.marvell.com (Postfix) with ESMTP id BBB5A3F7093;\n Thu, 7 Dec 2023 05:02:23 -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=w/NDtx3MDufcIisaLMsx2CzuEC5Wnj/Dsg/Ac9xcZmo=;\n b=NaVk05rJTQDBitsYdMsfDZY7AC0uPcxh5fmKxj/nDpxLbkZciSet37KbkefB+8Dlb6S4\n F5CoGaJm5mCJWZJJd43bjr6eTV/l6PRTmQpb3ZOmDxSS3ayC+arc8Ki7CjxX5GcjalnJ\n /JQRtycdrvFFPCn6tgkJe9P1RmtUeJAWEcI+5Kn2m9Bx/xJBcKtrW0u86XHL7JgUGQoK\n Fmeu/p5WPyL8mAcfGLrqI1IoxKrcpqgj+aKdSdfTdsjE+nz1k2KhXbDgtt9EPK582jMq\n Eo+tpZ/NFWF26yUI1p/cv1Kok6IoeJGcq+WRVSjoqrmi3A9c9L8b2qbfrSF7EGtpE42V VQ==", "From": "Anoob Joseph <anoobj@marvell.com>", "To": "Akhil Goyal <gakhil@marvell.com>, Jerin Jacob <jerinj@marvell.com>", "CC": "Vidya Sagar Velumuri <vvelumuri@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>", "Subject": "[PATCH 02/14] test/crypto: move algorithm list to common", "Date": "Thu, 7 Dec 2023 18:32:04 +0530", "Message-ID": "<20231207130216.140-3-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": "1zNRd5zLbEkzFKlEzKRvbhOaK4XyFUcE", "X-Proofpoint-GUID": "1zNRd5zLbEkzFKlEzKRvbhOaK4XyFUcE", "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: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n\nThe algorithm list and associated structs are used for IPsec combined\nmode tests. The same list can be employed for other security protocol\ntesting as well. Move the same to test_security_proto.h for the same.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n app/test/test_cryptodev_security_ipsec.h | 126 +----------------------\n app/test/test_security_proto.h | 124 ++++++++++++++++++++++\n 2 files changed, 126 insertions(+), 124 deletions(-)", "diff": "diff --git a/app/test/test_cryptodev_security_ipsec.h b/app/test/test_cryptodev_security_ipsec.h\nindex dc1b4c4a80..77cb5fa7f9 100644\n--- a/app/test/test_cryptodev_security_ipsec.h\n+++ b/app/test/test_cryptodev_security_ipsec.h\n@@ -8,6 +8,8 @@\n #include <rte_cryptodev.h>\n #include <rte_security.h>\n \n+#include \"test_security_proto.h\"\n+\n #define IPSEC_TEST_PACKETS_MAX 32\n #define IPSEC_TEXT_MAX_LEN 16384u\n \n@@ -115,130 +117,6 @@ struct ipsec_test_flags {\n \tbool rx_inject;\n };\n \n-struct crypto_param {\n-\tenum rte_crypto_sym_xform_type type;\n-\tunion {\n-\t\tenum rte_crypto_cipher_algorithm cipher;\n-\t\tenum rte_crypto_auth_algorithm auth;\n-\t\tenum rte_crypto_aead_algorithm aead;\n-\t} alg;\n-\tuint16_t key_length;\n-\tuint16_t iv_length;\n-\tuint16_t digest_length;\n-};\n-\n-static const struct crypto_param aead_list[] = {\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n-\t\t.alg.aead = RTE_CRYPTO_AEAD_AES_GCM,\n-\t\t.key_length = 16,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n-\t\t.alg.aead = RTE_CRYPTO_AEAD_AES_GCM,\n-\t\t.key_length = 24,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n-\t\t.alg.aead = RTE_CRYPTO_AEAD_AES_GCM,\n-\t\t.key_length = 32,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n-\t\t.alg.aead = RTE_CRYPTO_AEAD_AES_CCM,\n-\t\t.key_length = 32\n-\t},\n-};\n-\n-static const struct crypto_param cipher_list[] = {\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n-\t\t.alg.cipher = RTE_CRYPTO_CIPHER_NULL,\n-\t\t.key_length = 0,\n-\t\t.iv_length = 0,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n-\t\t.alg.cipher = RTE_CRYPTO_CIPHER_DES_CBC,\n-\t\t.key_length = 8,\n-\t\t.iv_length = 8,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n-\t\t.alg.cipher = RTE_CRYPTO_CIPHER_3DES_CBC,\n-\t\t.key_length = 24,\n-\t\t.iv_length = 8,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n-\t\t.alg.cipher = RTE_CRYPTO_CIPHER_AES_CBC,\n-\t\t.key_length = 16,\n-\t\t.iv_length = 16,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n-\t\t.alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR,\n-\t\t.key_length = 16,\n-\t\t.iv_length = 16,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n-\t\t.alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR,\n-\t\t.key_length = 24,\n-\t\t.iv_length = 16,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n-\t\t.alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR,\n-\t\t.key_length = 32,\n-\t\t.iv_length = 16,\n-\t},\n-};\n-\n-static const struct crypto_param auth_list[] = {\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n-\t\t.alg.auth = RTE_CRYPTO_AUTH_NULL,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n-\t\t.alg.auth = RTE_CRYPTO_AUTH_MD5_HMAC,\n-\t\t.key_length = 16,\n-\t\t.digest_length = 12,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n-\t\t.alg.auth = RTE_CRYPTO_AUTH_SHA256_HMAC,\n-\t\t.key_length = 32,\n-\t\t.digest_length = 16,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n-\t\t.alg.auth = RTE_CRYPTO_AUTH_SHA384_HMAC,\n-\t\t.key_length = 48,\n-\t\t.digest_length = 24,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n-\t\t.alg.auth = RTE_CRYPTO_AUTH_SHA512_HMAC,\n-\t\t.key_length = 64,\n-\t\t.digest_length = 32,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n-\t\t.alg.auth = RTE_CRYPTO_AUTH_AES_XCBC_MAC,\n-\t\t.key_length = 16,\n-\t\t.digest_length = 12,\n-\t},\n-\t{\n-\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n-\t\t.alg.auth = RTE_CRYPTO_AUTH_AES_GMAC,\n-\t\t.key_length = 16,\n-\t\t.digest_length = 16,\n-\t\t.iv_length = 12,\n-\t},\n-};\n-\n struct crypto_param_comb {\n \tconst struct crypto_param *param1;\n \tconst struct crypto_param *param2;\ndiff --git a/app/test/test_security_proto.h b/app/test/test_security_proto.h\nindex b91181384b..e8d6193530 100644\n--- a/app/test/test_security_proto.h\n+++ b/app/test/test_security_proto.h\n@@ -8,6 +8,130 @@\n #include <rte_cryptodev.h>\n #include <rte_security.h>\n \n+struct crypto_param {\n+\tenum rte_crypto_sym_xform_type type;\n+\tunion {\n+\t\tenum rte_crypto_cipher_algorithm cipher;\n+\t\tenum rte_crypto_auth_algorithm auth;\n+\t\tenum rte_crypto_aead_algorithm aead;\n+\t} alg;\n+\tuint16_t key_length;\n+\tuint16_t iv_length;\n+\tuint16_t digest_length;\n+};\n+\n+static const struct crypto_param aead_list[] = {\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n+\t\t.alg.aead = RTE_CRYPTO_AEAD_AES_GCM,\n+\t\t.key_length = 16,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n+\t\t.alg.aead = RTE_CRYPTO_AEAD_AES_GCM,\n+\t\t.key_length = 24,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n+\t\t.alg.aead = RTE_CRYPTO_AEAD_AES_GCM,\n+\t\t.key_length = 32,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n+\t\t.alg.aead = RTE_CRYPTO_AEAD_AES_CCM,\n+\t\t.key_length = 32\n+\t},\n+};\n+\n+static const struct crypto_param cipher_list[] = {\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t.alg.cipher = RTE_CRYPTO_CIPHER_NULL,\n+\t\t.key_length = 0,\n+\t\t.iv_length = 0,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t.alg.cipher = RTE_CRYPTO_CIPHER_DES_CBC,\n+\t\t.key_length = 8,\n+\t\t.iv_length = 8,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t.alg.cipher = RTE_CRYPTO_CIPHER_3DES_CBC,\n+\t\t.key_length = 24,\n+\t\t.iv_length = 8,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t.alg.cipher = RTE_CRYPTO_CIPHER_AES_CBC,\n+\t\t.key_length = 16,\n+\t\t.iv_length = 16,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t.alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR,\n+\t\t.key_length = 16,\n+\t\t.iv_length = 16,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t.alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR,\n+\t\t.key_length = 24,\n+\t\t.iv_length = 16,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t.alg.cipher = RTE_CRYPTO_CIPHER_AES_CTR,\n+\t\t.key_length = 32,\n+\t\t.iv_length = 16,\n+\t},\n+};\n+\n+static const struct crypto_param auth_list[] = {\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t.alg.auth = RTE_CRYPTO_AUTH_NULL,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t.alg.auth = RTE_CRYPTO_AUTH_MD5_HMAC,\n+\t\t.key_length = 16,\n+\t\t.digest_length = 12,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t.alg.auth = RTE_CRYPTO_AUTH_SHA256_HMAC,\n+\t\t.key_length = 32,\n+\t\t.digest_length = 16,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t.alg.auth = RTE_CRYPTO_AUTH_SHA384_HMAC,\n+\t\t.key_length = 48,\n+\t\t.digest_length = 24,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t.alg.auth = RTE_CRYPTO_AUTH_SHA512_HMAC,\n+\t\t.key_length = 64,\n+\t\t.digest_length = 32,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t.alg.auth = RTE_CRYPTO_AUTH_AES_XCBC_MAC,\n+\t\t.key_length = 16,\n+\t\t.digest_length = 12,\n+\t},\n+\t{\n+\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t.alg.auth = RTE_CRYPTO_AUTH_AES_GMAC,\n+\t\t.key_length = 16,\n+\t\t.digest_length = 16,\n+\t\t.iv_length = 12,\n+\t},\n+};\n+\n int test_sec_crypto_caps_aead_verify(const struct rte_security_capability *sec_cap,\n \t\tstruct rte_crypto_sym_xform *aead);\n \n", "prefixes": [ "02/14" ] }{ "id": 134914, "url": "