From 4040126053d8dd79dbd63b721fa6b73bd3863e0e Mon Sep 17 00:00:00 2001 From: Aviad Yehezkel Date: Tue, 24 Oct 2017 15:48:59 +0300 Subject: [PATCH] examples/ipsec-secgw: fix AAD length setting Fixes: 501e9c226adf ("examples/ipsec-secgw: add AEAD parameters") Cc: stable@dpdk.org Signed-off-by: Aviad Yehezkel Acked-by: Radu Nicolau Acked-by: Pablo de Lara --- examples/ipsec-secgw/sa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 7be0e62840..0f5c4fe412 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -375,7 +375,6 @@ parse_sa_tokens(char **tokens, uint32_t n_tokens, rule->auth_algo = algo->algo; rule->auth_key_len = algo->key_len; rule->digest_len = algo->digest_len; - rule->aad_len = algo->key_len; /* NULL algorithm and combined algos do not * require auth key @@ -431,7 +430,7 @@ parse_sa_tokens(char **tokens, uint32_t n_tokens, rule->aead_algo = algo->algo; rule->cipher_key_len = algo->key_len; rule->digest_len = algo->digest_len; - rule->aad_len = algo->key_len; + rule->aad_len = algo->aad_len; rule->block_size = algo->block_size; rule->iv_len = algo->iv_len; -- 2.20.1