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 2FA35A00BE; Mon, 25 Apr 2022 06:15:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EEC6642812; Mon, 25 Apr 2022 06:15:19 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10063.outbound.protection.outlook.com [40.107.1.63]) by mails.dpdk.org (Postfix) with ESMTP id 6C102427EE for ; Mon, 25 Apr 2022 06:15:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lmQD8K7V8JbJaFWL0PxbC68V29jd7k/6WEMHVDkcSuIFXJHNq1A0GpAG6e07xxHtmy45QBu/SB2/njk4okt13Sgjq7RfsjfIdHIRyEKOHljgPdvTjtp2376IplndSR6Zs7d5wUMH3bX5g9KZEY5PJHFqSBR40/VsJxHIocNxUP9xJOBsbWkWva2oVIRAuOCAPuKaeLe9hrInfl1j28iLRmITkfOg1xeSXtuhvXucElrkuEaKXCl4jBxaLFZN7gRp1sXMyY0vL0iKkAbFhZFyzPEeJoNxZmE6wOXLJBODqbCwNQk8M4znnKemYAEMzMQ3JithoipcdZtRB9h+e/symA== 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=Y7aakfGArc8XLz21mMjUu+xTKxNK8Nte7vWSSiLTD9g=; b=Qqyae1hOhLyfpn43U5SB5z/49hWkHnLvAFVeEOdQiOlmrhMNYN6n9GrA/FFjO5opk+nzfjX+Wc6jv/gUV9tv4yf3IBpTmbH8vaT3r7+o8Y+o4Oz5oTN2bJzD3nKO/Hoaq0+T/1JAubpPiihJnVk3RvcxMBKTvbDwQPiLkZkllq1nEBYjv3QJj00QrObc8hNIx/g5aCqTTsfEgEHgX7bBPwRQA4ah5sMRnRFv8QrZ+GpgqRUGtbtCLeiNJU7Qr636kMaevZ6xb13ppDRxSg5+ZICZmS94c/RTET2WinTWl04DgmrUJL65/bjjKQPTf/PohPT+z6/7tCjrJ8Uww2D4ng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y7aakfGArc8XLz21mMjUu+xTKxNK8Nte7vWSSiLTD9g=; b=QluJTeT3W5QdumHAgbbCRIAi9N4n7dTFWQjKEDxctHkTEauxzpPsy2w3Fj9FDHYLHmgatfHr0eeaHfXfyglQdr7po68/n174qgnhI3Y2rsU+jUV8zmylrn2AsQuTb8xMCzG0cYsDlUI1uKpNQBxq1bRhX8y7v4sESr28thuq2jE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) by PAXPR04MB8733.eurprd04.prod.outlook.com (2603:10a6:102:21d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.21; Mon, 25 Apr 2022 04:15:16 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2%7]) with mapi id 15.20.5186.021; Mon, 25 Apr 2022 04:15:16 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh Subject: [PATCH 8/8] test/crypto: add short MAC-I test vector for zuc Date: Mon, 25 Apr 2022 09:44:23 +0530 Message-Id: <20220425041423.2232034-8-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220425041423.2232034-1-g.singh@nxp.com> References: <20220425041423.2232034-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) To AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b45008d-303a-4f07-ef8d-08da2672338b X-MS-TrafficTypeDiagnostic: PAXPR04MB8733:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xp5EwvkbeUmIZPMfRQ9iyUxRTuEkrkbddEWcOh6mHNNwaSEDDuISpddyjJplplMlspvS42sB4dGKSFF7rj94wv3BXu+HYlhkjkojBsKMOyaW/mA9u3M16TYLtHFYvLuTs06T+LFH5TiNpw7TMaBFOqFbL0AHLjFvhTCgup7a/XhwOztx4woWdTTqPcGt1Wwnr1nGPRjv0xYSo/wYhigFrbaE6dnwynv8uLQ3jkbrV9enaI6of9uGf/zNk71NR3mPYB4/tjyEAC3iCpRz7eDs5xjBaBmN1Qs7wcDwBVHspu+U0qkBaUQvEAcfc2zh+c/44Gw82Hqzo8Dp7xci38BpDfQmEnHmGWyixAhvlEisFXqTRhqZnVIEm9mV1iu/ft8Bzb6I4nZhrx7GV2NR4nd358HwOwPfsVh9eywSKF0MgVYTQ3wMPYE7xy/Y5W1Uut+lGH4iW0WCJHKDL5C8Qta+lCpfqdWI5QA44uvf8lQEH0AARcNqcQDzdVy45t7maSTA3Q34rK/mW9dXIApM9Q9MfkeyyxToTXUewSTLRYWvtYrvZKNe18yhVasuOBuUIunzStCpt36TOWnu1jCVllKkdgmWcd3vLqHo4RujPYgdTmDzuRPdb3is3umPuW/f9LvDEEyUhrRSlZjax0RkVr6aq9tLYgTf7Ot/sOfA9sE8Ct8v/6SSECI0loYD5BFIYpbCLVrT0r/IfUdHcrgnTJ3pWg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8198.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(5660300002)(2616005)(508600001)(8936002)(86362001)(55236004)(6506007)(6512007)(2906002)(26005)(6666004)(52116002)(38350700002)(38100700002)(1076003)(6486002)(186003)(83380400001)(66476007)(66556008)(8676002)(316002)(66946007)(4326008)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?jKXL7XO++PiriBwf9jZdBLA3ZLMrxAMHyAozfwUF8niZZVxJeR2Qdxc7Nm6m?= =?us-ascii?Q?IskClU8ArPmRu/8J3EoLHz+Q8cD1gEnyHHwhQcTSLt804VM0SvpJS5PkLqG3?= =?us-ascii?Q?MetF3dVG8iStEz3VfKAN07r5YJwHEtrAYrPjHSsvKPkfql/4vQiUOeunP0WM?= =?us-ascii?Q?/WNEoHwwOXTG9A3ChY53SP/cvLkdGPhSfCDjGoEjB0Dgla21uJnel7fPt+We?= =?us-ascii?Q?D3/Rkaf6fWTQaazOd6fbpRr7I3RiUjFWBUWloWO/y6C1+JLp9yOOeWwofgMS?= =?us-ascii?Q?OftfyABDY85JaMAr+gsyTxyZg6A1daUcamDoyjXs2DU/arSv1KiXqvR7uq8V?= =?us-ascii?Q?CQZq8JPIlwHFJH9sVVhuFtyZJEJM+uy6RRyU2Lg5ROZ1rcPcVpU/aYCafkSk?= =?us-ascii?Q?d604CnSH0MdoPdelzNYySVxJaTqAWST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vIi2BZ8rsyMLq1msRKwjSkUT/o/0YKvdDiHPQ4SfpkHwpTqmXb91o9BsoB?= =?us-ascii?Q?DrN9pRpZEW4my8GkcAWet/gWLSIqcbsSTE6ZIyzLSgtDP3D99bVjbMHlEKxj?= =?us-ascii?Q?WiG4nFchUt2EZCKlVcIZwra5sPc360qi+m0L5VxWdmNXVA1vOUWuqVq4K5iH?= =?us-ascii?Q?WSRIc0tgkznbonWUz4Y3T4HcILFuv1lo8T712KcyCl8uYwqjWOKgm0T1JGRC?= =?us-ascii?Q?iDox37/7nj2rteLAtb0+S5MprV+wR1cpNPjOOGorMm+3NrbVMSr+6SnzKHCi?= =?us-ascii?Q?1borkBXeJUBkk2wSp7IdHMW+unvCZxATWo3iiSV+b4JSm0m0P7ZSbKknUas8?= =?us-ascii?Q?DvH7z1jvuI7AeWi13BT3w6FHc0n/SnQxiuVcfdey92D+hT4QvRpNnhP3C5hm?= =?us-ascii?Q?iQZ252NaaA=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b45008d-303a-4f07-ef8d-08da2672338b X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 04:15:16.1794 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jQ/CiFedv7L0w8TAxT81RDf1JHu6e9sLuA7xR1AXeLlP0M8OzBDZdl3POURONxyX X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8733 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 Add a ZUC based short MAC-I test vector. Signed-off-by: Gagandeep Singh --- ...est_cryptodev_security_pdcp_test_vectors.h | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev_security_pdcp_test_vectors.h b/app/test/test_cryptodev_security_pdcp_test_vectors.h index 81fd6e606b..585c10b423 100644 --- a/app/test/test_cryptodev_security_pdcp_test_vectors.h +++ b/app/test/test_cryptodev_security_pdcp_test_vectors.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-3-Clause * * Copyright (C) 2015-2016 Freescale Semiconductor,Inc. - * Copyright 2018-2021 NXP + * Copyright 2018-2022 NXP */ #ifndef SECURITY_PDCP_TEST_VECTOR_H_ @@ -128,7 +128,23 @@ static const struct pdcp_short_mac_test list_pdcp_smac_tests[] = { .data_out = (uint8_t[]){ 0x33, 0x32, 0x34, 0x62, 0x63, 0x39, 0x38, 0x00, 0x00, 0x00, 0x00 }, }, - + { + .test_idx = 6, + .param = {.name = "PDCP-SMAC ZUC", + .auth_alg = RTE_CRYPTO_AUTH_ZUC_EIA3, + .domain = RTE_SECURITY_PDCP_MODE_SHORT_MAC, + .auth_key_len = 16, + }, + .auth_key = (uint8_t[]){ 0xB2, 0xA4, 0x73, 0xB6, 0x78, 0x5C, + 0x51, 0x8E, 0x9C, 0x1E, 0x9B, 0xC6, + 0x66, 0xE4, 0x84, 0x24 + }, + .data_in = (uint8_t[]){ 0x00, 0x40, 0x00, 0x00, 0x00, 0x05, + 0x09, 0xe4 }, + .in_len = 8, + .data_out = (uint8_t[]){ 0x00, 0x40, 0x00, 0x00, 0x00, 0x05, + 0x09, 0xe4, 0xCC, 0x7D, 0xD0, 0xE4 }, + }, }; static struct pdcp_test_param pdcp_test_params[] = { -- 2.25.1