[dpdk-dev,v2,1/4] cryptodev: add missing algorithm strings

Message ID 1488206326-70385-2-git-send-email-pablo.de.lara.guarch@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Pablo de Lara Guarch
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

De Lara Guarch, Pablo Feb. 27, 2017, 2:38 p.m. UTC
  DES-CBC and AUTH NULL algorithms were missing in
the array of algorithm strings.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
 lib/librte_cryptodev/rte_cryptodev.c | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c
index a64320e..fedb9d0 100644
--- a/lib/librte_cryptodev/rte_cryptodev.c
+++ b/lib/librte_cryptodev/rte_cryptodev.c
@@ -133,6 +133,8 @@  rte_crypto_cipher_algorithm_strings[] = {
 
 	[RTE_CRYPTO_CIPHER_ARC4]	= "arc4",
 
+	[RTE_CRYPTO_CIPHER_DES_CBC]     = "des-cbc",
+
 	[RTE_CRYPTO_CIPHER_NULL]	= "null",
 
 	[RTE_CRYPTO_CIPHER_KASUMI_F8]	= "kasumi-f8",
@@ -166,6 +168,8 @@  rte_crypto_auth_algorithm_strings[] = {
 	[RTE_CRYPTO_AUTH_MD5]		= "md5",
 	[RTE_CRYPTO_AUTH_MD5_HMAC]	= "md5-hmac",
 
+	[RTE_CRYPTO_AUTH_NULL]		= "null",
+
 	[RTE_CRYPTO_AUTH_SHA1]		= "sha1",
 	[RTE_CRYPTO_AUTH_SHA1_HMAC]	= "sha1-hmac",