From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0052.outbound.protection.outlook.com [104.47.2.52]) by dpdk.org (Postfix) with ESMTP id BC3621041 for ; Mon, 18 Jun 2018 08:39:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xcQlFXHJ0dgfqF5K6LFMmfn0vY1cpD8flO2nZN+WObI=; b=dA28eSNAgGp0UlAZrxVKHPz+OW3uLoIcW0WBxVCNjHmAZAOh0XpuyGb0Fi22UdEjS6oO29jTa+oFQZoWLHlh8ZnqNtD9LW0tYV/YLCjtBtpKOccIAiuZYgNtLR0LsikZSVn9PHCLRz+ucx7c9Ilfq3R8qxWzsWF6gcuXCq2fNK0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; Received: from [10.232.134.49] (14.142.187.166) by AM3PR04MB1377.eurprd04.prod.outlook.com (2a01:111:e400:536a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.14; Mon, 18 Jun 2018 06:39:53 +0000 To: "Verma, Shally" , "De Lara Guarch, Pablo" References: <1526450713-17299-1-git-send-email-shally.verma@caviumnetworks.com> <1526450713-17299-5-git-send-email-shally.verma@caviumnetworks.com> Cc: "Trahe, Fiona" , "akhil.goyal@nxp.com" , "dev@dpdk.org" , "Athreya, Narayana Prasad" , "Sahu, Sunila" , "Gupta, Ashish" From: Akhil Goyal Organization: NXP Message-ID: <9e3ed323-6ca2-abfc-2e7f-5dce5fab26ef@nxp.com> Date: Mon, 18 Jun 2018 12:09:38 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR01CA0103.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::19) To AM3PR04MB1377.eurprd04.prod.outlook.com (2a01:111:e400:536a::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8d47957e-7fb6-48e3-8e08-08d5d4e64d7b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:AM3PR04MB1377; X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1377; 3:ZWUXAOElXNslru/2H5/60KHr8BLiP5/YQKpXtEy8Mi84avaieez5GAr/ZoRRpQ+TuvXD0hG/0P/X9CiCxIx1ksSfZOaS9Q+XmLA6oAKHTwKpyWG6SjKBl1PNv0OitDMCaEw3jf8d2XPbj0aIESSUCFrTt7k7CZDyMLsEqrtaP1Y6aphZKrj2VMFrW7PtASdoondAmyj63qFJv52M7dmUamh0aX3YYWEz8uussnjcBFi223qr0r68TJZOx8oDB78f; 25:ImEJvk6b1rohtMBfONFSa9iFKZOJ18GS7qq4jbabcEzaGzDDl0whltsLHg+487TZzrxrz5/dN2p44Q6UvFRW6EhDamzTfCqrazlFobX+HL8kDIMNekjFwGW5VXxIchS0ReciJgWPhnZIXTCSYadrB0VS9Emhlyt175uPyIkD0atiukJlLWv7tgd0oNEaEL+o9WXSwLx3Ii3cPYUQLDSKmdqVeEfKZxaWRhYx5sbZpXV6IXctIkMYARp2+Eb7PbJluApsUBG4S/iyfKvGCghHMnDk8tgwtp6XgYwBI68m2w6B1HT8+75kP6m/Cy70zfqjOMNEL7Y80ysV6/ZsWSAhjw==; 31:ophLUIXC1Xy99RGtucRIYjlyeYRuZcyd6hcxifpl/yyvEd/5lFlIsDzNDdb9MA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HV56o7aCmQHRwMj+mo2nYHUbJBHwlCQJYd1t8tCX/FjgCZ0y0D0WnBPeopo3QzlD+0xK5str77aL X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(185117386973197)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:AM3PR04MB1377; BCL:0; PCL:0; RULEID:; SRVR:AM3PR04MB1377; X-Forefront-PRVS: 0707248B64 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(396003)(39380400002)(366004)(376002)(39860400002)(346002)(199004)(189003)(13464003)(23746002)(6486002)(3260700006)(25786009)(97736004)(50466002)(8676002)(6666003)(31686004)(2906002)(7736002)(4326008)(65826007)(93886005)(53936002)(64126003)(5660300001)(36756003)(8936002)(305945005)(229853002)(11346002)(54906003)(5009440100003)(110136005)(31696002)(186003)(86362001)(77096007)(478600001)(2616005)(316002)(58126008)(53546011)(55236004)(476003)(105586002)(446003)(486006)(956004)(386003)(16526019)(230700001)(6246003)(81156014)(36916002)(81166006)(76176011)(106356001)(44832011)(47776003)(52116002)(16576012)(67846002)(6116002)(26005)(65806001)(3846002)(68736007)(66066001)(65956001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR04MB1377; H:[10.232.134.49]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; AM3PR04MB1377; 23:B71UMtYQ3ZhqVI9YjyHoZO1RI3dCP0OltDKcU?= =?Windows-1252?Q?T9Y5t9SNxEqItt/ejl12ojsOTDQf7z39u5tb8OurRP8H6VbieK2gvOmn?= =?Windows-1252?Q?5etTFNyOmPbqTjEtEf3FWaIm6M1WkvlmlmZZq+HKTkxP8looJmsGKqbH?= =?Windows-1252?Q?pzey/gh7EbsRs9Soxm/RMYp+nTFsDKQYYcz4142I/ojax67+gc/5J8pu?= =?Windows-1252?Q?PBJSReShfTa6ZnSCOxPoSjQlMHOvlxkxkEq8PnaLju8JQuxlaCo8WWeE?= =?Windows-1252?Q?H0n4sCqKOr7U86Yp4dz2KFQHt/otGins9KutQWeJYLpm5RENK/oKd6Og?= =?Windows-1252?Q?ZZ1cq34PE8Fvtuh7X8KPjmbJtmkJ25w0WONtO/ycCepbljPVrqjF49B0?= =?Windows-1252?Q?be0pY+6HhRm1lyil5077POieYKwVv8thM9IQPZpcXmu70rLbAXS9JPKH?= =?Windows-1252?Q?RopGi8z6ccgUp1svVFJp2SYN6VvZniC6hLccy7YY7PynE6L5Ff/Wotla?= =?Windows-1252?Q?k4HE/pRz6Rx3GQETYYCsJaJcC7ffOeq4mBeG5Bo7K6SVxgkA2WVWU675?= =?Windows-1252?Q?kmwL/fjmyTwofMZ/zfQdJVkqtNNASPq3DTlfsk/hNpsdx16pOsFFV/aS?= =?Windows-1252?Q?lTUxDWytmDYCdKHkYy3KFj3yf0oyO4c3oJSC3SEMv2/KH7hdk9tgwsDa?= =?Windows-1252?Q?0igZRlLMNBThebXoplmCGxIcxg5HL68KQjPBExOUQ/iBiwqsSLWDG63i?= =?Windows-1252?Q?fpk1qX628aGIhq38XfdJi5Y9keZXrJNem2sywDSaH0HOEUo3u3iLo/CD?= =?Windows-1252?Q?tgGwYJtjdr3coo5W2ESc8GuUthtJCjfWH1t76F7oe4ZlGJqlhCEK9Ior?= =?Windows-1252?Q?sVHjghLlCgsgBP0qgGQIaCrLP4/i4Ww3XxgtxLrwq7DlL3+xSZluWPKF?= =?Windows-1252?Q?rrAOEwm2ZPcpXm7H0k6OhxBER+L1WeN5Osh2gHIZrNGvE8G8bay2TbBf?= =?Windows-1252?Q?0Q/VvNJTOb21PJrUjCf0BTf7345s1O/oIGHqI5OXbyKO4prs9TMPd4xq?= =?Windows-1252?Q?P7pBJ7NlZ67hEbihpAjMQKHOM0CsbrBzwsgdVaMwIkMb1wDs7bIS15R+?= =?Windows-1252?Q?vS5+79/B2H0b3IvUta7A+k2HzjPu2w/h2Kc6LGpcQoGtBMK6x1H33mdd?= =?Windows-1252?Q?m43tZORqoqXuMY4sfd/tOPmY+CqkMh68mXJyHjUHSSNoItYc6tNbPkb3?= =?Windows-1252?Q?AeEbjGh45dEyytp2p16wIMb9ILvVP/MG03a54yM4M4hKFUyH/DdHLlB8?= =?Windows-1252?Q?Xs/dDO+cCJ+kvwKi17ODOgUDn5zS/jjxffgRCaDxWi6yVtKUwjg58IdF?= =?Windows-1252?Q?kZBfjpVSTrKh4SIDbhosWTsEhlYoHiFX0HgrGLM6slZ+oC2Y4lTLCHjD?= =?Windows-1252?Q?xMcBmWnogtz670sMowmz97dUdNgf6PEmT2u1VF1ZqW+q3Z7BAtIrcB0q?= =?Windows-1252?Q?BDxmxz5UAw9kE1abPYgZo70641iQZ5c9T5uM8Ch1QOOl/10sxTArym6p?= =?Windows-1252?Q?Pk7/ZzOEpVnPBOTEhrWRcJIEhAuV+UXek238ynFA+ueK7nnVVOaRoYvy?= =?Windows-1252?Q?ulxX2RV3XCSjipSmrwWndHLLpyVpunkMl+hpiEMbSmC5hGAEpuC9tsek?= =?Windows-1252?Q?c8nfuC8p2CeUOGSkyCLZmsVQSrwehblafLltEEWusgKUkZFKwjU?= X-Microsoft-Antispam-Message-Info: XOhy6zsB9Yhn6nfbvQn2kfKzPVB5FeJbU0UnrplvZPqJWDnB1xFNu5+OSJIy+oMBhttlH0+20de+b4D2pZ9oN5AbWF0AdBU63aF5YLUpErWslUT6gO+1iBnSQyl6MVGt2jA9gXbLpDEbuATTuWH10fpxujZjyCAmCWdv0NeVrbzlgePyKs+xRWle5A8NIMFG0sU7SXCdXiNArofwdsYEQG+zDitWdQqPzpA4cwf6KiYpQwV8kDkxq+MCH80XmxsuTuon5YuO1TDRg+6pz144T3ebpooYuA37H04Im+zqHhGGS+u/TKgK+idJQx+cyadL1CDKjYebLeJIRxNOo0puZw== X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1377; 6:d+Iz0pCAvrNq9am5Xs9U6fFUwKJOQAcGuXbw4FfsPGRtkTUqKXCIyzVPFHQI8zWni2iGL6oKFAty4shHwnrSq5BVk3ABOYbg4KkzyvckScUU/tilCPBOJFShn1X4b34isUzzfrRh+aOnSl5bc/VHlcbWiKSL/mR1a2OEKj4HyEAQMdWoTq4kdNmIIf+wKrbBZMo2PqrNrjpnfHCK08lxNSs01q4SmI4Z21dmD6hNqSgXNu5DJ33hrWPXjZfIsn6OiCer5C1UnJQHf+sjVDl8BV0Dbxg5PMfQMDhBiyHpYUIk79KT2tJpM3n6Dl0AUqbY3jAAr/AdbkcjAr7VKMBugT3F0zBLlhHvwzh7vz/9OlY1mYXpQ4uGy5pJKEDfDSHMXsJxbN+l0tIHIyCH382zDezWw8aZYwOP9gNiMXEDCuLbuloyMio27wxbRs52FA0eaPxhXcglcflrYnPR8jZEHw==; 5:+ieybgnpN3vgT7ATqQ7unSsS6sJf+ejIuM6Qfv+JBTarn7Rk07H9JtWR6vD8nRzXny+gDU+4GAZEvqo+2SprCB01/7lX+Xf33E20XvHD1t55H/zCzCMeHOKwi4KcQLLiHAECGx2Ufl5ABlQA9vXEGxInBaVqAXjZY8NfqRuqTGI=; 24:NYAh+S1eCGN74M5phYOH9adzR8ndFNegO947hBaHgKP0HD+11TPd1Szrw9izTna0ivPLNri+ZUCyEPUWPglVoO/xyAiSIC1YPaEFKWcyA0A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1377; 7:jOyXUe5WWVuyAsYFkA3gFlWpxXy9Ocvbd1oiyimN61Ko7mSA04ciNX4wjq/RR+oSQaob0HJYz0ItP4r31+CF8zhI3YxYsO9dysWsxVO75TPjo+eYyUR3WRl4jrDvxvcyPhVnED0tHGJ46y+oe58GIV4uHPmlu9VaKY54uR/XCeO35u61T8LAZq48oP3OFMHdbXc21TPRcAhUcjSQB0Q1nCSJeSNpjqpXlQf21D2j9PIoM/d9mPfejMmck6Lp39Vd X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2018 06:39:53.3969 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8d47957e-7fb6-48e3-8e08-08d5d4e64d7b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR04MB1377 Subject: Re: [dpdk-dev] [PATCH v3 4/6] 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: Mon, 18 Jun 2018 06:39:57 -0000 Hi Shally, On 6/18/2018 11:10 AM, Verma, Shally wrote: > Hi Pablo > >> -----Original Message----- >> From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch@intel.com] >> Sent: 18 June 2018 01:01 >> To: Verma, Shally >> Cc: Trahe, Fiona ; akhil.goyal@nxp.com; dev@dpdk.org; Athreya, Narayana Prasad >> ; Sahu, Sunila ; Gupta, Ashish >> Subject: RE: [PATCH v3 4/6] test/crypto: add unit testcase for asym crypto >> >> External Email >> > //snip > >>>>> ifeq ($(CONFIG_RTE_COMPRESSDEV_TEST),y) >>>>> ifeq ($(CONFIG_RTE_LIBRTE_COMPRESSDEV),y) >>>>> LDLIBS += -lz >>>> >>> [Shally] You mean add another config option for Asymmetric test? >> >> At least check for CRYPTODEV, but since this is enabled by default, >> I think we need an RTE_CRYPTODEV_ASYM_TEST flag. > > [Shally] OK. Will look into this. > >> >>> >>>> .. > > //snip > >>>>> +#pragma GCC diagnostic pop >>>>> + >>>>> +static int >>>>> +test_rsa(struct rsa_test_data *t) >>>> >>>> ... >>>> >>>>> + rsa->n = >>>>> + BN_bin2bn( >>>>> + (const unsigned char *)rsa_xform.rsa.n.data, >>>>> + rsa_xform.rsa.n.length, >>>>> + rsa->n); >>>> >>>> I am getting a compilation error: >>>> >>>> /test/test/test_cryptodev_asym.c:322:5: error: >>>> dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' >>>> rsa->n = >>>> ^~ >>>> >>>> My OpenSSL version is 1.1.0h. >>>> >>> [Shally] This library is tested with version 1.0.2m (mentioned above) and also >>> one supported by openssl PMD . So, you need to take similar version. >> >> I'd say we should support the latest stable version of OpenSSL. >> Could you get the latest 1.1.0? > [Shally] Openssl PMD uses 1.0.2h. If we move test to 1.1.0 then dpdk would need to be set > to link to two different version of libcrypto whenever openssl PMD is enabled which seems like a cumbersome process for users. > So I recommend for now to stick to one version. > OpenSSL PMD can get compiled/linked with any of the versions 1.0.2 or 1.1. We cannot control the above applications which version it is using. So we should not add limitation for openssl version. Please check below snippet in the PMD if this is suitable in your case. +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) +static HMAC_CTX *HMAC_CTX_new(void) +{ + HMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx)); + + if (ctx != NULL) + HMAC_CTX_init(ctx); + return ctx; +} + +static void HMAC_CTX_free(HMAC_CTX *ctx) +{ + if (ctx != NULL) { + HMAC_CTX_cleanup(ctx); + OPENSSL_free(ctx); + } +} +#endif > Thanks > Shally > >> >> Thanks, >> Pablo