From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80078.outbound.protection.outlook.com [40.107.8.78]) by dpdk.org (Postfix) with ESMTP id 5B49B9E4 for ; Mon, 18 Jun 2018 09:35:01 +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=nSxWJPdbYy3LcU6ZaGJdXU37kkjev4nUjZ19Y67wPRw=; b=Jk8bnHRhuxSK66f9en4SMkM/G2NYjtGYAq63Fjv6JXgxdmjbVPRZO+KdiJEhakdl5OxTBvE5w/x7yQ9VlDRySLRvd66qQtUXyp8m1OHr9IeCL80eidXC8p1VyVYmJvV6MvuDxVTEU69ip49fHrpXoBzme7bPopChsipfg3yWhhw= 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 07:34:58 +0000 To: "Verma, Shally" , Akhil Goyal , "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> <9e3ed323-6ca2-abfc-2e7f-5dce5fab26ef@nxp.com> Cc: "Trahe, Fiona" , "dev@dpdk.org" , "Athreya, Narayana Prasad" , "Sahu, Sunila" , "Gupta, Ashish" From: Akhil Goyal Organization: NXP Message-ID: <7beb0f7b-7179-c3a1-5e50-f51db1c76ff3@nxp.com> Date: Mon, 18 Jun 2018 13:04:37 +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: PN1PR0101CA0025.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:c::11) 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: e6e96f64-1790-474d-b221-08d5d4edff44 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:QHPu9YiErTA6rFdcAJDWJXcPn9iv+tPmUA2WJSRDQ6Wxi1YIui3oAnrUWlxUz8qqXCIWyWMfCk0FxGhC6eeUfL4OXhvkuwV/o2JitJu+zP27WVXByTlTqpGD8BSPQP2rObvFA69CRMu4zwz7Xwo+Vb08MELdumDxyG12yKc5BKVm4GV4OsMgQYkoUQwmjr3ZQ6JGe9wDKOoVHkz0j6PAEydNa/l9bAlXebMHr07Kj5FLn2i9JmJtZBwd88Ocy6Aq; 25:YCYixPZw9XQbaq/UV35tZjBkCBnVqRERI4uKivFWdzmRiucJs2K4cTnUN1911B1b0OVCliSHybhk4V+AePPI2Th7ov+d1quE7nwRWJSk+SOkOWhJFRVlkFTfL0QFAihTTc7S6VAi0MBz+dacPyW4HdBPbh/318FIqXuq2bk8WqAyvDtv1J0X6ZoS3cwMadGx6PFTKqdz8F14pSWwquUDkjSCYi7kvCVylzX+LgVZVLjN4ZRNhLuz3obTlNPBzghz09Amw0u+98CteQ7lXt8z1EZ+MD2srlvfWYt8S6VyLKnInWxSkejAYalRg3uin9KUwSZvVSCGANNmCJrelHB96g==; 31:YnTlxBn3F4vPWQUzccC0iPp+jHl2d/8wbB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vGOUEQs12aieooaA6G34WMnWwuGSmcI69nA+VvrO1KJPLEdEmAeeuYoRD4hkg+Ul+z3RnNvQ3iXMKOdhteZ7anaJNLH 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)(346002)(376002)(366004)(39860400002)(199004)(189003)(13464003)(23746002)(6486002)(25786009)(3260700006)(97736004)(8676002)(50466002)(6666003)(31686004)(2906002)(7736002)(8936002)(4326008)(65826007)(93886005)(64126003)(5660300001)(36756003)(305945005)(229853002)(53936002)(11346002)(54906003)(5009440100003)(110136005)(31696002)(186003)(86362001)(77096007)(478600001)(2616005)(316002)(58126008)(53546011)(55236004)(476003)(446003)(486006)(956004)(386003)(105586002)(16526019)(230700001)(6246003)(81156014)(36916002)(81166006)(76176011)(106356001)(44832011)(16576012)(47776003)(26005)(52116002)(67846002)(65806001)(6116002)(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:NdV7gVTomL0iccGtXUhuWU9sa/Uez1jUkyXZt?= =?Windows-1252?Q?SjrQzxdH56JFViDjqWrsgWYrlpayCa8qlswGXD5B2WZW5rGBB/n5avdd?= =?Windows-1252?Q?xn7NgJ39Fwrx0saWS3o+VE7b07BgQRhO49hrVmbrAEOKnk8nTbox0549?= =?Windows-1252?Q?xvG7wA9Bsj8O60AZVPg0+RTqixWCEuoPWaI5i41mYOB+RBHt1q1sT+1U?= =?Windows-1252?Q?ANnmeTDXMfRPE3XiKj+JBVR50pY0mS7CCI3JUxf7q+lY7BOq650nyb74?= =?Windows-1252?Q?ehX6nVLjv08qlvTBkGPGJhE/Ubutl5cAPlAkD6w2wDGv6+vwK/RikAS+?= =?Windows-1252?Q?ueCMF2ApG8bMN+AQx/bLd7lI/4TvwYiiaQh/kKfmRlXrNzABQnkpmhWE?= =?Windows-1252?Q?xqNMvweRCIocNVOAo1RhUKpRuK+uN2kq38FGeQt8LJtg3bLGAPLjOp+D?= =?Windows-1252?Q?2VhHgj4XZpEVBCbygrDy0QXu+/njxvcrYIYVwR5p1ifYcIJxZmF5VuPe?= =?Windows-1252?Q?LntUlppT7wc2/YpY8eV/wTd8INdnkQOb92rr7Qavt8VLMWsqRSom0zMs?= =?Windows-1252?Q?JnH3g9Adha9gILkIEGiGhyAwlVYCYpFSVetiz3lxq8FqOKqtJKjo+9oP?= =?Windows-1252?Q?MtfiwAECmRJkZTx4nDgQlogyti7/vf1htrty//yTAF/Y7WLZOpxbUFMN?= =?Windows-1252?Q?Lu8/1uo5UZ2T85FZGWUAfLRI6S368MXf+BCqD3dWZlx9o+4eIYW98xmg?= =?Windows-1252?Q?ad1yVKhc1QVpdYLPAVX/QBsXxBrATnGxLUY7yCwsE6w3RyG34UiNlcs7?= =?Windows-1252?Q?QbLNG7GMBd+iGLpmpV2msxUXjWrpfkmosc5QFPcq6QaOLXY7sBYx0JtM?= =?Windows-1252?Q?0oJbPyNoobR2tqxR8UfqSHqBh9chbu7lhzALl5DD1AUI7XOIOAe1JrLs?= =?Windows-1252?Q?wLC0dqteqPiF/NYWl6OPetjwrUgwtiZ7QOtqp+G2wYva/X41Okr8BGRF?= =?Windows-1252?Q?+phhHi535obej1jmhgEWwf1LLeyf+eMdihkhju1Uf54szal2R8Arm3JL?= =?Windows-1252?Q?dlhkhVhr+v9kBswlin8QXtjofqIt5h8WNFq1DW4Xae4ro7p5Zrx2ngle?= =?Windows-1252?Q?aL1jBal7+CLRJgxO98/MrPRgDQ8wZvIdqiwvOvfzvFOxvbZREL3PH5RJ?= =?Windows-1252?Q?YAk33NuDsaajf00+nHjzNCYdlOqr4/9/D7BHbfok0mqByXCcwlJ/zWpB?= =?Windows-1252?Q?qyxnS0CAdgLAtxXrYEgm0jU+luZLcojJ1juPuzfJlrhJ0hEqOkMZTC0M?= =?Windows-1252?Q?yRriqa1DrQly7rw3fWj0FzyrtxMNpF6/6g0FKqNXlSM7IAAQbbdU0HfJ?= =?Windows-1252?Q?uY0OP9YhoPtVyl03JVGdKfcpnOAkjfMg5K+7ASa5waHOXyb7WM6eHtJJ?= =?Windows-1252?Q?KFi9pIml3JxqJnahmngPDGIKH5kBdAChvSC8S8cALY/qNP6F8+51DoRy?= =?Windows-1252?Q?51geTBF8XmUmTckKwKh2rVEvLOXjpENSXCnM/dWAFq7eWR0xZnG03eqb?= =?Windows-1252?Q?tplrIIuV1OIMf8U/R0MBuuGzu1Is56OtnBDCvdtwwPvOqb/TwRUyQUPl?= =?Windows-1252?Q?ankE+jLh/LqjK5hHmEIGf4wLMeUWWWoMnHqmNiUkLQ7WMvsUnoJs/V3X?= =?Windows-1252?Q?mLghl98QJKdzYtyFLUt1aoq2oS17qaUSILAxfYdRL2Y1YYh46f0?= X-Microsoft-Antispam-Message-Info: lUU7/TuHngFJe5H9+vUXDOAevMpdNLA3e+D7kSFn4anxgmMSXqrlWwy1ykZiywrNpuZz5G9ANDTPzKCFUbG/jMGtycLuOf12J+XcuNF4FPgSmDI40Zh5e9GmVCBDEYpxTJMCfZupyvnsLOZx2YYWmoEUqWKMRltTXVyO23QrDadTIYoVedfDCrTGH4hR8nuT/E6bOWS0Ev0b5aePoacvZZnGyzE+vVLVdSeFkH/7M5Dic7ZwP8WTrJG/ML83oOmFvUEuUqUsIni+bdSPopdXZeDJLquPl6x5VzS/woJevFpsqy3G2tcIY0szlczEmXtMdYTbOks0BSOBGte3STlFIg== X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1377; 6:4Ss3dZI8jNONkTkWHAkKp5NMZduniQsAWoLualgcquP/J4+yfBzIZNALM7ThUyttOkzi9nHj5ALADmeq1RF6DwkINmp5O44MT/8guK9L64a138d+ogvjmXePScl/Cgfz5DWN5K+DA36JK27O9grZPihjFsUprPQdhV/vkEellqVqm3lFYnC7UpBPtzKLocGKNOOMTzsuWmQi2YjcCWxn66SOY7hv6rBVZHwZTZ2rqYK4Kbs2H8zlaH6pwoewmWwR97keE774nBT9GCAo9ZL63Im3quO1/Nr0sbk65J5B0TGeb7vBhNT04hTT0WwaVZElhGJzovNJc32wavDlBMwScD1WwZeWk+5O2a0Y+/Sb5WxJMpFHSWZEKYwwk4wiRvRV3GZPqrE9oHsLrJ/zpsyXwqhC9FJ4T6jtvc+N9tKh5cCh2oU2ga/mKtQVN4JfEPu7QTnxYyoj22uCaOQnqfDk0A==; 5:1PsEr9lqYR1X4WYlrEQyHBkrgWxl6or2jzS99fNLJB4EzV4+HikoPgXGs0DJYM10Z1oPGLF7dvcaac6KyRs8UyHBGBL/ysFsWNY3fDqF2CmkeVmPV6qM6XrUFgzWVD6gEyvpRnnZwjD+5utr0Tri97FML537x3tdnKCc0o+wLuY=; 24:5X08kmmC9SYYll+5cwm4w+56kW+iS7y1YnxNzr9CqEFOgQxLFBXu8moKTIaiobPstF60VGmn0YskvN0ZY0BCuXqgO+6/Jf5N5UsBNQFPMKY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1377; 7:UkhW8YKFimzc5RD/iG7+qmvrYAYrCfmC9kjWBrUMSr+0B1HkcoHQwYvoqD9WUwc2vunsyBphmmKbQ+17o2cp59Ofn1Jtsq3vBocnPVeZCvT0wERzv+zHro+MXr4lAF3HNhqO1mEbcBC3L3l6lGQIM3KyBkJ6xhswy8gXBOkFXXS5+Ht/3C/KjdAqbJwKZ5FQuJ3ccE0g4nt1+qKTZ37g0bhEVY0e/YXnv3szVcZcFwQFoLtaW+E2B//JGZ1d4G0r X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2018 07:34:58.2390 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e6e96f64-1790-474d-b221-08d5d4edff44 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 07:35:01 -0000 Hi Shally, On 6/18/2018 12:18 PM, Verma, Shally wrote: > Hi > >> -----Original Message----- >> From: Akhil Goyal [mailto:akhil.goyal@nxp.com] >> Sent: 18 June 2018 12:10 >> To: Verma, Shally ; De Lara Guarch, Pablo >> Cc: Trahe, Fiona ; akhil.goyal@nxp.com; dev@dpdk.org; Athreya, Narayana Prasad >> ; Sahu, Sunila ; Gupta, Ashish >> Subject: Re: [dpdk-dev] [PATCH v3 4/6] test/crypto: add unit testcase for asym crypto >> > > //snip > >>>>>>> +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 >> > [Shally] Are we just planning to make PMD/test compatible for all lib versions? Won't it then be too many version compatibility checks in PMD/test and a maintainability issue than having implementation mentioned to be compatible with specific version? > I think we should at least support the latest stable version. As per the openssl website "The latest stable version is the 1.1.0 series. The 1.0.2 series is our Long Term Support (LTS) release, supported until 31st December 2019". I think Pablo also suggested to support openssl 1.1. Thanks, Akhil >> >>> Thanks >>> Shally >>> >>>> >>>> Thanks, >>>> Pablo >