From: Pablo de Lara Date: Tue, 22 Mar 2016 21:24:00 +0000 (+0000) Subject: examples/l2fwd-crypto: add AES-GCM algorithm X-Git-Tag: spdx-start~7224 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3d6e4bcf51cbfff1b0d40157a71cdbb0d97991a5;p=dpdk.git examples/l2fwd-crypto: add AES-GCM algorithm AES GCM is an algorithm for both ciphering and authentication, but the authentication algorithm was missing in the list of supported algorithms that can be passed from command line. Signed-off-by: Pablo de Lara --- diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 2722b0d58b..c209b4242c 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -910,7 +910,10 @@ parse_key(uint8_t *data, char *input_arg) static int parse_auth_algo(enum rte_crypto_auth_algorithm *algo, char *optarg) { - if (strcmp("MD5_HMAC", optarg) == 0) { + if (strcmp("AES_GCM", optarg) == 0) { + *algo = RTE_CRYPTO_AUTH_AES_GCM; + return 0; + } else if (strcmp("MD5_HMAC", optarg) == 0) { *algo = RTE_CRYPTO_AUTH_MD5_HMAC; return 0; } else if (strcmp("SHA1_HMAC", optarg) == 0) {