From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 63E4E58EC for ; Fri, 10 Feb 2017 01:37:38 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 09 Feb 2017 16:37:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,138,1484035200"; d="scan'208";a="932162094" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by orsmga003.jf.intel.com with ESMTP; 09 Feb 2017 16:37:36 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.173]) by irsmsx110.ger.corp.intel.com ([169.254.15.101]) with mapi id 14.03.0248.002; Fri, 10 Feb 2017 00:37:35 +0000 From: "De Lara Guarch, Pablo" To: "Zhang, Roy Fan" , "Doherty, Declan" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix incorrect padding addition Thread-Index: AQHSgs+s8DUTAWUvf0S7zHOIGs9LLaFg/WyAgABmZCA= Date: Fri, 10 Feb 2017 00:37:34 +0000 Message-ID: References: <1486643265-244932-1-git-send-email-pablo.de.lara.guarch@intel.com> <589CB37B.7060404@intel.com> In-Reply-To: <589CB37B.7060404@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzY2OTYwNjQtMjZiNy00YTM0LWJjNjAtZmY4YThlOTc4NDIxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkJDT2VCTDRaKzB0ODllU0dYRTk1WXVrcGViQXUremNib3YwYUpwY1FJU3M9In0= x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix incorrect padding addition 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: Fri, 10 Feb 2017 00:37:38 -0000 > -----Original Message----- > From: Zhang, Roy Fan > Sent: Thursday, February 09, 2017 6:23 PM > To: De Lara Guarch, Pablo; Doherty, Declan > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix incorrect > padding addition >=20 >=20 >=20 > On 09/02/2017 12:27, Pablo de Lara wrote: > > L2fwd-crypto app was padding an incoming buffer, > > to be aligned with the algorithm block size, in all cases. > > This was not the right approach, as padding is only necessary > > when using block cipher algorithms, such as AES-CBC. > > In case of using a stream cipher algorithm, such as SNOW3G UEA2, > > there is no need to include padding and increase the buffer size. > > > > Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application") > > > > Signed-off-by: Pablo de Lara > > > Acked-by : Fan Zhang Applied to dpdk-next-crypto. Pablo