examples/l2fwd-crypto: fix length of random IV/AAD
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 31 Mar 2016 09:32:10 +0000 (10:32 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 31 Mar 2016 20:24:21 +0000 (22:24 +0200)
commita158899a8063cafb6709373a6ebcd66aa019f756
tree98398b4aa82d7a0c20531c542bddc184bebf2046
parent49f79e86480d917f54247996a23c709554cbd88a
examples/l2fwd-crypto: fix length of random IV/AAD

App was generating a random IV/AAD of only 4 bytes,
instead of the actual length, since it was using sizeof(length).

Fixes: 27cf2d1b18e1 ("examples/l2fwd-crypto: discover capabilities")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Tested-by: Min Cao <min.cao@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
examples/l2fwd-crypto/main.c