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 5014641D3D; Thu, 2 Mar 2023 10:56:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35EB640E09; Thu, 2 Mar 2023 10:56:40 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 2B05C40DFB for ; Thu, 2 Mar 2023 10:56:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677750998; x=1709286998; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=0CN6/3j1XEErxGET3Bf6x6gpG4tfKAgzYEbm0/nKwk8=; b=CjM9czt+vKJMx8yXRzl9R9KEd6c/Dk1sfSM/VT99fNBDvLwH7iCO1woT sB7D8TmfaaC4I7ic+Z5pqLZ7mnhhstnyrQIAoq7nA0VSdOJIykjlukcJU izPH/CgUW8q/A9g+bEuXuXJLs7vsazddxKQLo51xwjJ3VvSNJG7IQIZx3 i1PV8KgRx7heAJPPbdimaP+8KwRKTz1OejJUYblFBbMxCykcKfwXHjNBU kYRYsHYErNvTt/O49Fv4QG2lSOFOrUaheiUbTLEiiZhHH88vf6u40fgN0 P9dT9FEOH1v7oa9S5stDef+k09MsIJ8MWM3ceqkCp2+/v/LLq3L5HELgN g==; X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="315098936" X-IronPort-AV: E=Sophos;i="5.98,227,1673942400"; d="scan'208";a="315098936" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 01:56:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="674898375" X-IronPort-AV: E=Sophos;i="5.98,227,1673942400"; d="scan'208";a="674898375" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga002.jf.intel.com with ESMTP; 02 Mar 2023 01:56:36 -0800 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 2 Mar 2023 01:56:36 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 2 Mar 2023 01:56:36 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.170) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Thu, 2 Mar 2023 01:56:35 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bjUaaHVx5FFYSOTtZ0eQv1yE9CofVbeMiW8K9Lpf9C6hV5XxIJdq9BasSECP1Iitntzb+zQWM08H66vMASQJ+mwzuuzkuL3SV3FqkDRvH0tqWzuVSKYsvhO4RFS0mq1biqkgTcpgyogTQkv5l+orhEbGtMONV7ztVpeCiMdSeIhnpHFFHeUWzyAcKhZ/okluYtLoJDaDqhlzA0/nOyPqBgcbCZW7uC0RDYk0lWO5QfP/Kws3qnjxVY1oLgvm5j5xOrWjnE+4kVQm9JDOXYJv3VbMmNDFijlzcXCbu4fghO2axKP8x9CPvi3HKOQRbMlSXDRPIeM2Taw5JGSYtTWYhA== 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=dWvLgawE73qMsJXeap1qDbNsPSpTqFAz1wQRSPuMpmM=; b=GNL4E6iSms8qrpddkFnExzAIo+LeexAcZSZQOcFjLW87Ft2SqV/nPPYCJSABcLGrdLgVDvKy33mzbB8X9M7X03Zo6si7erBFisGpHtXIsH010DXcdqhwirRZ5lLTMF7NL1yAT4mZlmcynkLm6HwiMUV9pDk2xLJs+Q3HeXOmtOSqHHSyABVlvenDyMe5SPzny+MOeksaVXaRUqoWyZGY7X4cbv9rqpcBUgKCeHWRhBJZ3R4c6CFqTzrFdUMt1h1yrWJLeKrijhCw6iPe3jgaJDaxr7OE9O8L9GvULoahr++IdNEDASHxQm5J41ZrmynUTYQX7EUnFW/CTzpuUYcsGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM8PR11MB5591.namprd11.prod.outlook.com (2603:10b6:8:38::23) by DM4PR11MB6431.namprd11.prod.outlook.com (2603:10b6:8:b8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.27; Thu, 2 Mar 2023 09:56:33 +0000 Received: from DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::fc64:7f8d:bb40:2751]) by DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::fc64:7f8d:bb40:2751%6]) with mapi id 15.20.6156.019; Thu, 2 Mar 2023 09:56:33 +0000 From: "De Lara Guarch, Pablo" To: "Power, Ciara" , Akhil Goyal , Fan Zhang CC: "dev@dpdk.org" , "Ji, Kai" Subject: RE: [PATCH 5/5] test/crypto: add chained ZUC256 testcases Thread-Topic: [PATCH 5/5] test/crypto: add chained ZUC256 testcases Thread-Index: AQHZTFxr2Ndri/LNeke9SqSJLmGk9K7nQTdQ Date: Thu, 2 Mar 2023 09:56:33 +0000 Message-ID: References: <20230301163916.2248543-1-ciara.power@intel.com> <20230301163916.2248543-6-ciara.power@intel.com> In-Reply-To: <20230301163916.2248543-6-ciara.power@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM8PR11MB5591:EE_|DM4PR11MB6431:EE_ x-ms-office365-filtering-correlation-id: 0cae0d3a-b1d2-4790-fd7d-08db1b04677e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9hdgxxGEapB5blrFNhKnHYQGrKZCuHTy5vaLdiR/ZfK0CG9/fa7tlC4Ir+1F2/+fsC8szX6ICGUwffrw1XMt9vmHT45sAjQQ7TQq9QlXyOg0ush9Sk6dKAUoLxF4WpK8fixFnUCMieHKYdmHTprhd8Wf7XjpQbWMiiZV5OEl3HXFAmpzxNf/HR/1mp57yh1mm/BRbRVXrmBrxbM6K+gtix2AiYPL0H0zz+Yaf1aw9Y0UbJlAc7cCiaf8awNW4unI2WwYVlB6fqZmFi4IYhaClzp6ZuvL5HZ4bAluS/qNj7Pmvaqyby4JpIAjGW4JEAu5OF6q92NwAZ7hokBIQa7viWifsLNSKJ7J5iZ5VXlpC2pU8VKT3Nvg1cL13FDFuaz8kmBR+JilzfFtw1k4Zo0CaL1/EzyDgHkFbkTHvHCLFJadk4CSUSBPwikAqsCsqtw/SVQXsN4TYFLGFImljVk6RLf8HZHNs2NUSKpxvDLDdfm0wR449Cm7aSNMi67JrJ4r+CD9XtCWnvQxgFx3TmSod0EjNMjOmiCRzrKPb8fUD7n7lZi2YhGFmhKHlZGv0x6oWzKCq9ggVltk+Oost8k7SraEAyND5xFpTii5osQoLFhAo6NRWis3Hv60DAJlQxqQHMmki2ZhWlnhaumB4ca7PyslTUJ5988CHODQVMkg+C1UG97ZH+oVDVEsvdyDL4/zbt5nxF77eWC27p+Atl/78Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR11MB5591.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(136003)(376002)(396003)(39860400002)(366004)(451199018)(8676002)(38070700005)(110136005)(54906003)(8936002)(122000001)(52536014)(316002)(9686003)(86362001)(33656002)(26005)(478600001)(53546011)(186003)(71200400001)(7696005)(55016003)(6506007)(2906002)(107886003)(38100700002)(82960400001)(5660300002)(76116006)(83380400001)(4326008)(64756008)(66446008)(66476007)(66556008)(66946007)(41300700001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?EhnX1P5vjodVkpWCsstTSluvzeU5HshXzaOJ6HNFaGz8eyK2GxEbXcFxd6D0?= =?us-ascii?Q?EI/fKPjya6VOdUNehZH0NTxW+cQnuzHaEp/xI90eG86zRlH76baZ/AUGQgPu?= =?us-ascii?Q?Pd2TorVdSZubqp7QBea0wvIm1L/hD4tQzN2hZRmRj3d60K9zkRzUgJJBmE+R?= =?us-ascii?Q?Mt1AhPHR3Elu6VBWXpbHt7bMZW8Ogmxc2+YmDRKL2hn6UuVA1Xl1iIZPzyYC?= =?us-ascii?Q?Oee0zEUI3T38Z2R0+mu1TvVcohFo+vgetf+AbkUkoF7hUdvqpDTSxLT4oN+9?= =?us-ascii?Q?G3UkXvC/awSOY4LLSpmv11aOKJtKyYsqaSw7ilZI93pdlvEeVGqBpfUbApxt?= =?us-ascii?Q?v6iSFxslQwP0wYZy2w0zM5x44+RtMbxFzTLgsSzX5VmVZNIIDkB88DY4CUGS?= =?us-ascii?Q?tSwsLEizMAeWwK93Ugeydw1+/98+OQAbqzzD3rvaU7Pt523z0yTA8muqU+nA?= =?us-ascii?Q?353ZqTVEyeD0QGOVJgK1cqGb5T0UIla4MReFnXXOtWCmbvUONA52KAiJTrwi?= =?us-ascii?Q?DTKo6lKlF1qmCxvQIcAEA1DLXLg7liaPK8bTFXKpZWlrXcC+sApGud2TJ+JG?= =?us-ascii?Q?smezjbEPOeQWVZxf0JuFJVgimms9o82TZHDBMi5KgTABvdVxvi68djK1E4j3?= =?us-ascii?Q?9ZGio1gHN2OQcTcrOsBR2tztUXQru79cYE1O4Btp2uZedqMWTA/WHA8MgYN7?= =?us-ascii?Q?S80tJCwCbNDC7CSZVBrDEP2pYYjiQd882QNkLV/0edMqH3PVP7AMF0NYKnpu?= =?us-ascii?Q?3ZxQdgLGUqUD4UHpE8T0PWdZHu/etUkWZQJ36xZFwLy7Qc3886FkdeWpK1Dy?= =?us-ascii?Q?psnI5FZyekPMX88iHDzjv9nOF0i7ESbmXMZkWasQXukmypn8W49QOCUP5u47?= =?us-ascii?Q?5H4+krwxDazYzIFeq9bEB2+aOj3juu7d3mJY8c58tZwjnV9WruGPkMrG94cg?= =?us-ascii?Q?39JH9Zgt/bjh0AW/sk3cP/0YxcyNrDv4vCyaiUL+oODdD10ULszfZliazsK5?= =?us-ascii?Q?q5ROOegnLap3j3BuxixxMZ1UhtgF6ml7e+BUp17KDW6PxCVdy1l4Ll7oGeeq?= =?us-ascii?Q?Nssy8673TpuJxg6bI6gKto/IZSIZjBtg5OI44IKL6evYxLVof3myfV9Qx/FS?= =?us-ascii?Q?62aZqmElugmv6LMAfcYKkuglv62L9g5zG7BYjh3LiUy2DyYdBa2+Hg2J+9K0?= =?us-ascii?Q?NJurKqtsBkT2d91WHhrsyZ+iAW2iyccE8DFAEe5rL8y2k7FslaCQ82Tdboln?= =?us-ascii?Q?wNnycBESnnFqKpqGu/1RfurCLvq9SIS9FAWP58MxuxO6mjfPTIImvTsUTRl+?= =?us-ascii?Q?Lyo5aRvDoq8xz8yj+jWbPptL4Qdu7ts5kk1Cn13wr47Fm1DMgwS9mVItowQI?= =?us-ascii?Q?TeHJNF65eo+ov/JedRjtQJ9Ohj7xdAo7qSryuF3OR67csXV7hn6Ic48Pkv3H?= =?us-ascii?Q?cdsSw8LJNQ77gWFHAT/x3UsPScqhvpd8RzI/6a9yXBtCaL62N4/IMM8C5TZG?= =?us-ascii?Q?6ra/Beaof+mIdTDLJHm5FdQ/46rLoWYC3BBkSmoLS9eBtdXFgq9kPXVImXLW?= =?us-ascii?Q?nI5dIbLeKsKv3dvRbMkqyYzNpthWrz8bns4vDJOQsp6AOp/1KX9oNSW3Fm/w?= =?us-ascii?Q?2A=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR11MB5591.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0cae0d3a-b1d2-4790-fd7d-08db1b04677e X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2023 09:56:33.2783 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: niokiO99CIldR8OG9PW1IDfLOUg42xhIonS4stdwG7S6JWadhZpUEVQtVojtsxYwAI0KGW0xTGhfMIksxfbgMRr3nQLQvkQvBFa3PNpbrDE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB6431 X-OriginatorOrg: intel.com 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 Hi Ciara, > -----Original Message----- > From: Power, Ciara > Sent: Wednesday, March 1, 2023 5:39 PM > To: Akhil Goyal ; Fan Zhang > > Cc: dev@dpdk.org; Ji, Kai ; De Lara Guarch, Pablo > ; Power, Ciara > Subject: [PATCH 5/5] test/crypto: add chained ZUC256 testcases >=20 > Testcases are added for ZUC256 cipher-auth, auth-cipher, and auth-cipher- > verify. > 4 byte, 8 byte, and 16 byte tags are tested for each chained type. >=20 > Signed-off-by: Ciara Power ... > --- a/app/test/test_cryptodev_zuc_test_vectors.h > +++ b/app/test/test_cryptodev_zuc_test_vectors.h > @@ -1602,4 +1602,718 @@ static struct wireless_test_data > zuc256_test_case_auth_2 =3D { > } > }; >=20 > +static struct wireless_test_data zuc256_test_case_cipher_auth_1 =3D { > + .key =3D { > + .data =3D { > + 0xf7, 0xb4, 0x04, 0x5a, 0x81, 0x5c, 0x1b, 0x01, > + 0x82, 0xf9, 0xf4, 0x26, 0x80, 0xd4, 0x56, 0x26, > + 0xd5, 0xf7, 0x4b, 0x68, 0x48, 0x6b, 0x92, 0x6a, > + 0x34, 0x1f, 0x86, 0x66, 0x60, 0x0a, 0xfc, 0x57 > + }, > + .len =3D 32 > + }, > + .cipher_iv =3D { > + .data =3D { > + 0x8e, 0x5d, 0xbc, 0x3f, 0xb9, 0xae, 0x66, 0xa3, > + 0xb9, 0x5c, 0x12, 0x14, 0xdb, 0xc5, 0xbc, 0x18, > + 0x48, 0x12, 0x09, 0x06, 0x25, 0x33, 0x2e, 0x12, > + 0x12 > + }, > + .len =3D 25 > + }, > + .plaintext =3D { > + .data =3D { > + 0x36, 0xdb, 0x63, 0x68, 0xb5, 0x1f, 0x4e, 0x92, > + 0x46, 0x1f, 0xde, 0xdb, 0xc2, 0xec, 0xfa, 0x7e, > + 0x49, 0x85, 0x77, 0xaa, 0x46, 0x98, 0x30, 0x2d, > + 0x3b, 0xc4, 0x11, 0x24, 0x98, 0x20, 0xa9, 0xce, > + 0xfb, 0x0d, 0x36, 0xb0, 0x2c, 0x85, 0x42, 0x72, > + 0xa4, 0x21, 0x4e, 0x66, 0x0d, 0x48, 0xe4, 0x57, > + 0xce, 0x5b, 0x01, 0x14, 0xf3, 0x31, 0x42, 0x2e, > + 0xf5, 0x53, 0x52, 0x8d, 0x73, 0xfc, 0x5c, 0x6e, > + 0x09, 0x92, 0x1e, 0x35, 0x17, 0x60, 0xa8, 0xbb, > + 0x81, 0xf6, 0x21, 0x8f, 0x3e, 0x05, 0xe6, 0x0c, > + 0x60, 0xe7, 0x21, 0x53, 0x18, 0x63, 0x81, 0x0d, > + 0xb6, 0xd4, 0x9a, 0x29, 0xd0, 0xf6, 0x97, 0xd9, > + 0x89, 0xb5, 0x0e, 0xa0, 0x15, 0xb6, 0x5c, 0x97, > + 0xac, 0x7d, 0x26, 0xeb, 0x83, 0x0c, 0xf7, 0xe3, > + 0xf3, 0x18, 0x37, 0x0b, 0x7b, 0xb8, 0x18, 0x31, > + 0x8c, 0xb2, 0x5a, 0x5c, 0xa9, 0xf1, 0x35, 0x32 > + }, > + .len =3D 1024 My only comment is that you could use "128 << 3", same as you did with othe= r vectors below, so it's clear that these is 128 bytes passed as bits (same= for the lengths below).