From 2fcf3f70d19af191eef79fbc9f2d978b2ffb1588 Mon Sep 17 00:00:00 2001 From: Vakul Garg Date: Wed, 6 Nov 2019 15:23:22 +0530 Subject: [PATCH] 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 --- examples/ipsec-secgw/sa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }; -- 2.20.1