Message ID | 20220817060856.78582-1-arkadiuszx.kusztal@intel.com (mailing list archive) |
---|---|
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]) by inbox.dpdk.org (Postfix) with ESMTP id 0C56CA0032; Wed, 17 Aug 2022 09:17:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 928CC40DDA; Wed, 17 Aug 2022 09:17:47 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 231B740691 for <dev@dpdk.org>; Wed, 17 Aug 2022 09:17:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660720666; x=1692256666; h=from:to:cc:subject:date:message-id; bh=GIrTtpERwXY18WVqZ4wxSyLlYQ44xKr8UxxyWi7BWqM=; b=AsjKOi9kZfRKpY8n41j40fveeWqwuPDcU/XjuQ8G9J6r1TGrFzC1p8NV qHAyKFdbpgStrIUbopIbQi5KpkOa6G6WI0Ge5VQMVuBhcLmOlfy33+B3U 0u8tT7cnNbgSBT2QW1UJ3MI0+/ACc7NiE38zPgbIQUC6cJFyCMB5IMEFL 4cY48Pde/dZ5U4C/fIRX5NruhDbq3zvz4qTeuTS0CMHVu9q8cKHM/iWQA nHhSMhuFCmbKaj+8prsQ1J22PYtldEnY5LEt2qIrTEk8N86iMVFldHYm+ N53YWgo4Uzvr/rGPRKuuf+CnhnIilsb85HvRx+3vCftjnBVAEv0dkzYkt A==; X-IronPort-AV: E=McAfee;i="6400,9594,10441"; a="356421120" X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="356421120" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2022 00:17:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="667485762" Received: from silpixa00399302.ir.intel.com ([10.237.214.136]) by fmsmga008.fm.intel.com with ESMTP; 17 Aug 2022 00:17:43 -0700 From: Arek Kusztal <arkadiuszx.kusztal@intel.com> To: dev@dpdk.org Cc: gakhil@marvell.com, kai.ji@intel.com, Arek Kusztal <arkadiuszx.kusztal@intel.com> Subject: [PATCH 0/4] cryptodev: add SM3 and SM4 algorithms Date: Wed, 17 Aug 2022 07:08:52 +0100 Message-Id: <20220817060856.78582-1-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.13.6 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>, <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>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
cryptodev: add SM3 and SM4 algorithms
|
|
Message
Arkadiusz Kusztal
Aug. 17, 2022, 6:08 a.m. UTC
ShangMi 4 (SM4) is a block cipher used in the Chinese National Standard for Wireless LAN WAPI and also used with Transport Layer Security. ShangMi 3 (SM3) is a cryptographic hash function used in the Chinese National Standard. This patcheset adds both to the Cryptodev. Arek Kusztal (4): cryptodev: add SM4 encryption algorithm cryptodev: add SM3 hash algorithm crypto/qat: add SM4 encryption algorithm crypto/qat : add SM3 hash algorithm doc/guides/cryptodevs/features/default.ini | 4 ++++ doc/guides/cryptodevs/features/qat.ini | 4 ++++ doc/guides/rel_notes/release_22_11.rst | 16 ++++++++++++++ drivers/common/qat/qat_adf/icp_qat_hw.h | 2 +- drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 9 ++++++++ drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 9 ++++++++ drivers/crypto/qat/qat_sym_session.c | 32 +++++++++++++++++++++++++++- lib/cryptodev/rte_crypto_sym.h | 13 +++++++++-- lib/cryptodev/rte_cryptodev.c | 8 +++++-- 9 files changed, 91 insertions(+), 6 deletions(-)
Comments
> -----Original Message----- > From: Arek Kusztal <arkadiuszx.kusztal@intel.com> > Sent: Wednesday, August 17, 2022 11:39 AM > To: dev@dpdk.org > Cc: Akhil Goyal <gakhil@marvell.com>; kai.ji@intel.com; Arek Kusztal > <arkadiuszx.kusztal@intel.com> > Subject: [EXT] [PATCH 0/4] cryptodev: add SM3 and SM4 algorithms > > External Email > > ---------------------------------------------------------------------- > ShangMi 4 (SM4) is a block cipher used in the Chinese National Standard for > Wireless LAN WAPI and also used with Transport Layer Security. > ShangMi 3 (SM3) is a cryptographic hash function used in the > Chinese National Standard. Add these full forms in comments of the enums that are added in patch 1 and 2 > > This patcheset adds both to the Cryptodev. > > Arek Kusztal (4): > cryptodev: add SM4 encryption algorithm > cryptodev: add SM3 hash algorithm > crypto/qat: add SM4 encryption algorithm > crypto/qat : add SM3 hash algorithm > > doc/guides/cryptodevs/features/default.ini | 4 ++++ > doc/guides/cryptodevs/features/qat.ini | 4 ++++ > doc/guides/rel_notes/release_22_11.rst | 16 ++++++++++++++ > drivers/common/qat/qat_adf/icp_qat_hw.h | 2 +- > drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 9 ++++++++ > drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 9 ++++++++ > drivers/crypto/qat/qat_sym_session.c | 32 > +++++++++++++++++++++++++++- > lib/cryptodev/rte_crypto_sym.h | 13 +++++++++-- > lib/cryptodev/rte_cryptodev.c | 8 +++++-- > 9 files changed, 91 insertions(+), 6 deletions(-) > > -- > 2.13.6
> -----Original Message----- > From: Akhil Goyal <gakhil@marvell.com> > Sent: Wednesday, September 21, 2022 9:37 PM > To: Kusztal, ArkadiuszX <arkadiuszx.kusztal@intel.com>; dev@dpdk.org > Cc: Ji, Kai <kai.ji@intel.com> > Subject: RE: [EXT] [PATCH 0/4] cryptodev: add SM3 and SM4 algorithms > > > > > -----Original Message----- > > From: Arek Kusztal <arkadiuszx.kusztal@intel.com> > > Sent: Wednesday, August 17, 2022 11:39 AM > > To: dev@dpdk.org > > Cc: Akhil Goyal <gakhil@marvell.com>; kai.ji@intel.com; Arek Kusztal > > <arkadiuszx.kusztal@intel.com> > > Subject: [EXT] [PATCH 0/4] cryptodev: add SM3 and SM4 algorithms > > > > External Email > > > > ---------------------------------------------------------------------- > > ShangMi 4 (SM4) is a block cipher used in the Chinese National > > Standard for Wireless LAN WAPI and also used with Transport Layer Security. > > ShangMi 3 (SM3) is a cryptographic hash function used in the Chinese > > National Standard. > > Add these full forms in comments of the enums that are added in patch 1 and 2 I do not think we should, it is just current description of usage state of SM3/4. Especially that we do not put much effort into other algorithms, particularly with 3gpp algorithms which are all over the place with naming and comments. > > > > > This patcheset adds both to the Cryptodev. > > > > Arek Kusztal (4): > > cryptodev: add SM4 encryption algorithm > > cryptodev: add SM3 hash algorithm > > crypto/qat: add SM4 encryption algorithm > > crypto/qat : add SM3 hash algorithm > > > > doc/guides/cryptodevs/features/default.ini | 4 ++++ > > doc/guides/cryptodevs/features/qat.ini | 4 ++++ > > doc/guides/rel_notes/release_22_11.rst | 16 ++++++++++++++ > > drivers/common/qat/qat_adf/icp_qat_hw.h | 2 +- > > drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c | 9 ++++++++ > > drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c | 9 ++++++++ > > drivers/crypto/qat/qat_sym_session.c | 32 > > +++++++++++++++++++++++++++- > > lib/cryptodev/rte_crypto_sym.h | 13 +++++++++-- > > lib/cryptodev/rte_cryptodev.c | 8 +++++-- > > 9 files changed, 91 insertions(+), 6 deletions(-) > > > > -- > > 2.13.6
> > > ShangMi 4 (SM4) is a block cipher used in the Chinese National > > > Standard for Wireless LAN WAPI and also used with Transport Layer Security. > > > ShangMi 3 (SM3) is a cryptographic hash function used in the Chinese > > > National Standard. > > > > Add these full forms in comments of the enums that are added in patch 1 and 2 > I do not think we should, it is just current description of usage state of SM3/4. > Especially that we do not put much effort into other algorithms, particularly with > 3gpp algorithms which are all over the place with naming and comments. Yes, we do not do so, as those algos are very common and does not have any other full form. But SM3 and SM4 are relatively new and does not come up easily in search results if we just type SM3. However, if we search for ShangMi 3, we get the RFC on first result.
> -----Original Message----- > From: Akhil Goyal <gakhil@marvell.com> > Sent: Wednesday, September 28, 2022 1:05 PM > To: Kusztal, ArkadiuszX <arkadiuszx.kusztal@intel.com>; dev@dpdk.org > Cc: Ji, Kai <kai.ji@intel.com> > Subject: RE: [EXT] [PATCH 0/4] cryptodev: add SM3 and SM4 algorithms > > > > > ShangMi 4 (SM4) is a block cipher used in the Chinese National > > > > Standard for Wireless LAN WAPI and also used with Transport Layer > Security. > > > > ShangMi 3 (SM3) is a cryptographic hash function used in the > > > > Chinese National Standard. > > > > > > Add these full forms in comments of the enums that are added in > > > patch 1 and 2 > > I do not think we should, it is just current description of usage state of SM3/4. > > Especially that we do not put much effort into other algorithms, > > particularly with 3gpp algorithms which are all over the place with naming and > comments. > > Yes, we do not do so, as those algos are very common and does not have any > other full form. > But SM3 and SM4 are relatively new and does not come up easily in search > results if we just type SM3. > However, if we search for ShangMi 3, we get the RFC on first result. Ok, you meant algorithm full name - not full comment. I misunderstood you, yes of course I will add full name.