From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9577EA0C4D; Tue, 2 Nov 2021 05:40:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 20DE04069F; Tue, 2 Nov 2021 05:40:39 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 51DA54068F for ; Tue, 2 Nov 2021 05:40:37 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1A23CBSW011689; Mon, 1 Nov 2021 21:40:36 -0700 Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1anam02lp2040.outbound.protection.outlook.com [104.47.57.40]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3c2w7bgcsg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 Nov 2021 21:40:36 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QzovKb5ijOEeLLevN7KQvgjZoF3MF7LhbyfJbQ8a0TBstyr1gwQxA8dLjGzCfuTmQ/nXBz7y9B/CNwBsv5H3Hnu/0KQ38Pmg8CFV9ROjTw1YIhNsNFbWiS5AE05tCOokbbvppv1tbHclG619/CkZw5LJvkPQ5zf8CoBinSu+iTEmLJ2ovD69vzYm/XtFDLmMEl8U8e93Rf1DngbWGmivAF5NgkEk0zlh01ZpSLcNz5hnByu2Bw/dxNzkB0D87WFbe7X9bNBRwQG4mnS9h3RdmzBQrnlOmp/vMu63glMYRVqNzDPhD1bU1Ws9LGfLAyLwFad5IZjtblYuURRzPOixnw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OkqdbOiwetRN2uWt8N5vzbzrTJWPbBe9dyMuY9zjwpI=; b=WS+8SE0mV7sEdHlvfmhfGbk6iRFy3nDCZvEJW2so03qOFEyKCPwfTy5C4/NrUK2Px/FojY9mq4Y3W3da8is8lVetBQLNCsSxXRBrD5zu2/mFHhqmFP86jzNzTbH/mfjmvh2uXicskYJDhPtENco2KGO1avKcMyA96cH/W2OI0OVOThovRklWkQaSJNYb09vSuR8mhM0HuZhN7hqQYhcvP46vvsYFlpHW1wZMkItlAKKveb3CuYfS/3cm7RuOYCooNRuaFm8hmij6kgNtTLWf3fiuxkT6naSYfPAxnBYRWrHQPZzNmkaYstnyimkraMZN60I8jQoLzGK/lFrBxLUXtA== 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=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OkqdbOiwetRN2uWt8N5vzbzrTJWPbBe9dyMuY9zjwpI=; b=YmZzYgzS1zOinrQeAAo8lOhPKiA0LqvGbWzfMkaq8iIPvttTImGpfoHX9UFhWFJYl5xIWHZgyq3CBvFQGS8UgeQYJfU/+Falw5vE317LryRImm6SC+6bZf8Sb43vwtLPen10F0TuIpXWUW0YVZ1mqyYW3uCU1z5Oc8tXgAe/qoA= Received: from BY3PR18MB4628.namprd18.prod.outlook.com (2603:10b6:a03:3c3::13) by BY3PR18MB4627.namprd18.prod.outlook.com (2603:10b6:a03:3c2::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Tue, 2 Nov 2021 04:40:34 +0000 Received: from BY3PR18MB4628.namprd18.prod.outlook.com ([fe80::a96d:f9c1:dea2:f72e]) by BY3PR18MB4628.namprd18.prod.outlook.com ([fe80::a96d:f9c1:dea2:f72e%5]) with mapi id 15.20.4649.020; Tue, 2 Nov 2021 04:40:34 +0000 From: Vidya Sagar Velumuri To: "De Lara Guarch, Pablo" , Ankur Dwivedi , Anoob Joseph , Tejasree Kondoj , Nithin Kumar Dabilpuram , Akhil Goyal , "Doherty, Declan" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key Thread-Index: AQHXyw6iD/Bym0o7c0uxhCqKMVOOyqvp7OAQgAGLrjaAAjfz4IAAzhJCgAEyJmc= Date: Tue, 2 Nov 2021 04:40:34 +0000 Message-ID: References: <20211027084053.5264-1-vvelumuri@marvell.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: 6321be24-57aa-9cc6-589b-368dcd6fc368 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e4956ff7-4d74-42b0-d5a4-08d99dbae8c6 x-ms-traffictypediagnostic: BY3PR18MB4627: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1443; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DVI8km9LHfJNWTb1zNWCtqGnGFPjmcJx9c2Ow8CIWB+k/QDKLTSLBeqwponW+O4T5x6L6/xD2kQxlAsejZ1hVVgq7DKWk6vjxsfZUvcDSOGdvXJF402ioq2yDIzDf4TsOSSowtcEXMyNE1xirhU+fG4UKsXHs1sealEVlY/MhPDZ3kG2mT70DqDjmTISOQPAxXbY5nBppM4wnNmGok7Wwwd1NRiMD4egSM8ELZuSaHEC3jvxPZpzL2ydt5MDTYVU3ZyfTm00NYbP8ia5hH3By5UqqdYyS90ltEQ+GWTjyZdLH+fl02tlyWzUQ/fvXN2HsgUqlmSBtW2lCAnMUDSJtT0p9Dp3GPXOU/vxZbcIdkX7VpO7m7CsQyl32BIjLfSQKtTGDrGkLdnOOcR3x9Q0LOtSJnANcSj/PXnLH3VsV0CHvRWv6K1aaCHMqjzL64/OR5iEck0VUyxC3nPDrnROYQjxfn+ZfQOGpOFGYmVAhidPPVfidIJxXKS8GKV+UgajBX5Kga8JJAL/jj6diWILbsEdPvjVj6UDMDln21rzO6QZNPljK/ptj3eZQDVYL3nD2TqUUO37CByrmSakCCJiApF4q6i/QzcLFEMPCYdbXa4SbzhfNm4C6meYFJS48hkx1oX4mUX+F44pv+8oE8v0w+q6lYnfQ+uocyb8JqeFVTSZG623RJhBBhpl0YSiV8uzGnpfzZZbYmqLC34u7gCItgBj9tju9FN5WPJaq8T3n20Ks6LHzDlyX0UYB6VtRmzOuXVGW4SUCAEhfgWU5mssP1adsrvLICzw1Te+Ag7eezI= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY3PR18MB4628.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(5660300002)(83380400001)(8936002)(8676002)(33656002)(4326008)(122000001)(38100700002)(110136005)(316002)(19627235002)(508600001)(55016002)(86362001)(166002)(91956017)(966005)(52536014)(7696005)(9686003)(71200400001)(53546011)(186003)(38070700005)(19627405001)(64756008)(66556008)(66476007)(6506007)(66946007)(66446008)(2906002)(26005)(76116006)(15974865002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?UqZGPF30CR8SJ7wgl+FMPUGaKmrJwWXwWPQlrXQR20AgwRrdCeUykw8u?= =?Windows-1252?Q?0RhLbn3SsuNU4l65pXYdVYvWfJXqk1ZgM6fgFoXueNJuiQPoMXH1hXHx?= =?Windows-1252?Q?jDNLuPOeFKRWtO/QldtjqHHXOR1XaL1eD6WUubazJHWBhe1WPM8qP+D/?= =?Windows-1252?Q?rw7+0cpGFh9Pn1AfKAC2BVb4ssovLrSBilcAMek6vrtZLaomBKFz3vi5?= =?Windows-1252?Q?MA76luKzrQT2NQ8DHk8v4st3w4xC34pxx8KLj1Ju605rK3PBsrcV0cIB?= =?Windows-1252?Q?3zd3T5/4FAdP4VCL2BJBtvYUQRWRM/B61SCp3NO45JetIHKSGcONBu9v?= =?Windows-1252?Q?hlLeN352TarOCOnH/aiMj3SosvnV1+0QrzT4rECZAV22gXZIDoutw7aq?= =?Windows-1252?Q?5MUZu360MiREa9D2Cuu47q1+pmksnOmbkjkGCkDsdEeNeJCU/3UdUpEa?= =?Windows-1252?Q?yPL9SK8Ns434N4ZRUE3ryBIv+qVV7NVmzlfxeJNHqd045dlM0papK8NP?= =?Windows-1252?Q?+QGSIG2OyZi/NiywAUlr3XIGKKHjvE94oqvNoIxtSyH4EA7VMnRLwfOB?= =?Windows-1252?Q?LallE5uxgHcncwAXnwiUQgqDBtM2lAJ30ZMck2DEoHqX49NZm4ca5aMo?= =?Windows-1252?Q?yLMoVJ5PQB6SEDn21udz34yZvwcxPzzKmtHrkbuOE3v3NeLoE+sIBzL0?= =?Windows-1252?Q?BUDeMIYok1Ly0TbGhqzgcU1ro55cfbwPGEv6C4u7/vffruAg7Kz0gBtu?= =?Windows-1252?Q?tP8l6keg+M0WlTkrvSxz5JWTTYTvt3aCL+Tcx+LDuMg3yIK5B98SUqbQ?= =?Windows-1252?Q?nEdvJdblOFcJfwCM4J3hguoa+SO1PJubAjrw7nlgXg2iYA9nFRKJkWnA?= =?Windows-1252?Q?uhjc86BUmFmYuiWVnBNv32kaTW4KvnsRcVAsMZdIEZr0SxKeUjkm04XS?= =?Windows-1252?Q?nfJNowSnwmcl6e3o2Ty6qmWiK0HMQvNlYy9LZzyRblMXNaajGJGcFLyS?= =?Windows-1252?Q?qOwDieE5WrQiHUipZJixATFL9xT/1LgWdwnC9nJUJG95q5tA9B8y2Jvj?= =?Windows-1252?Q?WMwWcQ2didY+0Xr8Em5Jd5pqOYl3Jx1eXagdq8564knQ55q6oQFM6lY6?= =?Windows-1252?Q?Qyj6hOvG+lBW2hOQLaOJwQ8o2hAZJr+auspRYqCnCqm11IJmSuI0W5jo?= =?Windows-1252?Q?lDZVcmre3zRedeVtm12uR+2RfExVas7knxWQyM5sKlDJJ5Y0HCOkCrQr?= =?Windows-1252?Q?YJEVpfFN9pQhe7VlqAWtTTWsFxur/6eeNtpgIKXtJvQkP7S3h3f4kB4Q?= =?Windows-1252?Q?vDj9F9w9qQAZE2LsQI6OWoiYLtvpDQiLJpPWUvv9ECJVWuy0j4jzVB4Q?= =?Windows-1252?Q?WRcaH6CMYD4JVOic3YxVYxnkUasmEjAGaE3tLearbunRZsbgH8SMw4UX?= =?Windows-1252?Q?/UCNQozjTQuFAZX3XicVE/Zk2PN5LFumdacsE7Grwhzb2cSFEPqAxQMr?= =?Windows-1252?Q?lRDh4n3acjWljnGwkOEDHYIZEd+X88br6fRn3T83VBHT8ersAuEXIHUq?= =?Windows-1252?Q?/SBE8ywb6jiAxSo9Kvjw18AnDWYqPN4AdFleAVaEHenv+nixXiWWMco6?= =?Windows-1252?Q?I+cyfQELZNXZrrZ47Rp3uTnz45sisZRmxlBhvsyrhyZkh02cEbapc0La?= =?Windows-1252?Q?KRrlhRLj3tymBEBvR3SKagHF5qp4BAdj1sFRfee40mlN35O8an7t/g?= =?Windows-1252?Q?=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY3PR18MB4628.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4956ff7-4d74-42b0-d5a4-08d99dbae8c6 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2021 04:40:34.2706 (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: hXq/q0FSI0DGnZCoZN+JQXSN5ZYQs6s+DOr2UXWg9EoKOQuZ5VGPQ11doPi5FWEQll2dtT9HrlBe4d/DJ4R7Mg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY3PR18MB4627 X-Proofpoint-ORIG-GUID: LnXi30o27NWZeKlu81Mo30nLpvG35AGc X-Proofpoint-GUID: LnXi30o27NWZeKlu81Mo30nLpvG35AGc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-02_01,2021-11-01_01,2020-04-07_01 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Hi Pablo, We verified vectors mentioned in below link in our platform and all the vec= tors passed (i.e: the digest matches with the doc). http://www.is.cas.cn/ztzl2016/zouchongzhi/201801/W020180126529970733243.pdf The ZUC-256 Stream Cipher The ZUC-256 Stream Cipher 5 3. X 2 =3D s 7L ks 5H 4. X 3 =3D s 2L ks 0H, wh= ere s iH is the high 16 bits of the cell s i and s jL is the low 16 bits of= the cell s j. F(X 0;X 1;X 2) 1. W =3D (X 0 R 1) R 2 2. W 1 =3D R 1 X 1 3. = W 2 =3D R 2 X 2 4. R 1 =3D S(L 1(W 1L kW 2H)) 5. R 2 =3D S(L 2(W 2L kW 1H))= , where S =3D (S 0;S 1;S 0;S 1) is the 4 parallel S-boxes which are the sam= e as those used in the previous ZUC ... www.is.cas.cn Could you please check if these vectors work in your platform. Regards Sagar ________________________________ From: Vidya Sagar Velumuri Sent: 01 November 2021 15:53 To: De Lara Guarch, Pablo ; Ankur Dwivedi <= adwivedi@marvell.com>; Anoob Joseph ; Tejasree Kondoj <= ktejasree@marvell.com>; Nithin Kumar Dabilpuram ; = Akhil Goyal ; Doherty, Declan Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 2= 56 bit key Hi Pablo, Verified with updated test vector. the output did not change from previous= output but also, it did not match the ouput present in the vector. Regards Sagar ________________________________ From: De Lara Guarch, Pablo Sent: 01 November 2021 03:36 To: Vidya Sagar Velumuri ; Ankur Dwivedi ; Anoob Joseph ; Tejasree Kondoj ; Nithin Kumar Dabilpuram ; Akhil Goya= l ; Doherty, Declan Cc: dev@dpdk.org Subject: [EXT] RE: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for= zuc 256 bit key External Email ________________________________ Hi Sagar, Thanks for flagging this. I submitted a patch fixing the IV of the test vec= tors I pushed (it didn=92t change the output): http://patches.dpdk.org/project/dpdk/patch/20211031220421.52181-1-pablo.de.= lara.guarch@intel.com/ Could you check if they work for you? Thanks, Pablo From: Vidya Sagar Velumuri Sent: Saturday, October 30, 2021 1:26 PM To: De Lara Guarch, Pablo ; Ankur Dwivedi <= adwivedi@marvell.com>; Anoob Joseph ; Tejasree Kondoj <= ktejasree@marvell.com>; Nithin Kumar Dabilpuram ; = Akhil Goyal ; Doherty, Declan Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 2= 56 bit key Hi Pablo, Tried the test vector zuc256_test_case_auth_1 and the digest did not match = with the generated digest in our platform. As per spec, IV[i] for i =3D 17 to=14 24 are 6-bit string occupying the 6 l= east signi cant bits of a byte. But in the vectors, The values in the IV(byte -17 to 24) are > 0x3f. Could you please elaborate how these bytes are considered for generation of= digest. Regards Sagar ________________________________ From: De Lara Guarch, Pablo > Sent: 29 October 2021 18:07 To: Vidya Sagar Velumuri >; Ankur Dwivedi >; Ano= ob Joseph >; Tejasree Kondoj = >; Nithin Kumar Dabilpu= ram >; Akhil Goyal = >; Doherty, Declan > Cc: dev@dpdk.org > Subject: [EXT] RE: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for= zuc 256 bit key External Email ---------------------------------------------------------------------- Hi Vidya, > -----Original Message----- > From: dev > On Behalf O= f Vidya Sagar Velumuri > Sent: Wednesday, October 27, 2021 9:41 AM > To: adwivedi@marvell.com; anoobj@marvell.com= ; ktejasree@marvell.com; > ndabilpuram@marvell.com; gakhil@marvell.c= om; Doherty, Declan > > > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256= bit key > > Fix the IV and MAC in the test vectors added for zuc 256-bit key > > Fixes: fa5bf9345d4e (test/crypto: add ZUC cases with 256-bit keys) > > Signed-off-by: Vidya Sagar Velumuri > The new vectors are failing for us. Could you check if the ones we added wo= rk for you? Thanks, Pablo