examples/ipsec-secgw: fix SHA256-HMAC digest length
authorVakul Garg <vakul.garg@nxp.com>
Wed, 6 Nov 2019 09:53:22 +0000 (15:23 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 8 Nov 2019 12:51:16 +0000 (13:51 +0100)
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 <vakul.garg@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
examples/ipsec-secgw/sa.c

index a8dee34..f56e16b 100644 (file)
@@ -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
        }
 };