DPDK patches and discussions
 help / color / mirror / Atom feed
From: Nithinsen Kaithakadan <nkaithakadan@marvell.com>
To: <dev@dpdk.org>
Cc: <anoobj@marvell.com>, <ktejasree@marvell.com>, <gakhil@marvell.com>
Subject: [PATCH] cryptodev: add SNOW5G spec
Date: Tue, 6 Jan 2026 10:43:57 +0000	[thread overview]
Message-ID: <20260106104357.2452583-1-nkaithakadan@marvell.com> (raw)

Add specification for SNOW5G cipher and auth.

Signed-off-by: Nithinsen Kaithakadan <nkaithakadan@marvell.com>
---
Application and driver changes will be submitted as a separate patch.
 doc/guides/cryptodevs/features/default.ini | 2 ++
 lib/cryptodev/rte_crypto_sym.h             | 6 ++++++
 lib/cryptodev/rte_cryptodev.c              | 2 ++
 3 files changed, 10 insertions(+)

diff --git a/doc/guides/cryptodevs/features/default.ini b/doc/guides/cryptodevs/features/default.ini
index 64198f013a..b377dc2c4c 100644
--- a/doc/guides/cryptodevs/features/default.ini
+++ b/doc/guides/cryptodevs/features/default.ini
@@ -60,6 +60,7 @@ AES DOCSIS BPI =
 DES CBC        =
 DES DOCSIS BPI =
 SNOW3G UEA2    =
+SNOW5G NEA4    =
 KASUMI F8      =
 ZUC EEA3       =
 SM4 ECB        =
@@ -89,6 +90,7 @@ SHA512 HMAC  =
 AES XCBC MAC =
 AES GMAC     =
 SNOW3G UIA2  =
+SNOW5G NIA4  =
 KASUMI F9    =
 ZUC EIA3     =
 AES CMAC (128)  =
diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h
index 6268bab327..b15e32ddc9 100644
--- a/lib/cryptodev/rte_crypto_sym.h
+++ b/lib/cryptodev/rte_crypto_sym.h
@@ -180,6 +180,9 @@ enum rte_crypto_cipher_algorithm {
 	/**< ShangMi 4 (SM4) algorithm in CFB mode */
 	RTE_CRYPTO_CIPHER_SM4_XTS
 	/**< ShangMi 4 (SM4) algorithm in XTS mode */
+
+	RTE_CRYPTO_CIPHER_SNOW5G_NEA4,
+	/**< SNOW 5G algorithm in NEA4 mode */
 };
 
 /** Symmetric Cipher Direction */
@@ -384,6 +387,9 @@ enum rte_crypto_auth_algorithm {
 	/**< 256 bit SHAKE algorithm. */
 	RTE_CRYPTO_AUTH_SM3_HMAC,
 	/** < HMAC using ShangMi 3 (SM3) algorithm */
+
+	RTE_CRYPTO_AUTH_SNOW5G_NIA4,
+	/**< SNOW 5G algorithm in NIA4 mode. */
 };
 
 /** Symmetric Authentication / Hash Operations */
diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c
index f4c6f692f0..6079ec30b1 100644
--- a/lib/cryptodev/rte_cryptodev.c
+++ b/lib/cryptodev/rte_cryptodev.c
@@ -96,6 +96,7 @@ crypto_cipher_algorithm_strings[] = {
 
 	[RTE_CRYPTO_CIPHER_KASUMI_F8]	= "kasumi-f8",
 	[RTE_CRYPTO_CIPHER_SNOW3G_UEA2]	= "snow3g-uea2",
+	[RTE_CRYPTO_CIPHER_SNOW5G_NEA4]	= "snow5g-nea4",
 	[RTE_CRYPTO_CIPHER_ZUC_EEA3]	= "zuc-eea3",
 	[RTE_CRYPTO_CIPHER_SM4_ECB]	= "sm4-ecb",
 	[RTE_CRYPTO_CIPHER_SM4_CBC]	= "sm4-cbc",
@@ -156,6 +157,7 @@ crypto_auth_algorithm_strings[] = {
 
 	[RTE_CRYPTO_AUTH_KASUMI_F9]	= "kasumi-f9",
 	[RTE_CRYPTO_AUTH_SNOW3G_UIA2]	= "snow3g-uia2",
+	[RTE_CRYPTO_AUTH_SNOW5G_NIA4]	= "snow5g-nia4",
 	[RTE_CRYPTO_AUTH_ZUC_EIA3]	= "zuc-eia3",
 	[RTE_CRYPTO_AUTH_SM3]		= "sm3",
 	[RTE_CRYPTO_AUTH_SM3_HMAC]	= "sm3-hmac",
-- 
2.48.1


             reply	other threads:[~2026-01-06 10:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-06 10:43 Nithinsen Kaithakadan [this message]
2026-01-06 11:23 ` [PATCH v2] " Nithinsen Kaithakadan
2026-01-07 10:59   ` Radu Nicolau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260106104357.2452583-1-nkaithakadan@marvell.com \
    --to=nkaithakadan@marvell.com \
    --cc=anoobj@marvell.com \
    --cc=dev@dpdk.org \
    --cc=gakhil@marvell.com \
    --cc=ktejasree@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).