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 577D05591 for ; Thu, 13 Oct 2016 20:22:25 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 13 Oct 2016 11:22:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,489,1473145200"; d="scan'208";a="1053456187" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by fmsmga001.fm.intel.com with ESMTP; 13 Oct 2016 11:22:23 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.164]) by IRSMSX109.ger.corp.intel.com ([169.254.13.6]) with mapi id 14.03.0248.002; Thu, 13 Oct 2016 19:22:22 +0100 From: "De Lara Guarch, Pablo" To: "Jastrzebski, MichalX K" , "Azarewicz, PiotrX T" , "Yang, GangX" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix verify with decrypt in chain Thread-Index: AQHSJS6LIlDWHmNgWESZ2izyOArz76CmsvaA Date: Thu, 13 Oct 2016 18:22:21 +0000 Message-ID: References: <1476262724-164925-1-git-send-email-piotrx.t.azarewicz@intel.com> <60ABE07DBB3A454EB7FAD707B4BB158213B046F3@IRSMSX109.ger.corp.intel.com> In-Reply-To: <60ABE07DBB3A454EB7FAD707B4BB158213B046F3@IRSMSX109.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmJjNGU4NGItODE4Mi00NmUxLWEwMzUtZmJjNWM5MDkzMzRiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImtyQjdUV2NRMFg3TEtCSkY1dTBIZ3dwM0lJVXBSeEZTYld5VTk3aXpVcjg9In0= x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.180] 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 verify with decrypt in chain X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 18:22:26 -0000 > -----Original Message----- > From: Jastrzebski, MichalX K > Sent: Thursday, October 13, 2016 1:48 AM > To: Azarewicz, PiotrX T; De Lara Guarch, Pablo; Yang, GangX > Cc: dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix verify with > decrypt in chain >=20 > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Piotr Azarewicz > > Sent: Wednesday, October 12, 2016 10:59 AM > > To: De Lara Guarch, Pablo ; Yang, GangX > > > > Cc: dev@dpdk.org > > Subject: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix verify with decr= ypt > > in chain > > > > This patch fix setting crypto operation data parameters in l2fwd-crypto > > application. > > From now decryption in chain with auth verify work fine. > > > > How to reproduce the issue: > > > > 1. Run l2fwd_crypto with command: > > -c 0x3 -n 4 --vdev "crypto_aesni_mb" \ > > --vdev "crypto_aesni_mb" \ > > -- -p 0x3 --chain CIPHER_HASH \ > > --cipher_op ENCRYPT --cipher_algo AES_CBC \ > > --cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f \ > > --iv 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:ff \ > > --auth_op GENERATE --auth_algo SHA1_HMAC \ > > --auth_key > > 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11= : > > 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11= : > > 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11 > > > > 2. Send packet with payload and capture forwarded packet. > > Payload in forwarded packet is encrypted, what is good. > > > > 3. Run l2fwd_crypto with command: > > -c 0x3 -n 4 --vdev "crypto_aesni_mb" \ > > --vdev "crypto_aesni_mb" \ > > -- -p 0x3 --chain HASH_CIPHER \ > > --cipher_op DECRYPT --cipher_algo AES_CBC \ > > --cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f \ > > --iv 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:ff \ > > --auth_op VERIFY --auth_algo SHA1_HMAC \ > > --auth_key > > 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11= : > > 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11= : > > 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11 > > > > 4. Send earlier captured packet and capture forwarded packet. > > Payload in newly captured packet is not decrypted, what is wrong. > > > > Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application") > > > > Signed-off-by: Piotr Azarewicz > Acked-by: Michal Jastrzebski Applied to dpdk-next-crypto. Thanks, Pablo