From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0079.outbound.protection.outlook.com [104.47.34.79]) by dpdk.org (Postfix) with ESMTP id A088F37A2 for ; Tue, 10 Jul 2018 18:01:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vkBCxg18i7fzMRgbI+3b3A/vdlr84f0MnYxdx3POL6M=; b=c4rMip1BRnE/2u+ZsG2PG0U+J+eTIKsF2ADyctcmIQEhtD/vCOZFcht1LChy+lm4roi+lp+f9mtsVb9WMPF5bvBbZ9fHuekfLBiACwvYHEJbs2W+pPMhYq7nRJ1LVQbhfcKBLAW/ebZLT94Tze+FhXYYOy0VND7ZyN2BhAxwyrU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Shally.Verma@cavium.com; Received: from hyd1sverma-dt.caveonetworks.com (115.113.156.2) by MWHPR0701MB3641.namprd07.prod.outlook.com (2603:10b6:301:7d::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.19; Tue, 10 Jul 2018 16:01:53 +0000 From: Shally Verma To: pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, pathreya@caviumnetworks.com, nmurthy@caviumnetworks.com Date: Tue, 10 Jul 2018 21:31:29 +0530 Message-Id: <1531238491-10542-1-git-send-email-shally.verma@caviumnetworks.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR01CA0098.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::14) To MWHPR0701MB3641.namprd07.prod.outlook.com (2603:10b6:301:7d::34) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8fb57b8b-d573-401c-a62e-08d5e67e7514 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:MWHPR0701MB3641; X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3641; 3:wOVFA4ap5xm/BV9pTf4+BgE4Dg6QQBwgVC1iW3VvHjkPdzBIqMp3JcJDYEJiqnbjqcpm1naViFYhjl4XITTflFi2576W7LJWejjGcWQSENjm1iiIQFIjtP0OxnrBCNdw+7cqwTyBAzZpVIXuJ0wCNl0s63c505mkSdQ2n3dQDYbn1DHs1TzI4xmNWKwAkCQwqf+TusmHrlXfi0hf7bb7U9WrKZYMf0y60/8bZLCqS4c1YlOShtwWYMqEPUHwAYac; 25:SYZ5upAg97VbiLECUO6ZFP3b1gewN1WZROZkvlP5Lt1zGf4mbKh6dHxlvnlaODWTHXRq44YGfCiGQnt0cPAEv2gfUBNKjIK7ure9JoRZ/JNd3KAKiC6KW7Qteo4yvYuouGUc2d0Hcbqtzh6nOAPiuq8pCWhbG3IfKERry8CiS+dwfoQEAd+edB5ArMJuCk8IeODt61PqbBWYEpcoSAilTGn9ulLaekj/SNHHDyWYzrnSOdpbzbZRMdlETOYNbydXEPozqpeMUvO3Wa7QE1CAkn5rZGqic+lgpe4iMloFwnnq2P20f7skn7rq74wYzxvbPxCkszg99d+yIeYbtaxtMA==; 31:k/gcAxNT8DmKJowNTjabHSMqIydIfb8X92/0fVvrfkiB/sr1wA4yNTHkmDl5d0MH6wsAxvzjLOetp2IBQrr9HVCPUkPUpQkB6t4wjTAvyFj+gN78bK+zkp+zo44KONZIt4E23U6thUzBu6rSW+/VyAE7gRltSRgCrKi7FLqB9CjX5k/QGpweZfITdLJ6GEMjMO8gIGZDaPrOJ5eeDudvaiI3kc7ueohKKHYpkRos0Po= X-MS-TrafficTypeDiagnostic: MWHPR0701MB3641: X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3641; 20:+MHYvTTG4Q09eCFaDQGGoAUtm60GBW1LVLn0srMcPhyJN5eoyA7htYsSsweWsVwLERfRjAfAMKA01CSLlP1rSnTOm0uA0xe9/eZbfyoFWM0LWUt2ZOES8dYMNyLIUtXN0qKRZUn1/8KDHZovp6PvrRLcf5HuF+kffZE4LD7Q/O8sG7H1PML8tGPkrRMeO06+RHpAZ+wwAraCcNNRrcYNiQQlp5CNJ8G4kNlcLjA/eSL9+AxjP93vJBJp218jun5oHlWapSy+AyvTixgGu1z4OpfdVKYqHWEz1QniefLenHVii0vbmxd7LUPz7nVePSv/GVBXXOJXkeQVTCVZFsQEEJ8rQamYFCb/xTsjbI1IUyc7F34RZbfxzw7ay45x7mmnzur3FY9fw/OYcxy1v76cIyozaJkh79kPJuoGlibfkRDyI4LqlDkDZ3qvg243Bvefykowh69e3JzrPZLB82Mq2rZGILbc6b95OptqDh1a76hDuNGuY49OcAxF/oGp0AAcz+UIx29cjUU/83ReP2N2PQDDlFcgKtI6uMTwFVe7JL0B9xgFGRjZUsAWTJRryXysOFMSBKXoPeQdoNnfJvFwx3GiRvQDD2t92DiZdZ8mjBw=; 4:ieRPHlauYy92oHk25HgEqEPoS6uOvBAOSto2fmo9TQpsAcEgYEQrM51v1mGHsSfYJdXq7f4fGG2s80RbwRhoMEdWRPhtftg6nUmot6eDInju3Jv7/qbSXE91+iaALGXLAb6iZUEjfgv89QsRYJMve4eM9TUvteh5PmjL+gb+CqtD4ENpiZMaGgzbVtEmxe56BwRwnMKQLbZoL0OYFGDMtB3i7Ufyi3zPID1mXQm4SJL8OzXA36aXM7zh9Q22KwG6T/5hvP+k67r2j9u/ZaQIIYnajDNVkBxyzwsmroQwOTuqYGrY/DDIkLGrKlvLvCH1 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231311)(944501410)(52105095)(93006095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:MWHPR0701MB3641; BCL:0; PCL:0; RULEID:; SRVR:MWHPR0701MB3641; X-Forefront-PRVS: 0729050452 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39860400002)(136003)(376002)(346002)(189003)(199004)(16586007)(42882007)(2616005)(956004)(36756003)(50466002)(48376002)(476003)(186003)(486006)(25786009)(47776003)(44832011)(2361001)(16526019)(66066001)(14444005)(8936002)(81166006)(81156014)(6506007)(55236004)(3846002)(8676002)(6116002)(386003)(26005)(52116002)(7736002)(51416003)(305945005)(2906002)(53936002)(68736007)(5660300001)(50226002)(72206003)(966005)(6306002)(4326008)(478600001)(6666003)(2351001)(6916009)(107886003)(53416004)(6512007)(316002)(69596002)(6486002)(106356001)(105586002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR0701MB3641; H:hyd1sverma-dt.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR0701MB3641; 23:hj+ogOTW1qCZR0mPkj4m/7GMGgeYZnVKAjGwFZC?= =?us-ascii?Q?xLHt/6M0ANI9ZGnUzSlJZOoVhcJs3rG11a1h08kVmC96qNWTfcIoSpaLo2Gr?= =?us-ascii?Q?vmypygUQVOpQeWSbpoBmgtnPKE4PEUIbWUMtyzppJgGXfaPAb6VSmFtGe9zG?= =?us-ascii?Q?UzHPvXUTeD2XqwvGUfEIBS7nedCX8NjgkgF0Zvg4MgQvNTGUZM7rMvWbX4W7?= =?us-ascii?Q?JpLysIUh9Sf+qD/F6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0HrRZ3Or3R0tK15Dfuhv0tUYuJDfLP2lF526rCJ176/LJzN6e+QbHe0LKOh/uwMorREymBzFJ84sjmCnsusZt3MB1uQZ3Jw==; 5:l/cOtxJkaSTPYS+Kbr1m79b52S59arqu6dQ+bClpwW33VcgU5u0PUgaqxeXBw/TQzcftSN3dwAwPkrg6/zIsX42xXjRDmjisgCyyE7deb6CHx+1t+nwI/N5zqZG8iTlSqC5xcKj+oulXBA1q0K2E3WmmIFydWKyop6QrcfWcXuY=; 24:A5n7aixusVkELaPYa6FTHWaTq8b/RKQPxqnWogxwF3RLGj5pawcllE4BcDT6ePWKckOet70a6+n4+gnEY/QRW+rA0SoM29USHPfcQCqOZbY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR0701MB3641; 7:2D7/OhOb377w7a6dtDMeglHXcQShJpP64aLFMj73sRnPXt5wDiroACmtjv12NcM4x7t6dX7JT/T8SvamKIgnSrMAVhGOmUHCva+Wnjwq4EbxjbV9btcU8v/tFxkk++WuMXkSspoJ6BqTVBaCs2dB3L5Cq34tfcQevlApvnJJy2vyabal/eRzAq53uns3nW8Ttz1R46UJxvYSrkeBXUpRsRZiznxfgWISYutmg5FmlHruzAL1qj/UeWrN9ytD4vie X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2018 16:01:53.2248 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8fb57b8b-d573-401c-a62e-08d5e67e7514 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR0701MB3641 Subject: [dpdk-dev] [PATCH v5 0/2]test/crypto: add unit testcase for asym crypto 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: , X-List-Received-Date: Tue, 10 Jul 2018 16:01:59 -0000 This patch series add unit test case for asymmetric crypto. Current testcase covers following operations: - RSA encrypt, decrypt, sign and verify - Modular Inversion and Exponentiation - Diffie-Hellman key pair generation and shared secret compute - DSA sign and verify All test cases use pre-defined test vectors. changes in v5: - replace snprintf with rte_log - remove redundant free from test - incorporate other v4 review feedback - This patch belong to patch series lib spec patch v5: "[PATCH v5 1/4]cryptodev: add asymmetric xform and op definitions" changes in v4: - add pre-defined test vectors for each xform and remove openssl SW lib dependency - This patch belong to patch series: "lib/cryptodev: add asymmetric algos in cryptodev" ( http://patches.dpdk.org/patch/42158/ - http://patches.dpdk.org/patch/42162) For further history, see asymmetric crypto support patch series v3 (https://patches.dpdk.org/patch/40075/ - https://patches.dpdk.org/patch/40079/) Sunila Sahu (2): test/crypto: add rsa and mod tests test/crypto: add dh and dsa tests test/test/Makefile | 1 + test/test/meson.build | 2 + test/test/test_cryptodev_asym.c | 1369 +++++++++++++++++++++++++++ test/test/test_cryptodev_asym_util.h | 42 + test/test/test_cryptodev_dh_test_vectors.h | 80 ++ test/test/test_cryptodev_dsa_test_vectors.h | 117 +++ test/test/test_cryptodev_mod_test_vectors.h | 103 ++ test/test/test_cryptodev_rsa_test_vectors.h | 88 ++ 8 files changed, 1802 insertions(+) create mode 100644 test/test/test_cryptodev_asym.c create mode 100644 test/test/test_cryptodev_asym_util.h create mode 100644 test/test/test_cryptodev_dh_test_vectors.h create mode 100644 test/test/test_cryptodev_dsa_test_vectors.h create mode 100644 test/test/test_cryptodev_mod_test_vectors.h create mode 100644 test/test/test_cryptodev_rsa_test_vectors.h -- 2.9.5