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 07E9FA034C for ; Thu, 28 Apr 2022 13:48:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F98642879; Thu, 28 Apr 2022 13:48:29 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60087.outbound.protection.outlook.com [40.107.6.87]) by mails.dpdk.org (Postfix) with ESMTP id 179A742874; Thu, 28 Apr 2022 13:48:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L0oLyCOWrnyWz5yzlXeCiGVGq/z8DQ/YdhccQlMx8HlG2xYGkalpEigP5Z/JIl2or8rnQJzqH9Gk0r4CEXs8YT5hN1ZFM4MfouUxsf32OBjWRIzVLPsBaXz5WCp05si94rpj/pzk/6xxZeNutXgJH1BUP6/6rRmWIupTfhyzxauZ2XipSqVi8k1bh9DId14M5uSlYrP1a/X5WICTh/O3eSd4TdmlUpm3VKZwCfx86bBAkjIQGRwapNeTwMGc3TuCTOsktRh32qwn3sG9NmX0OcI6MWvKas8Iypf58mJ5K+KQ0TJp30Zmo/o7Tqag+22kkLZGynznlFtsY3jcXLmFqw== 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=RDmkJw5gX41/hF9jnW8bz5egQcrhXqAl0GdUHSpgGAZ5oTSvd6JgFD2wwtj+leFUPFb+PiDzpoVhdijtTrr9ViHrmi85k7bofKuoJl9TvYSFm0VCRJXAExXJN9TWjCHmEXPamPmoitNhpXCXO+QDfA7RGUNCM5+bbN0Ux1AztSmqtmW2TvNOcW3yNxzqtOLg41PSVwfnh9KwzxYRmu6K7kZnuLaIeZQkTFfMMXsdtCfhuBS5usY3JOWs9+G1kdoDNxcQaVwnfkmGjRPVioZMkY9Gz13ZHkEtT+4HhYyHQBaaH2XTy5Zr9f0zhWU6cv9hpYYySPGzQNsxSS20BkfMPQ== 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=Kjcwk7SRMdJlktCMzG6tGbFyO9gs1LVRT39MG9mkPlmx58P+xs28zoATWVhJxMBhrKe9Ty2cymqX7txVfpnEBC1SlpM3C2MSTSuPMHzc00tI5tr+G53Buyk/QAyGEJmDCHOqr0+KWqGAcpB4WqortProkjeBuM3t00rT2/isiGI= 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 AM9PR04MB8162.eurprd04.prod.outlook.com (2603:10a6:20b:3e3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Thu, 28 Apr 2022 11:48:26 +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.5206.014; Thu, 28 Apr 2022 11:48:26 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh , stable@dpdk.org Subject: [PATCH v2 14/14] common/dpaax: fix short MAC-I IV calculation for zuc Date: Thu, 28 Apr 2022 17:17:33 +0530 Message-Id: <20220428114733.1419957-15-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220428114733.1419957-1-g.singh@nxp.com> References: <20220422035100.3180870-1-g.singh@nxp.com> <20220428114733.1419957-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0002.apcprd02.prod.outlook.com (2603:1096:4:194::22) 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: 6c5febd8-df4f-47be-9a18-08da290d0136 X-MS-TrafficTypeDiagnostic: AM9PR04MB8162: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: Tj/HkZ93dtIun6mRC7W6Gf9pOlFTEDLNmyKleQejHbFZvEi+OZWnppz2hLb+puUS4+Zja4uyycfXzZ58po0JGtVHUCEorVs4oQjN1kXq2E7eOu91Q6OKx34jyhOfM1+m63ga55EMKe26yehjJqoziVW4VpU+5p8FucmLTjqxinlx/iSqGtajnkyUFUUvI2E9AZmUD0IlvDusMf1LbqqOeQw7Pjt/6Lwjvp3hZ28Tn+4TlBTgbYAHl7/f2rogpDJWUu/yeYINMXKB1ikbP4JA6MCQEeZWie2AKbIoYCywpdW1oIH2leeElAprHFF7vIe2AHD76iM7OuZC82XVWWvQhwJprhALO0J5VhbBTNU0nROsmjBalSKMnQ77FTfR/bu4J3OZtCC8RH3FYKn8OcPpblQ+dcpcqkt72q8ZlTvhjjM3W5JI2THuso9EzECUhHV3vKkvfFuPrBQKpY74ILSPI8GOzHdvQlHZYXc82EeuwZuplCexNnkPO1C9Qh6bcBnvhXLY7NhmJ6mYdz0iiEBTtzJxFFriu7tP2FHwEphgBCQF7Tv0h7BgR/ydCFTZqmtLuV3y96HOJ/Jj+komYg2E3C1S9Qaxo65zVa7r6iHhfpEkcYjWsuUWl9Y1BLAh9TLEv5Y6Cs8SVJLJshereowKnTD/dfc8oyr2sCwCMqkV/hDXcMCqWTQgoVvJZJqIWTSDxwXnl2MdqvLZ/47a10GxqO6EE3hXVbBN3rteiGGjg4H+xUguCEAnpMPMvhWhwbNi 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)(6486002)(508600001)(8676002)(4326008)(66476007)(66556008)(86362001)(66946007)(316002)(55236004)(2906002)(38100700002)(6512007)(4744005)(38350700002)(26005)(6666004)(6506007)(52116002)(5660300002)(2616005)(1076003)(186003)(83380400001)(8936002)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?C2R4nCnZyxF7Wy5nRpgzfCNFJx+1qH6ewLqKL+3MvzMVvnfK8xejE4/urcrR?= =?us-ascii?Q?JKo91WbRXK4R0DdNPDJamd6Q7yX7sMFR7dyNujM9MUUvi81zx1K0RLv5iR96?= =?us-ascii?Q?d8fJJutXFTA7Cy5sCFTKpISRVZJmKbojYPELqtgDK2ejXDBgFl0QP4QWyJwv?= =?us-ascii?Q?TDbezG3GPx2tjRnZcZ44u+IBYBh0eNSG2IaAJuHkPu0TwlKfVRKpGLrXaIkn?= =?us-ascii?Q?3oQFWHoWjEuszwOzXaHSfK79VQBlcsBHL7xsx4x00wnrKC2dvbTvOE+gEdmY?= =?us-ascii?Q?9slPSBGP72qbxNMeP/jMWtfE3ULLC1fUZcQAyc8oZ5CaqyK+tugxacaQXHgv?= =?us-ascii?Q?OwwqaTklCBJL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NQkub9?= =?us-ascii?Q?2zu6pWlNMQQ/l+k92kkWlldnSkvUD/sLKWtTEEfPMZPBxwEjM3G7xNSf+xC5?= =?us-ascii?Q?4yp/b5b4+moVT5GlIDaKNAYFY72lT8FoqemxgPBrvVCv0MKqgkLh4HQ0yguw?= =?us-ascii?Q?6hd2yY9V+i0y7Uf2MfoUiKbPvPRV7oS16XF7gv8WCbU6tpVGm8BH5c8KnMaa?= =?us-ascii?Q?OIp/+rL4UVbu+d3zDD4XNcOPxmBXskegmtNhsbL+mYGPrtF0pyXk4uwIcRnP?= =?us-ascii?Q?WXwbiu8ReZdI908NwdDVtrcbVTiXaAtG4By3b6QsRQ7UaIOXvwmINm/V815M?= =?us-ascii?Q?AzVzGC+hakxbgrVCcj3JGIAXpPw45nhUD2BvEAss39I0rIws2vbuQ4m6+LK2?= =?us-ascii?Q?IlWF+OLgdxEXd6vjAa6nPcvdPbHCBZMIkdTOTHIZ7OaU5FCV66zzeCMlnX+s?= =?us-ascii?Q?vj3Bsj9ZgUSFPy11Pas3BrtVcjjEtda38QfH2W84oroj0/tLaeBD5/E9HBk2?= =?us-ascii?Q?QjzuM61nXQ=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c5febd8-df4f-47be-9a18-08da290d0136 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2022 11:48:26.2249 (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: gjIf86ZxcEdi8sJfl5LHxrC5rV7BzYdLF1XIz7ApKmDdKyjoVBbjvOD1NunZrlO4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8162 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