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 D93CDA0471 for ; Wed, 17 Jul 2019 09:50:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ED2611C01; Wed, 17 Jul 2019 09:50:35 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 9D1E814E8 for ; Wed, 17 Jul 2019 09:50:34 +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 x6H7oYJC006158; Wed, 17 Jul 2019 00:50:34 -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=GDrDrnwG5BfEmiLIBWIGZBW8P5IiC5tM1YRwFEzW5Kw=; b=URtBT5uw/bPskHLhr3TMZ/VCTzxFAUJg6pSNp54DsxiGLVrDN1yuDmrysptTeUcofqpg uAc2T/PS2OtfA/X/LnbpRY8sASh3ZN2Ud0DcU7OKFgO23ZAVZFpk/ytPVRPLgTKXtAjI NTGs1nCW6oyLBvDD4ma0DnNLU/B6Tll1y7E9LFcoX1wrayqIR3VxGIjoTcM0V5L//wjv 5AsHOBopixlWWlsOrwo/PJg4sF8blT55EirZraAQZpJJgcBIwcmC6LWSlItxn1eADFK8 1z46pBHKDX7VmAo4FCCwQYb7vkH3GW6lSQOmfK67FZa6uhOuAbM4n1z6cL/5LoVd9Onp dw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2ts0a26ppt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 00:50:33 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 17 Jul 2019 00:50:32 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.56) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 17 Jul 2019 00:50:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P8f0aLPNq76K1kUlZ6dF0811q2/eYF3hn0SKFdUPUu4MkqqB+o8IPiFDpYNE3MyBkzeAxZbAJZ+WZo3SStqi6q2enbuHeFI7mPUMX5LhYTj9Ra/U+cERyWjmUQ/IPQ0FGN/nvalrHokEXFq4HuOAx7cEoYUx96k++8Qi300yWhumQszNb8XFuWQazT7mw6+Q05v83aEQo6ozLfurldnW+vG9T5nUYTGMOoetfkUETEAA6sDlWAMQwlPxktphn2FZMjwIY76jn3umeP1FWIdPY/lDGC1QqOoibGo2lca/h7PFUmHSNbRC1DoLE272cnl3OQeysdZbsTl1O4twdIL5ow== 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=GDrDrnwG5BfEmiLIBWIGZBW8P5IiC5tM1YRwFEzW5Kw=; b=Bp15yZpoJooGxFM6olN+lGNbXJcMes2ibl9YVTiEEsK15WgsRThXj7TkW7tKDt1g4tdzp/syONEt+ZmQeezKePMKDmDotLdVBPmXhEO/BhRFu3XvRqQiwLpazQh/Ow0rbHQUU/b6MAtWDGyPPAv2D1ElpujabtFiBIAiiZWEDHDnUSxVVIJ4XcXS4qHgHmNmq6e19u5mEnCnI88fvce+UqWTfDe0BdiZ/DCbRzxIXsyq5Uysi2CWDKm6G9QWflg+TMPmq2yz07/+ypMFaeDK9debxV/glMIW6LBuO/RCFVsLS6UQYWKeHk1bDHh2RepDaqZX71gormY1evM+wXZotQ== 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=GDrDrnwG5BfEmiLIBWIGZBW8P5IiC5tM1YRwFEzW5Kw=; b=fUNBHSiOcB7YWpaseAyNguFYdz6GpTbxBF/pbG8wZLxhU9fcC+KSWTrSO1JDYg44VHKQ3XwQe1eHFp9AmYnO3OOJ/KK6sW7NPv88L7DF+0SsadygCEbirlG6DkfjBflPFvt1WBe35i2HNfAQrWW48Ajr2iaF4b+hg/gP5dWOJoU= Received: from BN6PR1801MB2052.namprd18.prod.outlook.com (10.161.157.11) by BN6PR1801MB2033.namprd18.prod.outlook.com (10.161.154.24) 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:50:30 +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:50:30 +0000 From: Shally Verma To: Arek Kusztal , "dev@dpdk.org" CC: "akhil.goyal@nxp.com" , "fiona.trahe@intel.com" Thread-Topic: [EXT] [PATCH v3 03/11] crypto/openssl: add cipher field to openssl RSA implementation Thread-Index: AQHVPAfB7uJKWrTUq06Ad1TFv7Y7z6bOcG5Q Date: Wed, 17 Jul 2019 07:50:30 +0000 Message-ID: References: <20190716185304.12592-1-arkadiuszx.kusztal@intel.com> <20190716185304.12592-4-arkadiuszx.kusztal@intel.com> In-Reply-To: <20190716185304.12592-4-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: 7c38c2fe-1a80-43d2-e9ef-08d70a8b70b5 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BN6PR1801MB2033; x-ms-traffictypediagnostic: BN6PR1801MB2033: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:48; x-forefront-prvs: 01018CB5B3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(376002)(346002)(136003)(366004)(189003)(199004)(13464003)(66066001)(86362001)(53936002)(71200400001)(478600001)(71190400001)(53546011)(6506007)(102836004)(66476007)(6436002)(6246003)(7736002)(52536014)(25786009)(486006)(66556008)(7696005)(64756008)(66446008)(5660300002)(76116006)(9686003)(55016002)(229853002)(316002)(54906003)(74316002)(256004)(305945005)(66946007)(476003)(446003)(8936002)(81166006)(81156014)(8676002)(11346002)(99286004)(4326008)(2501003)(6116002)(2906002)(76176011)(186003)(33656002)(14454004)(26005)(3846002)(68736007)(110136005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1801MB2033; H:BN6PR1801MB2052.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: VXjcxzBqvJvpZbnVPEvJH4VQnxuuZpTlIdYICqsRmLR3C4quN0GM/6wIKa1Fj8Ek7j0aJDJwVclNsz2xtJF1IkTr8mPoo3YHbpSpqcUAsTCt8dsTFeYKzRmtcINR6LmAzSI7CWDR/z1+4X2wmyFox4WtmwIKxyXsE9/s2cRjQ7F8RUiTEonqcN7Vy6nupvW20mcW9YXJn0u19Ng050nd9scNmPQ9vhI7e436iycGyC8co8tM91Li7zTSiW+NA6TKZ7cNjERE6D4QQXjVMTvLlGV8A7F/Na0n1FZi1EoWYny+y/syOc2TRjawYtepwGPuSIBRmAHhMm89Hlu/7dz1hzeayjlA459JVRIxMKI0Vh2HFS5kIiB4yCaMi7NEcQZd9PagamH/F8P8j8i1Q/YkHVBKsBnKLiOpzbsNYEjbc8k= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 7c38c2fe-1a80-43d2-e9ef-08d70a8b70b5 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2019 07:50:30.2097 (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: BN6PR1801MB2033 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 03/11] crypto/openssl: add cipher field to openssl RSA implementation 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 03/11] crypto/openssl: add cipher field to opens= sl > RSA implementation >=20 > External Email >=20 > ---------------------------------------------------------------------- > This commit adds cipher field to openssl pmd to comfort to API change. >=20 > Signed-off-by: Arek Kusztal > --- Acked-by: Shally Verma > drivers/crypto/openssl/rte_openssl_pmd.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c > b/drivers/crypto/openssl/rte_openssl_pmd.c > index 7c8bf0d..71ae320 100644 > --- a/drivers/crypto/openssl/rte_openssl_pmd.c > +++ b/drivers/crypto/openssl/rte_openssl_pmd.c > @@ -1867,19 +1867,19 @@ process_openssl_rsa_op(struct rte_crypto_op > *cop, > case RTE_CRYPTO_ASYM_OP_ENCRYPT: > ret =3D RSA_public_encrypt(op->rsa.message.length, > op->rsa.message.data, > - op->rsa.message.data, > + op->rsa.cipher.data, > rsa, > pad); >=20 > if (ret > 0) > - op->rsa.message.length =3D ret; > + op->rsa.cipher.length =3D ret; > OPENSSL_LOG(DEBUG, > "length of encrypted text %d\n", ret); > break; >=20 > case RTE_CRYPTO_ASYM_OP_DECRYPT: > - ret =3D RSA_private_decrypt(op->rsa.message.length, > - op->rsa.message.data, > + ret =3D RSA_private_decrypt(op->rsa.cipher.length, > + op->rsa.cipher.data, > op->rsa.message.data, > rsa, > pad); > -- > 2.1.0