From: Pablo de Lara Date: Tue, 18 Jul 2017 07:58:17 +0000 (+0100) Subject: examples/l2fwd-crypto: fix AEAD IV setting X-Git-Tag: spdx-start~2390 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ef896e92176498a03aa50cf92c1533acb701a210;p=dpdk.git examples/l2fwd-crypto: fix AEAD IV setting IV was not being set for AEAD algorithms. Fixes: 2661f4fbe93d ("examples/l2fwd-crypto: add AEAD parameters") Signed-off-by: Pablo de Lara --- diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 664e0e0d2d..da2f5099bb 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -764,6 +764,11 @@ l2fwd_main_loop(struct l2fwd_crypto_options *options) } if (port_cparams[i].do_aead) { + port_cparams[i].aead_iv.data = options->aead_iv.data; + port_cparams[i].aead_iv.length = options->aead_iv.length; + if (!options->aead_iv_param) + generate_random_key(port_cparams[i].aead_iv.data, + port_cparams[i].aead_iv.length); port_cparams[i].aead_algo = options->aead_xform.aead.algo; port_cparams[i].digest_length = options->aead_xform.aead.digest_length;