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 40EFFA00BE; Tue, 17 May 2022 05:40:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B7BC642B7F; Tue, 17 May 2022 05:39:35 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20058.outbound.protection.outlook.com [40.107.2.58]) by mails.dpdk.org (Postfix) with ESMTP id 0633D427EB for ; Tue, 17 May 2022 05:39:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ft4zkab3tTe2xze7s0Dajs03i9WWxU6knWgPz2WmF8UDTU2BlQHWYNdS02QmuudwIXkJD6qDvI8Az24sdIsQtTLOCevBA+Cf429CR46INjz9Ucvdyd0G6UFopRxWF7JOLVQvf6xqf+UVdGs8lFqWf+eYP5Jzzz34wFhMa9dRCNvrArFvmMwde+ITSWff0qzbKCeahGgmBaZiL7P4xqbYCmtsu2lr9uDDo/GegDWRBBUmzGp7HnI62L/X059cTPHsfXxIxO1bEnWW5GBQ2B+zGMxxvukM2TIr29RvSxDSt40GClMrCTb4RmkH6m0/cvGYbuE3MU5qqtHgSzp5gG+s3A== 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=BJea4lyqvrdxn4u9hNmpwqTo2FTIWAZd2k2f6ZgKT2L7OS+mZ0elbLmBSlQCVsgFw8s52g9To7ArWg4THkH4RZV1eTH5yxcyruRvGIGMlMuyW2sK/fdRra/ffnm2GucYNDHFtLYj/ztFdczmxOZycfNKtJAbLe/efToOXbzlaRPsMBYLYsgb45coSl5+T2oJZ3CQ7RyZX2qZTT20w39EV8NLnKeuYR9siw02ilEI9ZPm4pOLvfvER8HyIFG0UQqf+mMTvUmD11TnRR1HKIreS8sTcqXQmuRdUb0hev2Ls9dQFr4wGrT+g5klHwBUWTF/IUktF+9dZJjGNBpRDYEMmw== 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=jORZkFGQ3kOnT0vLg0SQWRJ0IMl930q3J1TvyP9UvQrCo+Z2gIWCDI2IDA9BMCbqTRB8M7GRpqV7uvBS8ZiYjW/EePCNWgFooqwjRRRTG2qa4BPZzc3YWAie3BSSf3nPzCEEKWng0cm1/RxiEH+wEPSV4SCIiV/Z943WLIiIBkk= 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 DB8PR04MB6937.eurprd04.prod.outlook.com (2603:10a6:10:113::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.18; Tue, 17 May 2022 03:39:29 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2%9]) with mapi id 15.20.5250.018; Tue, 17 May 2022 03:39:29 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh Subject: [PATCH v2 6/7] test/crypto: add short MAC-I test vector for zuc Date: Tue, 17 May 2022 09:08:57 +0530 Message-Id: <20220517033858.40394-7-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220517033858.40394-1-g.singh@nxp.com> References: <20220425041423.2232034-1-g.singh@nxp.com> <20220517033858.40394-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0046.apcprd01.prod.exchangelabs.com (2603:1096:4:193::18) 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: a359aa76-41b9-496c-eae2-08da37b6d7fc X-MS-TrafficTypeDiagnostic: DB8PR04MB6937: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: jFeXTH0PhnBzyaFL4a58BsYJm+Wf/bmlZcWs77zxbQLj5Cw0N/B4ijWESNQiOmC5UQbPoGiPOItk8XfCBGeQVFmLW3zMYMxQLAI9bbyCZ0Uh2V5c+Ptk/H2+muvWYK+QokhYNMPAhiY/+6t5kr2YRiOXRPm8g+Tb72+v/bc0ShCgDain7BTPzDjHJ6nqI/T3S7WXFYlY4LIjRD0MkrbBYfCqvkqdoS3/eThLy69hSYPAq8RU5aYt2oRaT8Yie+/hevb8bTFmWCX4S3kN7i3k4i7jx6FRwfXckRpo6Qm2xhFOTSmudOLxce2xIIou0ulLoJH25GcMkqtQDNf/g1tA3rzAGk8WmTutvm+V3XMo98Vxxwp4JNI30LS4dhj3JFXICVIma4sy+lKqgNeh04aKJxLKylzLdkFagfw+rOIM9lFYNUFhI/32euPOZXD5bL9Vebwd0ao6eHgYWjPMOs/2jlau+Xhoqr28tyxfZVBzrXddc+yDw8pElqhc0LfNb4l9Nj0Qh1kmTfSBpTjX1fyb6FoyysZovFvnHj4GMTztLJgZiBZzFaZHc8QFNYkypbUnDluYWjXSivLQ1sDUNuzqQtOkzU8e0Hp3DE5adW37MBWhzcGSzttnSj/8wFMnc/h37Z6fjgT9mzDlnQNFMq8aKRMoZxd7tkanXXe6KuaUDNyPotL++QQUvPJpIdW8YBmA1+DRyex3PE2k8Qtfbx9dkg== 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)(8936002)(316002)(55236004)(2906002)(38100700002)(2616005)(86362001)(66556008)(38350700002)(36756003)(26005)(186003)(6512007)(4326008)(6506007)(83380400001)(1076003)(6486002)(6666004)(52116002)(508600001)(8676002)(66946007)(5660300002)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?5l3tTiBzdniuWNPYZ/DU+owCCZD1Q2gL6mUa0OzH9QAMe7nWfgX8aNzRuK7a?= =?us-ascii?Q?T02KU3NlKVnmjW5NPJ3Fco97LatS7IJeFuMct6j6PD9Ex2Gp0gcbCSuLVRZI?= =?us-ascii?Q?B7q4MrtnpwuZg3ksYj3zyMHXjJBATpAmXoVmPmvX0TDUUJcRQThz2h5xtYlj?= =?us-ascii?Q?1+5oG02tCpuGVaRZ3Tq8M6ntuHS3H6CzYZSL/iDcvRIWgEeUmH/HQdcSC3w0?= =?us-ascii?Q?p1+r4+VQkoO6VIWJedkkDXXIrEQAmeawWXZRk+JR5oEgepXPc97Youo4KrTy?= =?us-ascii?Q?L5Wm/J0+8tcEIwHywpNC+S9mUC1aWUG1zKWEYzA840Vi/msFdOueED755Upw?= =?us-ascii?Q?e+GP7En8vhez/VUKdTH56kqR5S6cRn2YUpRHIMMe8VXw09L2ZSFW5moEioaX?= =?us-ascii?Q?IWh9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SF8etZ2p1MzU0Gt?= =?us-ascii?Q?bzo5BS7CLy41yhhcj2O/roLxxixLJ8W228K9FdSlwcV6D5IXK7B31/yfP7pD?= =?us-ascii?Q?CkoDloD5Ktll3wmfjoFetndFUrGzq8XQVkCnCuAvDHIGNPiKhGWPqYn8qkko?= =?us-ascii?Q?qeq39NOuH57yvgmcby3a9KblfPSdXr4qSuo0QHSfjmefa1RyhSm877+/cuQM?= =?us-ascii?Q?knERrXASQi6r/T6n1yI3dWdqDn0aODCcdtmqghn6j7VtS5ppJUfnujQIbkcG?= =?us-ascii?Q?ji0iU16/u+Y0I5o9a482B1WYtw6J26LmtLXEyRn4tTixrTFkrYXamSICM28q?= =?us-ascii?Q?FE6f0tO6UenznuI/2F3hjnWEJcSYsML2Q3iEt0ljBK0bVz4Mh5gFqNZkYDoV?= =?us-ascii?Q?4sdA4eTul6zGTs+xEAE1seigJvtnU7WP4bx/MMDVJjx7+KCLtbnKHfXn4fn3?= =?us-ascii?Q?JTdkM/OSag=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a359aa76-41b9-496c-eae2-08da37b6d7fc X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2022 03:39:27.5785 (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: T9kQOn2JKsueph3kyOpv2KrEV0491ZJQdZfh0eu7Qni39eJ5dFp4toAG4diFIa3E X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6937 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