Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115191/?format=api
http://patches.dpdk.org/api/patches/115191/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220817060856.78582-3-arkadiuszx.kusztal@intel.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": "<20220817060856.78582-3-arkadiuszx.kusztal@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220817060856.78582-3-arkadiuszx.kusztal@intel.com", "date": "2022-08-17T06:08:54", "name": "[2/4] cryptodev: add SM3 hash algorithm", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "bcba4ace82ffce80bbedeb343ecb15dbd76d47dd", "submitter": { "id": 452, "url": "http://patches.dpdk.org/api/people/452/?format=api", "name": "Arkadiusz Kusztal", "email": "arkadiuszx.kusztal@intel.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/20220817060856.78582-3-arkadiuszx.kusztal@intel.com/mbox/", "series": [ { "id": 24332, "url": "http://patches.dpdk.org/api/series/24332/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24332", "date": "2022-08-17T06:08:52", "name": "cryptodev: add SM3 and SM4 algorithms", "version": 1, "mbox": "http://patches.dpdk.org/series/24332/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/115191/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/115191/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 465B5A0032;\n\tWed, 17 Aug 2022 09:17:58 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 53365415D7;\n\tWed, 17 Aug 2022 09:17:50 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 111A94113C\n for <dev@dpdk.org>; Wed, 17 Aug 2022 09:17:48 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Aug 2022 00:17:48 -0700", "from silpixa00399302.ir.intel.com ([10.237.214.136])\n by fmsmga008.fm.intel.com with ESMTP; 17 Aug 2022 00:17:47 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1660720669; x=1692256669;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=P42+X2ZB5/uCwnlWQZKRqyxi8o4amtPc4RiL8jPm5Rw=;\n b=HjXhlhR9pAy2yPXxwqU02dEkS+uFGVUQGMDPjA0vM6Q3ZiUptDo7wcuo\n giJ5MoFV9hwk4uj8ajHW4kyAXojvNHSphycqWgJdgq6QmcPF1IO6W6eq2\n Z48zR6f7cxVjMolTuJuZhFB26Ye+nBYzgVbTtJRCKMYTNoHEI/7ZWGa7H\n xH4uUHZNDvhM+h4VS2g+qkEFIr3WmKa9KkgaKDlj+7AXTd8h2zuk3JGUo\n pSoYcH/H5sOkTd+f1VPD50nZVCvi/+zaN/9ZUfwup8Mf6Aq3xCY1DcX6j\n mp7gUaFtdEYqmi2lpgooJNYUvK1LC9ff/Ic0Q+thtnIiFbiWbR4UAMZcb g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10441\"; a=\"356421125\"", "E=Sophos;i=\"5.93,242,1654585200\"; d=\"scan'208\";a=\"356421125\"", "E=Sophos;i=\"5.93,242,1654585200\"; d=\"scan'208\";a=\"667485785\"" ], "X-ExtLoop1": "1", "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>", "To": "dev@dpdk.org", "Cc": "gakhil@marvell.com, kai.ji@intel.com,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>", "Subject": "[PATCH 2/4] cryptodev: add SM3 hash algorithm", "Date": "Wed, 17 Aug 2022 07:08:54 +0100", "Message-Id": "<20220817060856.78582-3-arkadiuszx.kusztal@intel.com>", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20220817060856.78582-1-arkadiuszx.kusztal@intel.com>", "References": "<20220817060856.78582-1-arkadiuszx.kusztal@intel.com>", "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": "SM3 is a cryptographic hash function used in\nthe Chinese National Standard.\n\n- Added SM3 algorithm\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n doc/guides/cryptodevs/features/default.ini | 1 +\n doc/guides/rel_notes/release_22_11.rst | 5 +++++\n lib/cryptodev/rte_crypto_sym.h | 4 +++-\n lib/cryptodev/rte_cryptodev.c | 3 ++-\n 4 files changed, 11 insertions(+), 2 deletions(-)", "diff": "diff --git a/doc/guides/cryptodevs/features/default.ini b/doc/guides/cryptodevs/features/default.ini\nindex 1608426b12..d51d80ff80 100644\n--- a/doc/guides/cryptodevs/features/default.ini\n+++ b/doc/guides/cryptodevs/features/default.ini\n@@ -98,6 +98,7 @@ SHA3_384 =\n SHA3_384 HMAC =\n SHA3_512 =\n SHA3_512 HMAC =\n+SM3 =\n \n ;\n ; Supported AEAD algorithms of a default crypto driver.\ndiff --git a/doc/guides/rel_notes/release_22_11.rst b/doc/guides/rel_notes/release_22_11.rst\nindex 15fc6ec40a..0609652b07 100644\n--- a/doc/guides/rel_notes/release_22_11.rst\n+++ b/doc/guides/rel_notes/release_22_11.rst\n@@ -60,6 +60,11 @@ New Features\n Added SM4 encryption algorithm to the Cryptodev API.\n Supported modes are ECB, CBC and CTR.\n \n+* **Added SM3 hash algorithm.**\n+\n+ Added SM3 hash algorithm to the Cryptodev API.\n+\n+\n Removed Items\n -------------\n \ndiff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h\nindex 33420e0b36..1b07e832c3 100644\n--- a/lib/cryptodev/rte_crypto_sym.h\n+++ b/lib/cryptodev/rte_crypto_sym.h\n@@ -370,8 +370,10 @@ enum rte_crypto_auth_algorithm {\n \t/**< HMAC using 384 bit SHA3 algorithm. */\n \tRTE_CRYPTO_AUTH_SHA3_512,\n \t/**< 512 bit SHA3 algorithm. */\n-\tRTE_CRYPTO_AUTH_SHA3_512_HMAC\n+\tRTE_CRYPTO_AUTH_SHA3_512_HMAC,\n \t/**< HMAC using 512 bit SHA3 algorithm. */\n+\tRTE_CRYPTO_AUTH_SM3\n+\t/**< SM3 algorithm */\n };\n \n /** Authentication algorithm name strings */\ndiff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c\nindex 266804f0fe..2b6c7de930 100644\n--- a/lib/cryptodev/rte_cryptodev.c\n+++ b/lib/cryptodev/rte_cryptodev.c\n@@ -135,7 +135,8 @@ rte_crypto_auth_algorithm_strings[] = {\n \n \t[RTE_CRYPTO_AUTH_KASUMI_F9]\t= \"kasumi-f9\",\n \t[RTE_CRYPTO_AUTH_SNOW3G_UIA2]\t= \"snow3g-uia2\",\n-\t[RTE_CRYPTO_AUTH_ZUC_EIA3]\t= \"zuc-eia3\"\n+\t[RTE_CRYPTO_AUTH_ZUC_EIA3]\t= \"zuc-eia3\",\n+\t[RTE_CRYPTO_AUTH_SM3]\t\t= \"zuc-sm3\"\n };\n \n /**\n", "prefixes": [ "2/4" ] }{ "id": 115191, "url": "