examples/l2fwd-crypto: support AES-CCM
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 21 Sep 2017 13:11:15 +0000 (14:11 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 12 Oct 2017 14:14:55 +0000 (15:14 +0100)
commitff5d5b01f8f21a87387042843b8494bc2d82b1cd
tree227e751496657fd67b19ec70ea3dbeb6b6907311
parent36572831720450f3657480de36721fee7c65f92d
examples/l2fwd-crypto: support AES-CCM

According to the API, AES-CCM has special requirements
when setting IV and AAD fields.
The L2fwd-crypto app is updated to set the nonce (IV)
and AAD in the right positions in these two fields
(1 byte after start of IV field and 18 bytes after start
of AAD).

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
examples/l2fwd-crypto/main.c