examples/l2fwd-crypto: fix AEAD tests when AAD is zero
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 17 Apr 2017 12:23:37 +0000 (13:23 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 20 Apr 2017 09:32:45 +0000 (11:32 +0200)
commit18f421f65bb8dcfa77919c48edeb54c867ce89c8
tree253daac1f4922034064f1cb49419ac501918252b
parentad674b4d4a354e64b5fca9a4f14f0bd3dfe7db04
examples/l2fwd-crypto: fix AEAD tests when AAD is zero

For AEAD algorithms, additional authenticated data (AAD)
can be passed, but it is optional, so its size can be zero.
However, it is required to set this length to zero in the crypto
operation to avoid undefined behaviour.

Fixes: 617a7949c98a ("examples/l2fwd-crypto: parse AAD parameter")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/l2fwd-crypto/main.c