From patchwork Thu Jun 30 11:21:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Archana Muniganti X-Patchwork-Id: 113575 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9A0FCA034C; Thu, 30 Jun 2022 13:22:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 395DF40223; Thu, 30 Jun 2022 13:22:03 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id D7A56400EF for ; Thu, 30 Jun 2022 13:22:01 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25U7gHrO031722; Thu, 30 Jun 2022 04:22:01 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=bCpe47ynoty/m5fKXFejDZOvxBsY8HQ5Z5hDc4Nk/Z8=; b=JMVrBzphGnAVBaw9Dr9hFU5qX3WX034/7sIw796G0qajBO00esIRwYu7wNmQl5mbmNZJ TcJ4eJ+PtBr5ZJgL8Cp71Yz8rSPMDLSAYREOU2Lxly17o7qhfnrNJcW49Qcrf9mCnCJw Ppv8ec8nZIZ5P40Rslkh1hdijUeRCyzNFiObpWLGqJGbSoue9dmVDpnwbiJGTYGRZFeL lXSIMtE4VS0dEipjc7N5XEULHDfD2TI9OjRS4g4A2VOMIaiWG8IXk0tbYuPCo3qML4ag YNqqnlZMvB7l9CRs0W3hDRrhL3x8vEoUFKiheSpn+rRx5EE9ggQEhCenMYOUkmYiA16u IA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3h17nq0qtj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 30 Jun 2022 04:22:01 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 30 Jun 2022 04:21:59 -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; Thu, 30 Jun 2022 04:21:59 -0700 Received: from localhost.localdomain (unknown [10.28.48.65]) by maili.marvell.com (Postfix) with ESMTP id C41B73F7067; Thu, 30 Jun 2022 04:21:56 -0700 (PDT) From: Archana Muniganti To: , CC: Archana Muniganti , , , , Subject: [PATCH v1] examples/fips_validation: fix print for zero length payload Date: Thu, 30 Jun 2022 16:51:23 +0530 Message-ID: <20220630112124.4161715-1-marchana@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: bnUagb77x9eBsTdTOajAQyURqx4zEXFq X-Proofpoint-ORIG-GUID: bnUagb77x9eBsTdTOajAQyURqx4zEXFq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-06-30_07,2022-06-28_01,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org NIST GCM decrypt result vectors expects to have following print for zero length payload instead of having no print. "pt" = "" Fixes: b09aac2d6e2b ("examples/fips_validation: add JSON to GCM test") Signed-off-by: Archana Muniganti --- examples/fips_validation/fips_validation_gcm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c index 28ef04c817..6b3d158629 100644 --- a/examples/fips_validation/fips_validation_gcm.c +++ b/examples/fips_validation/fips_validation_gcm.c @@ -327,6 +327,9 @@ parse_test_gcm_json_writeback(struct fips_val *val) writeback_hex_str("", info.one_line_text, &tmp_val); json_object_set_new(json_info.json_write_case, PT_JSON_STR, json_string(info.one_line_text)); + } else { + json_object_set_new(json_info.json_write_case, PT_JSON_STR, + json_string("")); } } else { json_object_set_new(json_info.json_write_case, "testPassed", json_false());