Add suport for SNOW-V and SNOW-V AEAD algorithms.

Signed-off-by: Radu Nicolau <radu.nico...@intel.com>
---
 app/test-crypto-perf/cperf_ops.c | 6 ++++--
 doc/guides/tools/cryptoperf.rst  | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/app/test-crypto-perf/cperf_ops.c b/app/test-crypto-perf/cperf_ops.c
index 37d06f1dea..f8c5bd6a4e 100644
--- a/app/test-crypto-perf/cperf_ops.c
+++ b/app/test-crypto-perf/cperf_ops.c
@@ -474,7 +474,8 @@ cperf_set_ops_cipher(struct rte_crypto_op **ops,
 
                if (options->cipher_algo == RTE_CRYPTO_CIPHER_SNOW3G_UEA2 ||
                                options->cipher_algo == 
RTE_CRYPTO_CIPHER_KASUMI_F8 ||
-                               options->cipher_algo == 
RTE_CRYPTO_CIPHER_ZUC_EEA3)
+                               options->cipher_algo == 
RTE_CRYPTO_CIPHER_ZUC_EEA3 ||
+                               options->cipher_algo == 
RTE_CRYPTO_CIPHER_SNOW_V)
                        sym_op->cipher.data.length <<= 3;
 
                sym_op->cipher.data.offset = 0;
@@ -633,7 +634,8 @@ cperf_set_ops_cipher_auth(struct rte_crypto_op **ops,
 
                if (options->cipher_algo == RTE_CRYPTO_CIPHER_SNOW3G_UEA2 ||
                                options->cipher_algo == 
RTE_CRYPTO_CIPHER_KASUMI_F8 ||
-                               options->cipher_algo == 
RTE_CRYPTO_CIPHER_ZUC_EEA3)
+                               options->cipher_algo == 
RTE_CRYPTO_CIPHER_ZUC_EEA3 ||
+                               options->cipher_algo == 
RTE_CRYPTO_CIPHER_SNOW_V)
                        sym_op->cipher.data.length <<= 3;
 
                sym_op->cipher.data.offset = 0;
diff --git a/doc/guides/tools/cryptoperf.rst b/doc/guides/tools/cryptoperf.rst
index 017e8ef934..72774e04cd 100644
--- a/doc/guides/tools/cryptoperf.rst
+++ b/doc/guides/tools/cryptoperf.rst
@@ -223,6 +223,7 @@ The following are the application command-line options:
            kasumi-f8
            snow3g-uea2
            zuc-eea3
+           snow-v
 
 * ``--cipher-op <mode>``
 
@@ -287,6 +288,7 @@ The following are the application command-line options:
 
            aes-ccm
            aes-gcm
+           snow-v-aead
 
 * ``--aead-op <mode>``
 
-- 
2.43.0

Reply via email to