From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 09F7DA04A2; Wed, 6 Nov 2019 11:09:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 446401BF22; Wed, 6 Nov 2019 11:09:51 +0100 (CET) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 855E81BED7; Wed, 6 Nov 2019 11:09:49 +0100 (CET) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 047D31A0607; Wed, 6 Nov 2019 11:09:49 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6E8CF1A011D; Wed, 6 Nov 2019 11:09:46 +0100 (CET) Received: from GDB1.ap.freescale.net (gdb1.ap.freescale.net [10.232.132.179]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C765B402DF; Wed, 6 Nov 2019 18:09:42 +0800 (SGT) From: Akhil Goyal To: dev@dpdk.org Cc: stable@dpdk.org, konstantin.ananyev@intel.com, radu.nicolau@intel.com, Vakul Garg Date: Wed, 6 Nov 2019 15:23:22 +0530 Message-Id: <20191106095322.25881-1-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix SHA256-HMAC digest length X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Vakul Garg 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 4cb90857c..d0ae8ac9a 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.17.1