From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo de Lara Subject: [PATCH] l2fwd-crypto: add SNOW3G algorithms Date: Tue, 22 Mar 2016 13:17:24 +0000 Message-ID: <1458652644-30754-1-git-send-email-pablo.de.lara.guarch@intel.com> Cc: declan.doherty@intel.com, Pablo de Lara To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 197F329CD for ; Tue, 22 Mar 2016 14:15:04 +0100 (CET) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Since SNOW3G UEA2/UIA2 are supported now by both HW and SW, l2fwd-crypto may use them, extending the list of algorithms parsed from command line. Signed-off-by: Pablo de Lara --- examples/l2fwd-crypto/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 59f8c92..05cdd26 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -835,6 +835,9 @@ parse_cipher_algo(enum rte_crypto_cipher_algorithm *algo, char *optarg) } else if (strcmp("AES_GCM", optarg) == 0) { *algo = RTE_CRYPTO_CIPHER_AES_GCM; return 0; + } else if (strcmp("SNOW3G_UEA2", optarg) == 0) { + *algo = RTE_CRYPTO_CIPHER_SNOW3G_UEA2; + return 0; } printf("Cipher algorithm not supported!\n"); @@ -901,6 +904,9 @@ parse_auth_algo(enum rte_crypto_auth_algorithm *algo, char *optarg) } else if (strcmp("SHA512_HMAC", optarg) == 0) { *algo = RTE_CRYPTO_AUTH_SHA512_HMAC; return 0; + } else if (strcmp("SNOW3G_UIA2", optarg) == 0) { + *algo = RTE_CRYPTO_AUTH_SNOW3G_UIA2; + return 0; } printf("Authentication algorithm specified not supported!\n"); -- 2.5.0