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 2FAE3A058A; Fri, 17 Apr 2020 17:09:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0C3801DEB1; Fri, 17 Apr 2020 17:09:17 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id A30161C1E1; Fri, 17 Apr 2020 17:09:15 +0200 (CEST) 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 03HF0OxJ012403; Fri, 17 Apr 2020 08:09:15 -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-type; s=pfpt0818; bh=tqmq/9Lo56+tJSVaQq7btm3mwjx8vbn7ftfeu+r6tIw=; b=Bl/5JdGmQ12F8HyiwRnHPV2yRxJROnmuVvbrsyWeZHcCHFKecUD+Ni1LvREO7m6XlQjm ur+sErliMmI6aeU/iKanOHGl6X2kM49sLEPdDTsEqy4A+5jVkRjcDXKMxVMrxPMBuzZZ b089Ev8TyYDxCSGUyoHScTJmaRit/P6bkCcyZJmKRbOHpMstDzD6kKMTJ6BqWCC0fstw 8iCVGJUD9hHo+l8IsplgkS+UtE2aAWfVATzHRG/LJCbSbPR5lxROG/Y2gFEPLlODYWMt Md48JWiNiExx8li4nPhGXARW9Pem4ZcTdLxb8HwDUAeBJFqKT/jITo7OMC1zRtedt1zB Pg== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 30dn84vnc9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 17 Apr 2020 08:09:14 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 17 Apr 2020 08:09:12 -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; Fri, 17 Apr 2020 08:09:12 -0700 Received: from hyd1409.caveonetworks.com.com (unknown [10.29.45.15]) by maili.marvell.com (Postfix) with ESMTP id A579E3F703F; Fri, 17 Apr 2020 08:09:09 -0700 (PDT) From: Archana Muniganti To: , , CC: Archana Muniganti , , , , , Ayuj Verma Date: Fri, 17 Apr 2020 20:38:40 +0530 Message-ID: <1587136120-7390-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.138, 18.0.676 definitions=2020-04-17_06:2020-04-17, 2020-04-17 signatures=0 Subject: [dpdk-dev] [PATCH] examples/fips_validation: fix parsing of algo from NIST TDES test files 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" Few of the NIST TDES test files don't contain TDES string. Added indicators to identify such files. These indicators are part of only NIST TDES test vector files. Fixes: 527cbf3d5ee3 ("examples/fips_validation: support TDES parsing") Signed-off-by: Archana Muniganti Signed-off-by: Ayuj Verma --- examples/fips_validation/fips_validation.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c index ef24b72..a34e34d 100644 --- a/examples/fips_validation/fips_validation.c +++ b/examples/fips_validation/fips_validation.c @@ -144,6 +144,24 @@ fips_test_parse_header(void) ret = parse_test_tdes_init(); if (ret < 0) return 0; + } else if (strstr(info.vec[i], "PERMUTATION")) { + algo_parsed = 1; + info.algo = FIPS_TEST_ALGO_TDES; + ret = parse_test_tdes_init(); + if (ret < 0) + return 0; + } else if (strstr(info.vec[i], "VARIABLE")) { + algo_parsed = 1; + info.algo = FIPS_TEST_ALGO_TDES; + ret = parse_test_tdes_init(); + if (ret < 0) + return 0; + } else if (strstr(info.vec[i], "SUBSTITUTION")) { + algo_parsed = 1; + info.algo = FIPS_TEST_ALGO_TDES; + ret = parse_test_tdes_init(); + if (ret < 0) + return 0; } else if (strstr(info.vec[i], "SHA-")) { algo_parsed = 1; info.algo = FIPS_TEST_ALGO_SHA; -- 2.7.4