From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id CD9F1A0555;
	Wed, 25 May 2022 17:47:14 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id DC93C42BBB;
	Wed, 25 May 2022 17:46:26 +0200 (CEST)
Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com
 [67.231.148.174])
 by mails.dpdk.org (Postfix) with ESMTP id 3DBAD42BC8
 for <dev@dpdk.org>; Wed, 25 May 2022 17:46:25 +0200 (CEST)
Received: from pps.filterd (m0045849.ppops.net [127.0.0.1])
 by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24P9xxgE028786;
 Wed, 25 May 2022 08:46:24 -0700
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=pfpt0220;
 bh=qZJzNMiXF6hju7KaXwYNM0w1KX7yDPhLtudEEAmrK94=;
 b=KnSC1kBb81TRhLtZeBlwKegrE34hzE1UViuAlpB4eD2gcnj55vyRSbBt+g2J6Jw5s3WH
 Enk/dGpglnaS5OoDyeRFfzRBh8XvwAMa4SdywYwvc38jEBD83+nN5nHrUACPT6epGdwA
 Ec6alOHujyR7D6CNaI5CCjsWRolcO1EpSiNIjalNKUtDhsdGypD4LCtP8u8iBKIlrY36
 WZ7M146vCXwTF+GwWO5XHEcIBbvjVHzh1b6mqfDHSWFMqeAd4djvU37QFawGsI5wToGF
 LBBzgccS4cMl7ord0/LA83t9aT+yeSnSn9eabzmvQ9+DXFDYK/fWIs8+kg/yuHH7T9AX Ig== 
Received: from dc5-exch01.marvell.com ([199.233.59.181])
 by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3g9jap1bbb-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);
 Wed, 25 May 2022 08:46:24 -0700
Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com
 (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;
 Wed, 25 May 2022 08:46:22 -0700
Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com
 (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend
 Transport; Wed, 25 May 2022 08:46:22 -0700
Received: from localhost.localdomain (unknown [10.28.34.38])
 by maili.marvell.com (Postfix) with ESMTP id 7E7163F7043;
 Wed, 25 May 2022 08:46:20 -0700 (PDT)
From: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
To: <dev@dpdk.org>
CC: Fan Zhang <roy.fan.zhang@intel.com>, Brian Dooley
 <brian.dooley@intel.com>, <lylavoie@iol.unh.edu>, Anoob Joseph
 <anoobj@marvell.com>, Archana Muniganti <marchana@marvell.com>, Jerin Jacob
 <jerinj@marvell.com>, Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Subject: [v5,
 10/11] examples/fips_validation: reset IV generation in every test
 group
Date: Wed, 25 May 2022 21:15:41 +0530
Message-ID: <d59d63c1a145c72dd107c599a95fecae784b87e6.1653491969.git.gmuthukrishn@marvell.com>
X-Mailer: git-send-email 2.25.1
In-Reply-To: <cover.1653491969.git.gmuthukrishn@marvell.com>
References: <cover.1653491969.git.gmuthukrishn@marvell.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
X-Proofpoint-GUID: hlbEwIaChyhm7H9xix9bfWvkco1RFBRL
X-Proofpoint-ORIG-GUID: hlbEwIaChyhm7H9xix9bfWvkco1RFBRL
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514
 definitions=2022-05-25_04,2022-05-25_02,2022-02-23_01
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Reset IV generation in every test group.

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
---
 examples/fips_validation/fips_validation_gcm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c
index 3604b21f13..7e89f2a6b2 100644
--- a/examples/fips_validation/fips_validation_gcm.c
+++ b/examples/fips_validation/fips_validation_gcm.c
@@ -344,6 +344,7 @@ parse_test_gcm_json_init(void)
 
 	direction_obj = json_object_get(json_info.json_test_group, DIR_JSON_STR);
 	direction_str = json_string_value(direction_obj);
+	info.interim_info.gcm_data.gen_iv = 0;
 
 	if (strcmp(direction_str, OP_ENC_JSON_STR) == 0) {
 		json_t *ivGen_obj = json_object_get(json_info.json_test_group, IVGEN_JSON_STR);
-- 
2.25.1