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 0EEB0A0503; Fri, 20 May 2022 06:22:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A56642B80; Fri, 20 May 2022 06:21:36 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2064.outbound.protection.outlook.com [40.107.22.64]) by mails.dpdk.org (Postfix) with ESMTP id ECEB542B85 for ; Fri, 20 May 2022 06:21:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kwcmq9CGefYxnaFW9fyR5zcScD9kWcM2/2LdN8kij6y7t5+H4m/f7UyObHjxuZn7B9AE+36K09ic2qRRCLAhLCyIovFHviU5hG0cgcjmPRUI2fjV71k30fk+UI7fp3zXLbl4RYbxVj9FC9aKqpTrTvZw9zeNIoBy9ZaDdLGVvVK+2KmLHHxxiYcf/me+dv50eMISP+CY1TfynGj6Nm3Up983RWQKdw3enq5RnNnYNYQjT8Xf9JDiQO8ZHKENsQ6ZBK2TblmTA9NAdvC8cbhS077sPnJ/+ntQc1HTsEbqurxBiiLvCXOwnJHmaAaqPDgl1pxX1FyXHq/WwayAeGVbhQ== 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=UWnunYDlwYAXMfnYDBHLrdyZCnqBd0BNlT0VpaH1fLX9dba1rHcUvjKsLsKeLjOhUfIWRdPt4e02KSprf6hRjE8qujgYQnWVRyPoph3gAuUMsf/pa56UMVVhsTsYzD/d/5jC+9YLMpbrWHna3RcLl+3n5ldR1QlX7X8oEYDceQTaC58O9sNdR17QUkYtHoW0h1w8QruKDvlntZH5LSdAP7URw3YqmQlv+TJ6IaEIynQBvgj+9Lmv6+QG+rNr9PoB8RUZRtHbHgage6NxVVsOb1liMCuRizEaigand3avosZtmJKxKPlmD6FWCi0Jlkv9DpyzXLA7L3vzpIjsSS8CbA== 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=Y29HrfI302jMvMQ6O6Nr96d/DhMHqkHllSwwa+rE34ySrIgDaL00E5TR4VyH9nsSiQcbMHpn44ISL4XByETdp91s21uWxScU9x8n+A8zl5gJijgOCh8Idr3aNDeFzFywFF2bP66GKbtjCnkcM797Dr+NzMJGhFIXDio9Mzscnto= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB8194.eurprd04.prod.outlook.com (2603:10a6:20b:3e6::7) by GV1PR04MB9149.eurprd04.prod.outlook.com (2603:10a6:150:24::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23; Fri, 20 May 2022 04:21:34 +0000 Received: from AM9PR04MB8194.eurprd04.prod.outlook.com ([fe80::c1b2:4c14:c10a:3dde]) by AM9PR04MB8194.eurprd04.prod.outlook.com ([fe80::c1b2:4c14:c10a:3dde%8]) with mapi id 15.20.5273.017; Fri, 20 May 2022 04:21:34 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh Subject: [PATCH v3 6/7] test/crypto: add short MAC-I test vector for zuc Date: Fri, 20 May 2022 09:51:03 +0530 Message-Id: <20220520042104.3784908-7-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520042104.3784908-1-g.singh@nxp.com> References: <20220517033858.40394-2-g.singh@nxp.com> <20220520042104.3784908-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR04CA0005.apcprd04.prod.outlook.com (2603:1096:4:197::16) To AM9PR04MB8194.eurprd04.prod.outlook.com (2603:10a6:20b:3e6::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 75ef603c-72a7-4df0-54bf-08da3a183904 X-MS-TrafficTypeDiagnostic: GV1PR04MB9149: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: okQuRKo7DoyigMIPCLapA05FaVAz08e/t8mnR217aDgHHsvfDLDR2Y0W4rVYc3s8pJSyNpqggPNV9ooixD0M/6dtYHB36lb/wT/BHSLT0gC2bmL0J/IOw7daMvW422dSC+gvGLduYku3xtmS8HBHzz+DVy67RhgqJ6hR+pfLglqt+SIIUULuiKcqF+rGlivP2VirxCkF7sqjG36p1WM52BN45j5B++A2f3CBifxwXR7EM3wCK0YGqP/DLKp65bNkzj0ayF0gxS3r6zMMHK+kLhOnHP+iQCq8ZraILEzQeHW3h1mGBs2I0MeHYDFbVImz0uP+5F1QcbdlGFpB7fFfr5zueJHDOhQ2npSJgMyMIKMvgl5eT3gPU7fU9YzaGZLBFCUQLhoCOHrt6QniqM7Xde1E2axKC7ihG1QcBh/tP6/aF9PeswWToXKPi6x1/CET59nYQFA4xHER08QbL1mKGZLdz3YokotNSUroC0j+RVrJish1VIbDwrFlvKAerrrUbNXZK/GN504Js4Y5XUhCrjZKoXvsKrMuKUsjNC0W4ZCsmPX7EH4OYdNM5rfBsT6CzIGDUeH6bT8bLcGS9EQSYAhuYW1UowgFejIXsZkOjirIP5hdPRzlx1BJdRJOyXaLFneIGRDaZEgeGPZrRtSSQTrE+vl9xrfiWsL+4i3xTIMyf4Yx6uETTKlil4JCGAVUaura/2G6Xf63xOd/9z/FyQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9PR04MB8194.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(38350700002)(66946007)(2906002)(55236004)(6666004)(36756003)(508600001)(38100700002)(8676002)(66556008)(6486002)(6506007)(1076003)(8936002)(26005)(5660300002)(2616005)(316002)(66476007)(52116002)(4326008)(86362001)(83380400001)(186003)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cDhcuh91O1Dj3PppTdXn355xZX35aqHrlek9WzJfMJpKxqo4LFCakvyvjgs6?= =?us-ascii?Q?kIr5/+S5Rvl+57b3t99iipWUoKG5K2dIuaHfcG6FHW6PsEBaTPXE9oWtRHlX?= =?us-ascii?Q?6cFnWisPkcFhib4sb+FuKAtoaaCyfadjptQjbbqt/q3UTyrQN4EXy/1a+aU2?= =?us-ascii?Q?7CPKFVxNVEg0MGtjagtzi2ZsmSNAUJWrN/cCdJbgcioIMWD4sd860xGlvuep?= =?us-ascii?Q?gYnV4nPJLqR5YFiGGmCQhp+e/xnezj5vh9zYadTUytD4Ghi2PIq5aKyM8ytd?= =?us-ascii?Q?q/eL9Me37UbVTqyjUnQHFK+D0peEdDw5U5CZgOcGxR5WYSJxKEEXY3f+CPWX?= =?us-ascii?Q?wRHfELyiorUdJg6Z25yOZ1EBX5eiaeB/DUwFU2VYPq/4jig3XBQ2LoXaz/cs?= =?us-ascii?Q?d/T3mkTpxELk+fxXADI8HZliMn49u8TpU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WIBXO9zQL4bxJrtnTbMK9rcNpzRWo+A0M/nWG44770E91yQBcOAW?= =?us-ascii?Q?qZPpI4NBuUncslqx1rqUggkOBXw0itNghVL0m9Bitj/IoqA9x5z5rihiqslM?= =?us-ascii?Q?cESJMWsNiehIBSrtr6KM4ukkH4OTapSkE352BoleLafYs8Et/DZH09okq0WY?= =?us-ascii?Q?/PquWa6VpbwMAvxsNsc9qhPhcjrLaBE4RVPbiOz/PXqxZUaQkEH1GsIVWBnV?= =?us-ascii?Q?TrB0ckr0+AYxkDTcqn9ejLfrqv2vbAXIr1fs4R/04bikGSi1SHsfYyC09Hf7?= =?us-ascii?Q?h9/mEDpoXb9Ncx2AqF6Wp+fKFPdxVbmhZlwJr9YAbZV+7WwUITW03wC2MQ4Z?= =?us-ascii?Q?aV6t945heEAl7buQk68TaMyJ/IbXo3vzKjcgvxwAQykGihRmWR4ZAA0PhjY3?= =?us-ascii?Q?Sh0LhQ9w8A=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75ef603c-72a7-4df0-54bf-08da3a183904 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8194.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2022 04:21:33.8735 (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: aWW5OY7Ywlx0hbxV+mUEy8dZCKNW48d94PuGY5bgyDK3qQ8CewQ80X8pfuTbsgEa X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9149 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