examples/ipsec-secgw: support SHA256 HMAC
authorZbigniew Bodek <zbigniew.bodek@caviumnetworks.com>
Thu, 12 Jan 2017 14:52:37 +0000 (15:52 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 18 Jan 2017 20:48:56 +0000 (21:48 +0100)
commitb5350285ce6ef3c66730f5d69f442bddb40f416b
tree44b9101d7c457d21a03112206a24bcb49efc5870
parentc9c9c4ed8746372f964042182b5a72bdee5ae5a5
examples/ipsec-secgw: support SHA256 HMAC

Add minor adjustments to support SHA256 HMAC:
- extend maximum key length to match SHA256 HMAC
- add SHA256 HMAC parameters and configuration string
- add SHA256 HMAC to inbound and outbound cases

Signed-off-by: Zbigniew Bodek <zbigniew.bodek@caviumnetworks.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
examples/ipsec-secgw/esp.c
examples/ipsec-secgw/ipsec.h
examples/ipsec-secgw/sa.c