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 4C371A0471 for ; Wed, 17 Jul 2019 12:18:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 97BF71DBE; Wed, 17 Jul 2019 12:18:02 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 37334152A for ; Wed, 17 Jul 2019 12:18:01 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6HAFs48012629; Wed, 17 Jul 2019 03:18:00 -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=8L7CwdkVZZX1kBbNyxLdEn+B6k1QK8YqiaH681KjyVo=; b=K9j5zcMcW89JSNm7WGR6ydOw/NyS1N5ubk56HkNo3a6UzQDDf5xDwY9p81xFWbCDmgya /pkujkhO/WesgLvs9Uvja/B8skjv0RflpdK/YwkDJbKGa4g7qfKG34JmSdPGzwtnfp8Q l7VKCxPx5Kav80bWGcXF7msX7/nddNTKAyKPi67Qr2G/Gx++Dhhe4c5ZsszDAZBM/UmF lK98xMbZRGC+YAIUbW53umTuB26TZTBFA3cDKaMphZfShoqwnaPvCKNZcz0cqwKtVR5H 4374sniDzSrAPgZbFsGrruYtQulntAcir3Et8BtgD52VVODvgp/cN/z+uXeN5eNuhVFj gw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2ts07vfraf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 03:18:00 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 17 Jul 2019 03:17:57 -0700 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (104.47.34.56) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 17 Jul 2019 03:17:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZDhwmA/8cI8z8RIvkobvT97oIsZteZixyc8oEbJfhTZeHpmSiT2GfxtPQdK/DeCD0+H8VOnEIcLUQQ3nsDYxFmE0GUQLPhiktjm1NsmXR8nrta/ayQsFMO2jyMgbXCr4eAnJS5bXGgTwHfPMp4+OKw0h3dQp2rUcHxUdtmJJ02oupUEmuavmptKjtI991AJo/tmA7M0MPvmOl9LV/NFyKlBu1SPf+BoABwx/j3TcpC+XegQDJpiTvZfRNDl7Kccx1XMqj5Ledrg23HGB0ityk/5pGhQBUidWs4/qr2ENH2ZzZb/jIg/jveQeVmwPd/x+Degeif8HhrtKdbrE/t+bLw== 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=8L7CwdkVZZX1kBbNyxLdEn+B6k1QK8YqiaH681KjyVo=; b=eS9YpkAfQjIBm1hhx+D1U2/FauN/5cdR6ZMUtNsJnQMaRcbJcEgzZNlPDadRhAW6565NzAEeHgE717Em4LYpS0fKw1YXb5RSWsuydVACGEwwlzUmHsUlqr5G5Ww+dcyMlBTrpmvBMXeIs7v7yJQjbCS8pI8cyL7URGeBqcuCHPLnGKjlr5mJwaPmxo00WMJH47OAiXUyQ7k+Q6vPPoTfh0t57KhLQNN6Jtb93BT6xeMgf93WLxVpSf7h3TyA0zmtTazOFL404rOTDgpKw+hjfX1Qhah4ozOfMZQ39kJG4L00MtO+xTYhNmbAtI1XcOSkNy8CsUh1Kpz7mh10yz3VAg== 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=8L7CwdkVZZX1kBbNyxLdEn+B6k1QK8YqiaH681KjyVo=; b=ZzhdL6/kNvey1OLA7+LnO9TXpEego2vc8bEasJPrwV5ODEX1V04/8oxNNSzbmYDdXhIueYV8WBnt0p152mOonQbLZ4Apty1TYzMSahfgqKEl2M0N1lHluiXwsRHMf+ipxmB7doB027EOBt6PDaRjDCo1x5WKt2VbPjCJP1sY+9c= Received: from BN6PR1801MB2052.namprd18.prod.outlook.com (10.161.157.11) by BN6PR1801MB2034.namprd18.prod.outlook.com (10.161.155.25) 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 10:17:53 +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 10:17:53 +0000 From: Shally Verma To: Arek Kusztal , "dev@dpdk.org" CC: "akhil.goyal@nxp.com" , "fiona.trahe@intel.com" Thread-Topic: [EXT] [PATCH v3 09/11] cryptodev: add RSA padding none description Thread-Index: AQHVPAfKZ8j+eY0DzUaDBU8qnoh74abOl+GA Date: Wed, 17 Jul 2019 10:17:52 +0000 Message-ID: References: <20190716185304.12592-1-arkadiuszx.kusztal@intel.com> <20190716185304.12592-10-arkadiuszx.kusztal@intel.com> In-Reply-To: <20190716185304.12592-10-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: f94e70ac-7f70-411c-00aa-08d70aa00775 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BN6PR1801MB2034; x-ms-traffictypediagnostic: BN6PR1801MB2034: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2733; x-forefront-prvs: 01018CB5B3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(136003)(376002)(366004)(396003)(39860400002)(199004)(189003)(13464003)(99286004)(8676002)(2906002)(102836004)(6506007)(6246003)(8936002)(53546011)(305945005)(74316002)(81156014)(7736002)(9686003)(81166006)(2501003)(5660300002)(52536014)(76176011)(71200400001)(71190400001)(478600001)(229853002)(53936002)(55016002)(11346002)(7696005)(33656002)(25786009)(14454004)(64756008)(256004)(54906003)(486006)(14444005)(76116006)(26005)(6116002)(86362001)(3846002)(68736007)(66946007)(66476007)(66446008)(316002)(6436002)(476003)(4326008)(186003)(110136005)(446003)(66066001)(66556008); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1801MB2034; 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: gNMNuRfCmadGuNYB4NbG+vVKKxyc58OSNIRaPNtQAZCJdAi0G8TmF9OfeDJDXxdc7atU0sJhPbwACW5rEz2myw3uOKBawKuV5bGKR/D86RZHXS5DEVaI/00egs9Qf/aKLDrJaWDfWrDbV03fXpcvLxTwz1wdaNpvZvvIb26EG1/HmE5tz/gMh0CC9GMv1yNRR1esuiBLbuxVtsnhISavyjNAY/T1Y+CFPl3yTbNkBQfdPmgsIONGZ+aHQx7JV6NIUOaf0DntlhwLRoEU6lB2nPDdlSDPBSMfrmzMt+wATq5vHhdB5xR/4fyG1X8LbEN+dfoiQTI8aPOOJRg+DhiM4YRMsC3wbsK4KRT9Ih2l0vKAugxnuwmnZB0QU+PS4k003ATB1uW41dxpiLG48wF0K/skmuqFI643Rh+wtG54w5M= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f94e70ac-7f70-411c-00aa-08d70aa00775 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2019 10:17:52.9799 (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: BN6PR1801MB2034 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-17_03:2019-07-17,2019-07-17 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v3 09/11] cryptodev: add RSA padding none description 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 09/11] cryptodev: add RSA padding none > description >=20 > External Email >=20 > ---------------------------------------------------------------------- > This patch adds RSA padding none description. >=20 > Signed-off-by: Arek Kusztal > --- > lib/librte_cryptodev/rte_crypto_asym.h | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) >=20 > diff --git a/lib/librte_cryptodev/rte_crypto_asym.h > b/lib/librte_cryptodev/rte_crypto_asym.h > index 5026042..7f630f0 100644 > --- a/lib/librte_cryptodev/rte_crypto_asym.h > +++ b/lib/librte_cryptodev/rte_crypto_asym.h > @@ -90,7 +90,10 @@ enum rte_crypto_asym_xform_type { > */ > enum rte_crypto_asym_op_type { > RTE_CRYPTO_ASYM_OP_ENCRYPT, > - /**< Asymmetric Encrypt operation */ > + /**< RSA no padding scheme. > + * In this case user is responsible for provision and verification > + * of padding. > + */ > RTE_CRYPTO_ASYM_OP_DECRYPT, > /**< Asymmetric Decrypt operation */ > RTE_CRYPTO_ASYM_OP_SIGN, > @@ -409,6 +412,11 @@ struct rte_crypto_rsa_op_param { > * - padding PSS > * data provided should contain message digest of the message > * to be signed > + * > + * When padding field is set to RTE_CRYPTO_RSA_PADDING_NONE > + * and RTE_CRYPTO_ASYM_OP_DECRYPT op_type used returned > data size > + * will be equal to the size of RSA key in bytes. All leading > + * zeroes will be preserved. [Shally] its bit unclear here. So, app is supposed to pass buffer with padd= ing removed or padding intact? Are leading 0's padding bytes? If so, I believe app can use any kind of padding, BT2 or OAEP so it does no= t have to be necessarily 0. Or May be I am missing some info here. Could you point me to source which says= , for padding none, data will always be padded with leading 0s? > */ >=20 >=20 > -- > 2.1.0