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 781DFA0471 for ; Wed, 17 Jul 2019 09:41:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 904DF28EE; Wed, 17 Jul 2019 09:41:47 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 59C4F1DBE for ; Wed, 17 Jul 2019 09:41:46 +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 x6H7f9pI026298; Wed, 17 Jul 2019 00:41:45 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=1dFZVqLQ3TvHEQ6hTMjsp2mZ/R7w3tPK5k1fpWLDdtk=; b=jzbls+91Dml17BumL4GYeuY3LXo/PnxLmjt/q4Ffn+UtG9sFPM/tCMxmvnn5x5d1APCO J/uHx7jxBXRKnwSBUnJgc3HeN/Q4sc2DFs7CK7rIQdGXh0IcJhv94dn8PspY8AI/uBdE U8f5+ATcfHzcNprC0/T/CyTer0I0n6k/UQyzsqYi1LawXgozJN7TW7wo6r0P1O/1bY96 LEqq7/CqN3INvqZ4vcWxwl3CLzxAilM6JG7b+tLkpySOBuDKbFALv82pG6F7YrZw+Q0z n7hQT1GlBoMl2pz/QTtxSnt5IuT6rcK0kCp1hyOekZLsgfPOcMDEOEpakP7DbG0FyQpT kA== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2ts0a26nw7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 00:41:45 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 17 Jul 2019 00:41:42 -0700 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (104.47.32.55) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 17 Jul 2019 00:41:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T8vYwaryVXMnpMXhOC9MauMAi9+ytVqSVOIMcmvgWgswbwTghKy2ObuevAV9BK30Bk4sIKMCEvJhHuDj1RnVrqnM3Jqc9OZRwocQxuP2BtiHnL6G0ZdWV/oO70fAhmgM8kMfZRkm9ml/cjfvFk+gdQqdwZ3SBBIZOXT0cuzTt4mCcjgi2LZY6yFRiGY1RFBXSE71p11+AlU7j0UWyzl48ncypdm7JHwZkL1DOI6bJey+6pUWpZFFTZZQj5HxT81joZrwA9JOmFR6oqxdL/VR4cDTNlD64S7zcT4PGGfzqDvdgnINdv+x6hVmFzWaqzx0YYrCDhgm6uyHU+B9MPBKAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1dFZVqLQ3TvHEQ6hTMjsp2mZ/R7w3tPK5k1fpWLDdtk=; b=Y0qRIYdZsgiov4lnCDzjJThY8dlVZUJpR/nWEeBS1ThsWTm0W6KDEPeXGuZvpEy7uQ+qahbqkbT3SrSUXiLGQ91YNQm/N2WSZytGjxUmw0dMAzIT19QCQNItjLd226EM8N/2V6e9sh0BMtCPtw69S4VWpcTroTNdHcT6rQvohaTvT3C06Zvi2i3foFgiCLEDrncUzuDwffODZP62TytKnJbzqMHAX3HdGVUKVbreUv2N1peyml08m/ysUDapjPcAIlAoDS4e00nOVXO559ggcpwp+AO49KRXlPdFdR35DnLOFnet18AUq2mKsb3sJ+EAW5FcZx3hJjXwbjCnVPOm2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=marvell.com;dmarc=pass action=none header.from=marvell.com;dkim=pass header.d=marvell.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1dFZVqLQ3TvHEQ6hTMjsp2mZ/R7w3tPK5k1fpWLDdtk=; b=nh3VmfIDsMruU4Hn8IFdWpQSx76vEWtmkI0TSX77OD7/nCpPM5ssjiyyN6cV2mYrcSCTxWt3GqQ6Bu4N4AdD3BrICZIc/OKVPnQQ+JuF9mHY1IUzt9WQDJ2Kqbo2gSztuJcFGYjtGxBvA5FgYAypm/0VaSb8XatgWlUFLUCE8Ro= Received: from BN6PR1801MB2052.namprd18.prod.outlook.com (10.161.157.11) by BN6PR1801MB1971.namprd18.prod.outlook.com (10.161.153.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Wed, 17 Jul 2019 07:41:40 +0000 Received: from BN6PR1801MB2052.namprd18.prod.outlook.com ([fe80::b9c4:1fd1:a47e:cd72]) by BN6PR1801MB2052.namprd18.prod.outlook.com ([fe80::b9c4:1fd1:a47e:cd72%6]) with mapi id 15.20.2073.012; Wed, 17 Jul 2019 07:41:40 +0000 From: Shally Verma To: Arek Kusztal , "dev@dpdk.org" CC: "akhil.goyal@nxp.com" , "fiona.trahe@intel.com" Thread-Topic: [EXT] [PATCH v3 04/11] test: add cipher field to RSA test Thread-Index: AQHVPAfDtho9AJIMDkGAe+PLY4JdnKbObZMw Date: Wed, 17 Jul 2019 07:41:40 +0000 Message-ID: References: <20190716185304.12592-1-arkadiuszx.kusztal@intel.com> <20190716185304.12592-5-arkadiuszx.kusztal@intel.com> In-Reply-To: <20190716185304.12592-5-arkadiuszx.kusztal@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.169.231.225] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e1aa7b06-f430-4708-c4f0-08d70a8a352a x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:BN6PR1801MB1971; x-ms-traffictypediagnostic: BN6PR1801MB1971: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:669; x-forefront-prvs: 01018CB5B3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(136003)(346002)(396003)(376002)(366004)(13464003)(199004)(189003)(229853002)(2906002)(486006)(3846002)(11346002)(33656002)(256004)(55016002)(8676002)(76176011)(9686003)(4326008)(6506007)(66066001)(68736007)(6246003)(316002)(476003)(478600001)(99286004)(8936002)(86362001)(81156014)(102836004)(446003)(81166006)(53936002)(25786009)(53546011)(71190400001)(110136005)(54906003)(64756008)(6116002)(74316002)(66946007)(52536014)(76116006)(14454004)(6436002)(66446008)(66556008)(66476007)(26005)(7696005)(71200400001)(7736002)(5660300002)(305945005)(2501003)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1801MB1971; H:BN6PR1801MB2052.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Lewu7GCq1AYbmY4WfffYIu3QY5ms8ZsWdFrUY0xIGFKFluv3qEM06HbTF+ptUxTqWztcxWNmI1VV+8WIj+nXeT+c6ao2pFl55TaHiOLYNvo+BCqX2pzljTCrRIaL1Rrt86cNGpSN1YrOtZmwrhZXvibD2CPBLl3v2m9gmlTKC6f8XBhG/N9G9JjY2jnD6z2jNpZwDczsaXcgUsXuoBk3eXwE3lI/aIAYzDqA/bWfg6IL7B897bY9rtU1S7871CdkXtX95lyvcZW5IM1ceVTxcPJnFwYJnuZWRccRdvs++e+sRjc6CeXsL/3jBiHiaDhCR3BzJWrMLtePpTRAxN/7HuTmV3/p1lPB30iKOcln8PyDmO2XZxaxmxWpM3xjmjGCEmCXem17GIC473SEGipq1nRaOohCtx7HNida4b5gJVU= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: e1aa7b06-f430-4708-c4f0-08d70a8a352a X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2019 07:41:40.7056 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: shallyv@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1801MB1971 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-17_02:2019-07-16,2019-07-17 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v3 04/11] test: add cipher field to RSA test 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" > -----Original Message----- > From: Arek Kusztal > Sent: Wednesday, July 17, 2019 12:23 AM > To: dev@dpdk.org > Cc: akhil.goyal@nxp.com; fiona.trahe@intel.com; Shally Verma > ; Arek Kusztal > Subject: [EXT] [PATCH v3 04/11] test: add cipher field to RSA test >=20 > External Email >=20 > ---------------------------------------------------------------------- > This patch adds cipher field to RSA test cases >=20 > Signed-off-by: Arek Kusztal > --- > app/test/test_cryptodev_asym.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/app/test/test_cryptodev_asym.c > b/app/test/test_cryptodev_asym.c index 4dee164..8391545 100644 > --- a/app/test/test_cryptodev_asym.c > +++ b/app/test/test_cryptodev_asym.c > @@ -164,6 +164,7 @@ queue_ops_rsa_enc_dec(struct > rte_cryptodev_asym_session *sess) > uint8_t dev_id =3D ts_params->valid_devs[0]; > struct rte_crypto_op *op, *result_op; > struct rte_crypto_asym_op *asym_op; > + uint8_t cipher_buf[TEST_DATA_SIZE] =3D {0}; > int ret, status =3D TEST_SUCCESS; >=20 > /* Set up crypto op data structure */ > @@ -180,6 +181,8 @@ queue_ops_rsa_enc_dec(struct > rte_cryptodev_asym_session *sess) > asym_op->rsa.op_type =3D RTE_CRYPTO_ASYM_OP_ENCRYPT; >=20 > asym_op->rsa.message.data =3D rsaplaintext.data; > + asym_op->rsa.cipher.data =3D cipher_buf; > + asym_op->rsa.cipher.length =3D 0; [Shally] I think this should be initialized to length of buffer available i= .e. RSA Key size? PMD can override it with length of actual data written at= output, which has to be less than , equal to RSA_key size. > asym_op->rsa.message.length =3D rsaplaintext.len; > asym_op->rsa.pad =3D RTE_CRYPTO_RSA_PKCS1_V1_5_BT2; >=20 > -- > 2.1.0