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 3A426A054F; Tue, 18 Feb 2020 11:31:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 50CAB1D650; Tue, 18 Feb 2020 11:31:37 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 65D541D64F for ; Tue, 18 Feb 2020 11:31:36 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01IAVEZk025559; Tue, 18 Feb 2020 02:31:35 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=WT+p33EDL/bmteT/GcTAGL+ykxCG+44WQrel2rhz0m8=; b=vrb8DKid6pZdcRZV0PH+qe81Fm9diu9zM+ZqSVgnpxcDoEagabdfwBJ9OCuV0okn4kLM PfeRVfXS8iCPFv70j2JuBovcaeL2Wd+reLzQCNNKy2TC2xkJDL/UuijNFak5PHRxXlkC SHf3Ov79sLsQk0+f3/GRPo80pHsN/Csi2kUeHgKPoE1dJKlfhwNqc4uFX5qXkT2TvKck ibdVWxR7etc1aR44aBMzDuj5pdkgHEgNpxuTdrL1eM02bD6+9cUAUno41kdsxsMzCYzb BTrXzWBTArQKS49pzRjgqHUJC1e8JkrT4W1RUl6Pn74M1cy3k8U88A9eo+6Ol2GtCOoM 1A== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2y6h1t2jem-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 18 Feb 2020 02:31:35 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 18 Feb 2020 02:31:33 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 18 Feb 2020 02:31:32 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 18 Feb 2020 02:31:32 -0800 Received: from ajoseph83.caveonetworks.com (ajoseph83.caveonetworks.com [10.29.45.60]) by maili.marvell.com (Postfix) with ESMTP id 446E53F703F; Tue, 18 Feb 2020 02:31:30 -0800 (PST) From: Anoob Joseph To: Marko Kovacevic , Akhil Goyal , David Marchand CC: Anoob Joseph , Fan Zhang , Narayana Prasad , Date: Tue, 18 Feb 2020 16:01:12 +0530 Message-ID: <1582021872-8173-1-git-send-email-anoobj@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582019075-7932-1-git-send-email-anoobj@marvell.com> References: <1582019075-7932-1-git-send-email-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-02-18_02:2020-02-17, 2020-02-18 signatures=0 Subject: [dpdk-dev] [PATCH v2] examples/fips_validation: fix incorrect string for CT 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" The NIST test vectors use the string 'PTlen' to denote text lengths in case of encrypt & decrypt operations. So the same string need to be used while parsing PT and CT. Fixes: 2adb3b4e7e54 ("examples/fips_validation: fix AES-GCM cipher length parsing") Signed-off-by: Anoob Joseph --- v2: * Fixed incorrect fixes tag examples/fips_validation/fips_validation_gcm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c index bc2d37d..47576e9 100644 --- a/examples/fips_validation/fips_validation_gcm.c +++ b/examples/fips_validation/fips_validation_gcm.c @@ -19,7 +19,6 @@ #define PTLEN_STR "PTlen = " #define AADLEN_STR "AADlen = " #define TAGLEN_STR "Taglen = " -#define CTLEN_STR "CTlen = " #define COUNT_STR "Count = " #define KEY_STR "Key = " @@ -47,7 +46,10 @@ struct fips_test_callback gcm_interim_vectors[] = { {KEYLEN_STR, parser_read_uint32_bit_val, &vec.aead.key}, {IVLEN_STR, parser_read_uint32_bit_val, &vec.iv}, {PTLEN_STR, parser_read_uint32_bit_val, &vec.pt}, - {CTLEN_STR, parser_read_uint32_bit_val, &vec.ct}, + {PTLEN_STR, parser_read_uint32_bit_val, &vec.ct}, + /**< The NIST test vectors use 'PTlen' to denote input text + * length in case of decrypt & encrypt operations. + */ {AADLEN_STR, parser_read_uint32_bit_val, &vec.aead.aad}, {TAGLEN_STR, parser_read_uint32_bit_val, &vec.aead.digest}, -- 2.7.4