[v2,4/5] app/crypto-perf: add support for SNOW-V
Checks
Commit Message
Add support for SNOW-V and SNOW-V AEAD algorithms.
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
app/test-crypto-perf/cperf_ops.c | 6 ++++--
doc/guides/tools/cryptoperf.rst | 2 ++
2 files changed, 6 insertions(+), 2 deletions(-)
@@ -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;
@@ -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>``