Re: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix incorrect padding addition

2017-02-09 Thread De Lara Guarch, Pablo
> -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 > > > > O

Re: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix incorrect padding addition

2017-02-09 Thread Zhang, Roy Fan
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 ciph

[dpdk-dev] [PATCH] examples/l2fwd-crypto: fix incorrect padding addition

2017-02-09 Thread Pablo de Lara
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