From: Vakul Garg Date: Wed, 6 Nov 2019 09:53:22 +0000 (+0530) Subject: examples/ipsec-secgw: fix SHA256-HMAC digest length X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2fcf3f70d19af191eef79fbc9f2d978b2ffb1588;p=dpdk.git examples/ipsec-secgw: fix SHA256-HMAC digest length As per RFC4868, SHA-256 should use 128 bits of ICV. Fixes: b5350285ce6e ("examples/ipsec-secgw: support SHA256 HMAC") Cc: stable@dpdk.org Signed-off-by: Vakul Garg Acked-by: Akhil Goyal --- diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index a8dee342eb..f56e16bfc7 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -115,7 +115,7 @@ const struct supported_auth_algo auth_algos[] = { { .keyword = "sha256-hmac", .algo = RTE_CRYPTO_AUTH_SHA256_HMAC, - .digest_len = 12, + .digest_len = 16, .key_len = 32 } };