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 5D073A04F1; Mon, 6 Jan 2020 16:11:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 08C861D6B2; Mon, 6 Jan 2020 16:11:48 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id B348B1D604; Mon, 6 Jan 2020 10:34:59 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0069V6e0012175; Mon, 6 Jan 2020 01:34:58 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=tWWSRKqICQ7mjMeDyA4bggNEqBW9U1uulLbZbh1tmCY=; b=uw0qvGn8YuAu2zeJIufT15o4wKgpf+l1PQWWC/0GbuZWoImQkOgl7cmjifjVJOLXP0nQ VsMmFmEXSGLThhX3AyjH3bDD34SkPO0g9qx46l7U6WvQJgXxasxC8lt0TH1GkMqQdq3m dAmqnfYuNkIJMjrdjY+C89KHkcLydGBebwRyqO/tYh4/ko8PYyzhBmfaNJXyxI8J4ov5 jqScYfL1hHoIzTM7Doi1JYdHRzqvxx+AGAHoVw/nqq3fRx/93qDB5h+RbBrWz1o9yV7w bHjJ5TNd3LYvQs4Xf2RAWfTUSTsoGqvXT/rh7fWBRmDaxazHPZjW0872uONKL08qIEFr Gg== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2xarxv59kc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 06 Jan 2020 01:34:58 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 6 Jan 2020 01:34:56 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 6 Jan 2020 01:34:57 -0800 Received: from hyd1409.caveonetworks.com.com (unknown [10.29.45.15]) by maili.marvell.com (Postfix) with ESMTP id B74683F703F; Mon, 6 Jan 2020 01:34:53 -0800 (PST) From: Archana Muniganti To: , , CC: Sucharitha Sarananaga , , , , , , Archana Muniganti Date: Mon, 6 Jan 2020 15:03:11 +0530 Message-ID: <1578303191-24846-1-git-send-email-marchana@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2020-01-06_02:2020-01-06,2020-01-06 signatures=0 X-Mailman-Approved-At: Mon, 06 Jan 2020 16:11:46 +0100 Subject: [dpdk-dev] [PATCH] examples/fips_validation: fix parsing of cipher length for AES-GCM 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: Sucharitha Sarananaga Cipher length need to be updated in case of AES-GCM decryption. Fixes: 4aaad2995e13 ("examples/fips_validation: support GCM parsing") Signed-off-by: Archana Muniganti Signed-off-by: Sucharitha Sarananaga --- examples/fips_validation/fips_validation_gcm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c index ea48ddf..f295025 100644 --- a/examples/fips_validation/fips_validation_gcm.c +++ b/examples/fips_validation/fips_validation_gcm.c @@ -19,6 +19,7 @@ #define PTLEN_STR "PTlen = " #define AADLEN_STR "AADlen = " #define TAGLEN_STR "Taglen = " +#define CTLEN_STR "PTlen = " #define COUNT_STR "Count = " #define KEY_STR "Key = " @@ -46,6 +47,7 @@ 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}, {AADLEN_STR, parser_read_uint32_bit_val, &vec.aead.aad}, {TAGLEN_STR, parser_read_uint32_bit_val, &vec.aead.digest}, -- 1.8.3.1