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 0B480A0093 for ; Thu, 21 Apr 2022 14:01:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 06C0040040; Thu, 21 Apr 2022 14:01:26 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2074.outbound.protection.outlook.com [40.107.20.74]) by mails.dpdk.org (Postfix) with ESMTP id 4BF71427F2 for ; Thu, 21 Apr 2022 14:01:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OwL8UMa1tQkAWZ4ggAlFF2Pzla5paVmeXz6Hlglfk+ULrQY2XIPOnVyMgdDHQBYvqy8A6ztArrpf8SK6/ItNmmywFxNoUneqJTjUvv72mL1VJsB5r85IyDflltWYdn5ztcqbhq8YOY2syxJTVNBMyaTdsAMlPXHAqu7XjttGehuK48lpI9+uIO0rK4N2Zwt7dltqXJV11LQYotFMtfgm7qDOTXE1OO0JUw4cAXZR+5Egoi2Q7rMeSP77dEFyYnGB9XblOs7AN7msxtBHhkbffqymKczP5F+RETGq/VQpkBLZ/xSk6XKZnrAtYDusv//AjBhGsD9ulfAy9v0DpzM89w== 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=uF8A9ZLhEY1EhhItm+zF5PWziN113iqtqOnFg7lgMV8=; b=Uhj88sqqXjZzeVP5iyT6pAnLr2jshfGdSHbI1DzkxnINSwmxipGO6B6/qPDC/1UGXB4zwMyizqhfaymhbefgYmFX321MXMR33PFnSUXp1+8lCHAqDb14t5QXwZVvLC2aXNHRW6kPWs1K3Aq/59NdpK98D/kj7Rf+5+AC1+g1gC2WnrR03x2DrLPLYC9GvIMJCSiyRFuwtEV3+Lwaoc//hmOtuJ0RnnnbDt5bB4VNeXRViiqChl6vINrTKoYbSB9upZqDly3Ic8gww/NeT3sA6H58tGWepFuAUWAR+UPmgP7OVG034xjLhCwN+7p2FdQcvQDO7X9SYDZMSSyvGZjqlg== 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=uF8A9ZLhEY1EhhItm+zF5PWziN113iqtqOnFg7lgMV8=; b=KwCgt3YyXadn3tDoMutd6we75aly+pdMVFy5t24CVqcS/mFxFw2Z94fy8Rfb6eCb5WwQyY1cnsXz9oYaD0IYnffdm2q9fFbk+LoZWbC7NhffJm4vD1+DmpVmoFxMpNewFfpHPnU0e1NQSzV9r5pyCrN2uannMgbh8nmajXQ1pHc= 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 AS8PR04MB7816.eurprd04.prod.outlook.com (2603:10a6:20b:2a3::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Thu, 21 Apr 2022 12:01:23 +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.014; Thu, 21 Apr 2022 12:01:23 +0000 From: Gagandeep Singh To: dpdk-up@NXP1.onmicrosoft.com Cc: Gagandeep Singh , stable@dpdk.org Subject: [PATCH 15/15] common/dpaax: fix short MAC-I IV calculation for zuc Date: Thu, 21 Apr 2022 17:30:43 +0530 Message-Id: <20220421120043.2565227-15-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220421120043.2565227-1-g.singh@nxp.com> References: <20220421120043.2565227-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0167.apcprd04.prod.outlook.com (2603:1096:4::29) 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: a9655617-41b9-4257-751a-08da238ea78d X-MS-TrafficTypeDiagnostic: AS8PR04MB7816: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: lWh8H9bOA8nBhfXtxGpAW2XrOn13L5W1twkH/9aBHaaKdt1Ysqq1kGgvIlolElG59AiM6kS/Whw2/nuV5S6O53oiZ474Abtoboon5qB+7pngiKawThsBQK8eiWNObdyRwQWuSgvC1wtemrB1IyriSCRENwVZ/gHGFWLYd+xHvpN0DdCL7322BfKRT+bRo/lm6h7LMqxDh9bGeyGVo/dHKdJw3Mxl2Pp8R3q1ZArDv1PjPCspdEfpmdV1Ktpr9oDJnnywVdjtRdtrXtq2PtGlhv8Wi+DFVg6Bjc+wjrNWG0mNSaD3UW7HQRkPb/+99uB8765FpcsBnfylAcI5VoS69lkYOPRgZMUnoRjrvVf3zSU0TnjrenvAySN7Xy54WHHkJasOti83i+WLr6YULTZRuWr079bkvWSR+NjyH1FHgxboo3xuxXcpcPUTLQGgJXFAwE8LN+g+5PXqkVupsFUKNo1o9J6bMv1ZO42v8HA3hBWWvGqJedNdyGGBInZaisBhuO6eEkjc2NSTy8dhDpDhdN4muJgoNKw/ha3q15FpBS/s8ddlRmAi9wzZrPKocKMkW3Igyj5lpt2f0BysWbu/JhdfJ1+LxuPeWuoTMy5BylGxNgw7Mpv0zw4DV7GyQ5TC0y9Yy/Wctl/ZhcbNy7GUBJMARoS2pKCT17973sETZUIjLmURseKaz2uPqW+6bMt4DL7/lSfsIOq6ypy2foZU+g== 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)(26005)(2616005)(2906002)(186003)(1076003)(66556008)(66476007)(4744005)(38100700002)(6486002)(86362001)(34206002)(83380400001)(66946007)(4326008)(38350700002)(52116002)(8936002)(316002)(36756003)(6666004)(5660300002)(6512007)(8676002)(55236004)(6506007)(508600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?sS86J8gbMEj6b0WsEk/1UBo8nZ2HcUwsUL4FWnV1vdv7/0eVlKGS2q4P18O1?= =?us-ascii?Q?vnvElGqGh3meqIQRwqGp0ZkYZja87OtIQa5Yl8Xkgzt/1et0mU6bGq8tWOE1?= =?us-ascii?Q?3SgWpy/8u3/5as1yxBnJ+WwoT/jnvXvGWQCtJLPFJjj9vuKSsUgECYSZPg1w?= =?us-ascii?Q?BQR0O2wBrrUL+Bh4nZNkwATkO/yG1e16mZ/ocTtb+U7b/bg5D/pthZ0Ik2Pp?= =?us-ascii?Q?UPE7ruP0LS5dsioXPEQmcGq6WvUl9s5gDBwUfQunRW9J/2mSpcdRh4U1kr0L?= =?us-ascii?Q?qZIwmDufYO9sECLYHHqVoHKkc1/j54KQOBQAuXABVLPJAlaxZFX3u6Ve+j6+?= =?us-ascii?Q?e2l+UHHp/wK3IeR0t3OcU7eTgXUCwj5aHdGRw0szRRcq8K4vK5eMbQ8QYsdq?= =?us-ascii?Q?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= =?us-ascii?Q?Kxa3ZH20F/qv42fyfduKwGhQ0unJnRDUP+utAqDLWC2EU0gsJlfb/VvaG/1+?= =?us-ascii?Q?pNieNmTzd97MBBfORt+xIWz+NbAs4fYEWAQYuolV1thHwBC9QTdCkYPg5qul?= =?us-ascii?Q?gmNWe0iRM5FG+yXNQ4ZGsjKcRAsNXR8WgG32DAHDphxPoY27pQCuonSoQyF8?= =?us-ascii?Q?kzfb/syD2pw+Md472GBDC3UtgPzKCBuca5ZZOpqd6tyDCyD1T+ozuL/DsSd5?= =?us-ascii?Q?HJaUiGIw9ZCzHDFmPnXDG02VJs/iXJzm3oApW5/x7Vy8IxyWuZ8QNVK7LWDW?= =?us-ascii?Q?y56PPjU0YHjHGGuKyvNRceUirlJ3HLIg9lZIzipPwstjghtOhzXSDRBPhhir?= =?us-ascii?Q?9UMJGNbrf6VhZiIt+O1nYux6oKCZ8o6IPlAa3VOgpoV+EGe7Zk8eOzOslo7V?= =?us-ascii?Q?QLinQz8Tdw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9655617-41b9-4257-751a-08da238ea78d X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2022 12:01:23.4270 (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: sjMQY4cYjhGXCVyIWnXNCDYmFS9f+IjYoLLIJg2y25eHAJ9X7YYGaIgJKydtZwE9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7816 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Fixing the IV caluclation for zuc based short MAC-I as per the HW security engine guidelines. Fixes: 73a24060cd70 ("crypto/dpaa2_sec: add sample PDCP descriptor APIs") Cc: stable@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/common/dpaax/caamflib/desc/pdcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/dpaax/caamflib/desc/pdcp.h b/drivers/common/dpaax/caamflib/desc/pdcp.h index 46153b9c29..289ee2a7d5 100644 --- a/drivers/common/dpaax/caamflib/desc/pdcp.h +++ b/drivers/common/dpaax/caamflib/desc/pdcp.h @@ -3066,7 +3066,7 @@ cnstr_shdsc_pdcp_short_mac(uint32_t *descbuf, case PDCP_AUTH_TYPE_ZUC: iv[0] = 0xFFFFFFFF; - iv[1] = swap ? swab32(0xFC000000) : 0xFC000000; + iv[1] = swab32(0xFC000000); iv[2] = 0x00000000; /* unused */ KEY(p, KEY2, authdata->key_enc_flags, authdata->key, -- 2.25.1