From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3DFAEA0556; Mon, 17 Oct 2022 10:15:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24D7840143; Mon, 17 Oct 2022 10:15:53 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id A2861400D7 for ; Mon, 17 Oct 2022 10:15:51 +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 29GLdk8S032641; Mon, 17 Oct 2022 01:15:50 -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=E4Wiuw1RrFN3OjIV9/KbENZW3h/vp7w0QhK4aSdpCkU=; b=VbaxGqazCLic8QVcjsmbt2B/apuzmPCxJdKW1imGBfVbnrPOQAw5oLT2fP2E0c9IEyEA QtCPiREEwCSpCDeeiTUplwutMOi7lxpt1xfxVTaLmHtP6WB40SYUd2BMJWgOdk5nzEYf nTJGnRPNJi7bGDpJPkgC31lxJRsY3vC5A6XSPViDrpNdb1tYIuPQ9hAKodr9F3HqI/87 6lqJtA15mBKLlJ1yUHnjR6RNXIaBLtdkMgz0TBRiGoyYqHSWzZawyiEWy0eELxDmPxlC wg5pNtZpJhYkT8QmcseCfUmkqMBa/WBCs7YssWYkqzjkWhmRs5UQlEYjDnzXDJbfccC+ Cw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3k7t7qdpsn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 17 Oct 2022 01:15:50 -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; Mon, 17 Oct 2022 01:15:49 -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; Mon, 17 Oct 2022 01:15:48 -0700 Received: from localhost.localdomain (unknown [10.28.34.38]) by maili.marvell.com (Postfix) with ESMTP id 088063F7040; Mon, 17 Oct 2022 01:15:46 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: Anoob Joseph , Brian Dooley , Akhil Goyal , , "Gowrishankar Muthukrishnan" Subject: [v1] examples/fips_validation: fix test output for AES GMAC decrypt Date: Mon, 17 Oct 2022 13:45:44 +0530 Message-ID: <20221017081544.995340-1-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 9b2w82FNP1oRfg38M4q8JOlRRjxAuesD X-Proofpoint-GUID: 9b2w82FNP1oRfg38M4q8JOlRRjxAuesD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-17_06,2022-10-17_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 AES GMAC decrypt test should output only whether test passed or failed. Signed-off-by: Gowrishankar Muthukrishnan --- examples/fips_validation/fips_validation_gcm.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c index 1b141501f0..a80d8b3e4d 100644 --- a/examples/fips_validation/fips_validation_gcm.c +++ b/examples/fips_validation/fips_validation_gcm.c @@ -330,11 +330,16 @@ parse_test_gcm_json_writeback(struct fips_val *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("")); + json_object_set_new(json_info.json_write_case, "testPassed", + json_true()); } } else { - json_object_set_new(json_info.json_write_case, "testPassed", json_false()); + if (!info.interim_info.gcm_data.is_gmac) + 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()); } } -- 2.25.1