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 AEC63A3168 for ; Wed, 16 Oct 2019 14:49:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 08CFC1E946; Wed, 16 Oct 2019 14:49:09 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 191431E934 for ; Wed, 16 Oct 2019 14:49:06 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Oct 2019 05:49:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,303,1566889200"; d="scan'208,217";a="186138450" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by orsmga007.jf.intel.com with ESMTP; 16 Oct 2019 05:49:04 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.139]) by IRSMSX107.ger.corp.intel.com ([169.254.10.18]) with mapi id 14.03.0439.000; Wed, 16 Oct 2019 13:48:56 +0100 From: "Dybkowski, AdamX" To: "users@dpdk.org" , "naveen.kumar@commagility.com" CC: "Trahe, Fiona" Thread-Topic: Re: [dpdk-users] AES "Digest-encrypted" crypto chain case. Thread-Index: AdWEHb0uKHfjEJN7SyWOLg3tGB4T7g== Date: Wed, 16 Oct 2019 12:48:56 +0000 Message-ID: <522B1A062D56224ABC0C6BDBCD64D9D369E6E7F2@IRSMSX103.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGEwNmNlNTUtMjI0OS00ZDMwLTk3MTctODIxYzEwMWMxMzBhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaXkzM0NwOUlYWnpyYVwvK2czbG1lU3RnRnFRYTF3amRDd0pid3JEWWVKU1JBTHRpUTZLbEVOak90TmJEZVdpcnMifQ== dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [163.33.239.180] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] AES "Digest-encrypted" crypto chain case. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi Naveen. Regarding your message sent to dpdk-users mailing list: https://mails.dpdk.org/archives/users/2019-September/004382.html We've tested here at Intel the digest-encrypted combination you wrote about= , with auth.algo =3D AES-CMAC and cipher.algo =3D AES-CTR, and it seems eve= rything works fine. Do you set the length fields properly when creating the operation? Accordin= g to the header file rte_crypto_sym.h, in the structure rte_crypto_sym_op, = the field cipher.data.length should be written in bits for the SNOW 3G, KAS= UMI and ZUC ciphers, and in bytes for other. Have a look what the header file says: uint32_t length; /**< The message length, in bytes, of the * source buffer on which the cryptographic * operation will be computed. * This must be a multiple of the block size * if a block cipher is being used. This is * also the same as the result length. * * @note * For SNOW 3G @ RTE_CRYPTO_AUTH_SNOW3G_UEA2, * KASUMI @ RTE_CRYPTO_CIPHER_KASUMI_F8 * and ZUC @ RTE_CRYPTO_CIPHER_ZUC_EEA3, * this field should be in bits. */ This also gets built into the documentation available here: https://doc.dpdk.org/api-19.08/structrte__crypto__sym__op.html#aebb70c2aab3= 407a9f05334c47131a43b Maybe that's why SNOW3G and ZUC were working for you, while AES-CTR did not= ? The same applies to the offset field and to digest.data.offset and digest.d= ata.length fields. Please verify in your code how you set these all offset and length fields a= nd check if you write the number of bits or the number of bytes in them. Adam