From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0083.outbound.protection.outlook.com [104.47.32.83]) by dpdk.org (Postfix) with ESMTP id 2844F5B36 for ; Mon, 18 Jun 2018 07:42:08 +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=J/yO9GmGMcTJ2ACR953mMe/8JREjURGWeYMWFXgkcxE=; b=Qih/eBxXsL9djG6j0932Zuh1S7ANUVBcwxxZRZOWJxQuQ9blI9hGSXkuNHYnh2W5ZxEpYkot+mqFuX/Kzo/PVpAcId/I11hRnmWAEm9B/2gMBzcr1K5ZgSqJGE1VdUYKD7JP6uB5Cq2VtXw8BRIxJOttdA96HcVHiLkCvpcokqg= Received: from CY4PR0701MB3634.namprd07.prod.outlook.com (52.132.101.164) by CY4PR0701MB3716.namprd07.prod.outlook.com (52.132.102.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Mon, 18 Jun 2018 05:40:51 +0000 Received: from CY4PR0701MB3634.namprd07.prod.outlook.com ([fe80::f55a:7354:8d2f:cf0b]) by CY4PR0701MB3634.namprd07.prod.outlook.com ([fe80::f55a:7354:8d2f:cf0b%2]) with mapi id 15.20.0863.016; Mon, 18 Jun 2018 05:40:51 +0000 From: "Verma, Shally" To: "De Lara Guarch, Pablo" CC: "Trahe, Fiona" , "akhil.goyal@nxp.com" , "dev@dpdk.org" , "Athreya, Narayana Prasad" , "Sahu, Sunila" , "Gupta, Ashish" Thread-Topic: [PATCH v3 4/6] test/crypto: add unit testcase for asym crypto Thread-Index: AQHUBjohrgdYj7jKoEOd9TIeonFbyaRkhh9QgABQ/QCAAKdhoA== Date: Mon, 18 Jun 2018 05:40:50 +0000 Message-ID: References: <1526450713-17299-1-git-send-email-shally.verma@caviumnetworks.com> <1526450713-17299-5-git-send-email-shally.verma@caviumnetworks.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Shally.Verma@cavium.com; x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4PR0701MB3716; 7:Pr+yAMAwXcIcn/LW4k5A+TNrF5zI/X74Cy9Ses5XVsH77RLZ1pcL6wIGrTAy40EQPPLB9mXvD3u+wiLKSf13vj7gAAkcKUILyUjmRDrsbiO/wjwi9qaRsoLnZFHD3jTkyiL+wzESMYgCvmVHGzJ5UQ+DvYwuK1QZyLXLX8eMAC0yjk8tiJSbWel511fTuSxu6/OQcgavlXqmKUDq9FIsl/sKjyfk6oOrJrzHnBD6NpfpsFg6p5PltGLGqbrPS3Zk x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-forefront-antispam-report: SFV:SKI; SCL:-1; SFV:NSPM; SFS:(10009020)(39380400002)(366004)(346002)(376002)(39850400004)(396003)(13464003)(199004)(189003)(26005)(6116002)(3660700001)(486006)(11346002)(446003)(476003)(97736004)(54906003)(74316002)(7736002)(6506007)(305945005)(55236004)(102836004)(2900100001)(2906002)(3280700002)(186003)(14454004)(5660300001)(6916009)(5250100002)(3846002)(86362001)(55016002)(6436002)(478600001)(106356001)(229853002)(4326008)(33656002)(25786009)(105586002)(72206003)(93886005)(76176011)(7696005)(68736007)(99286004)(8936002)(81156014)(81166006)(8676002)(8656006)(9686003)(316002)(6246003)(107886003)(66066001)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR0701MB3716; H:CY4PR0701MB3634.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-office365-filtering-correlation-id: 281c4221-d4e9-4d5e-65e9-08d5d4de0d22 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:CY4PR0701MB3716; x-ms-traffictypediagnostic: CY4PR0701MB3716: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:CY4PR0701MB3716; BCL:0; PCL:0; RULEID:; SRVR:CY4PR0701MB3716; x-forefront-prvs: 0707248B64 received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: RHPS6FInIk9aygTUsV/dKMIusxU8s8tdyG3k8ei/sP03CaijNIAoQaajm5a+leEcgckq/Nt1sdb3drphsrL5QnzMSPHUfJZ4PhziFkSmQsqdhrpQf/aoIwCkPwg+ajHSahlRd+t5vQdXR5m6CnN0uYKfnhHr+us/71X66gY8xbBMpnAV5a43xmLjqV1qqTkckP5oNluzsbccafP5j2d/4aWmT0UcxkSCN2hHuQ28tvXoohZ3mSCyr/nAkBh9OKoDVDHzRCH+K4VpYX8Xn7j12lIeSQxewwKz+wZdPm7Wi9HFhC9dDbZPALzno0X5TwSKuc5Pd92eyNxZ4fHp9s8xCw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 281c4221-d4e9-4d5e-65e9-08d5d4de0d22 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jun 2018 05:40:50.9573 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3716 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 05:42:08 -0000 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.or= g; Athreya, Narayana Prasad >; Sahu, Sunila = ; Gupta, Ashish >Subject: RE: [PATCH v3 4/6] test/crypto: add unit testcase for asym crypto > >External Email > //snip=20 >> >> ifeq ($(CONFIG_RTE_COMPRESSDEV_TEST),y) >> >> ifeq ($(CONFIG_RTE_LIBRTE_COMPRESSDEV),y) >> >> LDLIBS +=3D -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 =3D >> >> + 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 =3D >> > ^~ >> > >> >My OpenSSL version is 1.1.0h. >> > >> [Shally] This library is tested with version 1.0.2m (mentioned above) an= d 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 enabl= ed which seems like a cumbersome process for users. So I recommend for now to stick to one version. Thanks Shally > >Thanks, >Pablo