From patchwork Wed Apr 20 06:38:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meenakshi Aggarwal X-Patchwork-Id: 12819822 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39481C433F5 for ; Wed, 20 Apr 2022 06:38:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239817AbiDTGlJ (ORCPT ); Wed, 20 Apr 2022 02:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348640AbiDTGlI (ORCPT ); Wed, 20 Apr 2022 02:41:08 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60071.outbound.protection.outlook.com [40.107.6.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 377623466B; Tue, 19 Apr 2022 23:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XnDejtpuC8h/MMBLAaTXrw8V0JdQvavC9dk8C5NGLM7as2Hc9S/uLDPeMg6ZKNxw2evZJn9kkpNCCCOoNNwu9DshHL2B6Ne4iwLy3RvDJVHeVKIgycro8GYicNqOEjDQOnTwJwN4JgyhppR5xdWTYRqsvZKFFfy8e40faXxmp6NrikP3UuYwb95xJRQe8VWEF7DdPn1gh44NEkjNPBFXpOm/YGl/3AwR5BG/WkobBOx/clsefz4IfDYlS/p8C9GenDyBWzZpG6w0CvlWTOIzulaFJZIHonrM90SbYX+gxheDNhsFBWdB+3V1IVXIMVK5A5Sv4t1g9t/JisU0l+SC+w== 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=6wJc/iPThTvwvqDm9XpiQwvfPM0pazdsqOmjWXEVeSs=; b=YP7BN1w5HTrwWnqbhQe9z7w3KzGyvnK2Fdi7qJf9m8jMGiqfbLUn1SBhURg/6UkhzPq3sAe6cAmloILsWnTAqJpr2FCq8OFO+uaxJZKhP6wjxQJBJtP+W6XT+aPmg9lHp9n9gkU8FAgd71Q05BBobmi+uEOfwNjnaGEGDmEjDk+OBjtenpx3v2NYu2UjUms+/C0FJWqqGbIXHbBd2sUgFmfZefd2+L0AftpyDu1nhNqBUpB6JkiNKlIcTSgg/YeANFWUtxooopW9Ux1zORl44ke/69mVyWcRUPRww6dHEC2g0auqiO13GjAuQXjiMm43pEdq6g5hUslyNf0rR9aXWA== 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=6wJc/iPThTvwvqDm9XpiQwvfPM0pazdsqOmjWXEVeSs=; b=PhVOZDlIpo38siFYs4JH1G9OR39BT9z/m5EIHnfFoly4NBc+FxAN9TrgIEZUYf9A0ZJlXaxv820vFFBMxCILHt8cDuy0KqFf9KPFamkkQemx7BI+rx3tUdAGgLUfbYiEY7QKiulD0s0dC5jTW/gy0TXgo9AwTfqpSIFyiXyzBXk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from HE1PR04MB2971.eurprd04.prod.outlook.com (2603:10a6:7:24::13) by AS8PR04MB7990.eurprd04.prod.outlook.com (2603:10a6:20b:2a5::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.18; Wed, 20 Apr 2022 06:38:20 +0000 Received: from HE1PR04MB2971.eurprd04.prod.outlook.com ([fe80::5d82:9d6e:68a0:fd8]) by HE1PR04MB2971.eurprd04.prod.outlook.com ([fe80::5d82:9d6e:68a0:fd8%3]) with mapi id 15.20.5164.025; Wed, 20 Apr 2022 06:38:20 +0000 From: meenakshi.aggarwal@nxp.com To: Horia Geanta , Pankaj Gupta , Gaurav Jain , Varun Sethi , Herbert Xu , "David S . Miller" Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, Meenakshi Aggarwal Subject: [PATCH v3 0/1] crypto: caam/rng: Add support for PRNG Date: Wed, 20 Apr 2022 08:38:07 +0200 Message-Id: <20220420063808.1089283-1-meenakshi.aggarwal@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220304114123.3762649-1-meenakshi.aggarwal@nxp.com> References: <20220304114123.3762649-1-meenakshi.aggarwal@nxp.com> X-ClientProxiedBy: AM0PR06CA0097.eurprd06.prod.outlook.com (2603:10a6:208:fa::38) To HE1PR04MB2971.eurprd04.prod.outlook.com (2603:10a6:7:24::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c2a09a88-af57-40b1-0049-08da22985c2e X-MS-TrafficTypeDiagnostic: AS8PR04MB7990: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: szcDyfardu0bU1bl/UJPuTFifYSAXOnOD5z8bCwYwcJDpja8gMQbRvlvYytM9qQzWh/5JngTkH/NERalDb/BHewK1Vu4sjbKkpp5itGnmaQAqHgxGmBmzvYyy3LpKfiM8AExOUh7EAwiIy7bnKw3Y3IepR10vG2gEKb4GEp/XERQ5YPmaRd1VP6dQwhPzlroSel7LPoiaq5ISadnMMcvJoPHvcw7fVDaLabYcXA8dXEwbNPgA7nw0VmfbKsz2xU/CrDgVxjeAQfM0QCozZDIZtfJ4x5s815xNcbEYGJzc6pUcccLeTeIREk/otmECYaCfSErUAjG1BHY6/oKAuIkM3Vx2jLoXsn0sxliPEfDiYHZ5Kbj1/2D/iwoXhLPKhfzI5XQpC1RxpR1cxuVbYFixkt0UTJq4zdkIEINnKJoI+n5xvk/kdb96iimKAiGzTDgHr8WAmdAkOwte7a9uhCp6SN4VjAbX8gBPbfWhYFqGxZ6vtkgO13MsfPNjXGnC5FVd6+L2+HzBuGKDyR9JCF04y1fdRzL99zTbQ5zruptULPDb6IscgIhedkQwE6XLbVnGelBLEK7eK/NKhLaK/XUg3q92ow7Ee+JcLjb/eKSMyxFBFswjTPfBiAwjK5pzMulDGcyHUHfWXdKq1r+mg/odPiBm40d9Hk8CVtr/OhwZxQi6t9GQgusU4CBA3QVRobzNP3IG7aizZ0MHNicIbBzfw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR04MB2971.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(38350700002)(6486002)(6512007)(6666004)(508600001)(8936002)(2616005)(86362001)(8676002)(83380400001)(66476007)(26005)(186003)(1076003)(66556008)(9686003)(66946007)(5660300002)(6506007)(2906002)(52116002)(38100700002)(4744005)(110136005)(36756003)(316002)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yFCQSVqDqsGe2KHzP2rLrPkaTzXH7JFkROLtKRHE5kzRrSQH4xHzrKsd+pmh9Rs6yifRjhO5P9430HfRO9SGGMh5A15oqwpt0IaEeWgDzIGjcGrI5d4Jt2/mE+oGVp2kT5FwOQXVTymuHlqTX/mcCUCZdGbV+ZPNntgUNO8JSgb/nHB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TLR6SVBvAB4XhfpRo/Uc9bmCu8JOm5R3kY7g1HNIo3l5KH1lUKZfloVBel4+2j1O6PIEjO19tGWLALEKmYEruqka+8sKTPiYWXkScQ0Fkz5brBNO3XubAq4l7WIAKjju92wIXHg7d+X+CoW/oa61SUb+VQ9qFeohIdeDmzR4qjkyXJjJYN1q939b7Raec8RWL24bFYJcvuMT/TD8Mr9tisgyUKc1L2CW9erW6/Rm2hZt7ql5F+HvuCWJcRcOo5Zd7VJ4m8lSl+4qkWBmVSu3S3JL3Uohyt49nQr24Ai0wTMfucnws7OoqcWcViiRYsQX5KiTn4m5gWfELWd0X3a/p6GAQtWdqDPMF5kEt+CRIImGqpBnrXiehzY4Wax2Jw9SZa2GoYvfNfBcoW5j6lfssL5ell5lyqbDS6EOsVug3CpnOgQs1JXWPg36OSBpdyXFNckdol8b4Qzr3vsDkVvIGngYtKpeits1H3vyIKpFp7x4u/Jk4lEA+JuCHYZ7Sm9NxyD39kFlV77uBtjndVc19bA= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2a09a88-af57-40b1-0049-08da22985c2e X-MS-Exchange-CrossTenant-AuthSource: HE1PR04MB2971.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2022 06:38:20.6050 (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: t1PkDqYc6L1qKHClY5+qoXlyyZvw9AMDoDLgvtyNUCZIBjXkTI4xHMyqj8nw5EXglhSb6PW98DMaxs4NV0ugjIth+exRlIJkE/wb0cNHT5k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7990 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Meenakshi Aggarwal changes in v3: - rebase to latest master - incorporated review comments Meenakshi Aggarwal (1): crypto: caam/rng: Add support for PRNG drivers/crypto/caam/Kconfig | 9 ++ drivers/crypto/caam/Makefile | 1 + drivers/crypto/caam/caamprng.c | 260 +++++++++++++++++++++++++++++++++ drivers/crypto/caam/desc.h | 1 + drivers/crypto/caam/intern.h | 15 ++ drivers/crypto/caam/jr.c | 3 +- 6 files changed, 288 insertions(+), 1 deletion(-) create mode 100644 drivers/crypto/caam/caamprng.c base-commit: 559089e0a93d44280ec3ab478830af319c56dbe3