From patchwork Tue Dec 23 11:32:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruchika Gupta X-Patchwork-Id: 423668 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1B114140082 for ; Tue, 23 Dec 2014 22:50:26 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 84DC14B699; Tue, 23 Dec 2014 12:50:23 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9g07MVCJQAEC; Tue, 23 Dec 2014 12:50:23 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C59F64B686; Tue, 23 Dec 2014 12:50:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B17AC4B686 for ; Tue, 23 Dec 2014 12:50:17 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9stlIvD1Eq6W for ; Tue, 23 Dec 2014 12:50:17 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0128.outbound.protection.outlook.com [207.46.100.128]) by theia.denx.de (Postfix) with ESMTPS id 096C64B67D for ; Tue, 23 Dec 2014 12:50:13 +0100 (CET) Received: from CO2PR03CA0044.namprd03.prod.outlook.com (10.141.194.171) by CY1PR0301MB1289.namprd03.prod.outlook.com (25.161.213.151) with Microsoft SMTP Server (TLS) id 15.1.49.12; Tue, 23 Dec 2014 11:34:36 +0000 Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::185) by CO2PR03CA0044.outlook.office365.com (2a01:111:e400:1414::43) with Microsoft SMTP Server (TLS) id 15.1.49.12 via Frontend Transport; Tue, 23 Dec 2014 11:34:35 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) with Microsoft SMTP Server (TLS) id 15.1.49.13 via Frontend Transport; Tue, 23 Dec 2014 11:34:35 +0000 Received: from perf-idc04.ap.freescale.net (perf-idc04.ap.freescale.net [10.232.14.49]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id sBNBYADN020003; Tue, 23 Dec 2014 04:34:33 -0700 From: Ruchika Gupta To: , Date: Tue, 23 Dec 2014 17:02:57 +0530 Message-ID: <1419334379-32294-8-git-send-email-ruchika.gupta@freescale.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1419334379-32294-1-git-send-email-ruchika.gupta@freescale.com> References: <1419334379-32294-1-git-send-email-ruchika.gupta@freescale.com> X-EOPAttributedMessage: 0 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=ruchika.gupta@freescale.com; X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(189002)(199003)(21056001)(120916001)(105606002)(85426001)(2950100001)(87936001)(36756003)(99396003)(89996001)(31966008)(46102003)(4396001)(104016003)(106466001)(81156004)(229853001)(84676001)(48376002)(50466002)(6806004)(19580395003)(19580405001)(69596002)(33646002)(50986999)(77156002)(68736005)(76176999)(97736003)(107046002)(77096005)(86362001)(47776003)(20776003)(64706001)(62966003)(92566001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1289; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1289; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004); SRVR:CY1PR0301MB1289; X-Forefront-PRVS: 04347F8039 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1289; X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2014 11:34:35.3301 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1289 Cc: Ruchika Gupta Subject: [U-Boot] [PATCH 7/9] [v3] lib/rsa: Add Kconfig option for HW accelerated RSA X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Kconfig option added for devices which support RSA Verification (Modular Exponentiation) operation in hardware Signed-off-by: Ruchika Gupta CC: Simon Glass --- Changes in v3: New patch lib/rsa/Kconfig | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig index 8f9aa44..fc8a1e7 100644 --- a/lib/rsa/Kconfig +++ b/lib/rsa/Kconfig @@ -11,7 +11,7 @@ if RSA && DM_RSA config RSA_SW bool "User driver Model for RSA Modular Exponentiation in software" - depends on DM && DM_RSA && RSA + depends on DM && DM_RSA && RSA && !RSA_HW select RSA_MOD_EXP_SW default y help @@ -20,6 +20,27 @@ config RSA_SW input. See doc/uImage.FIT/signature.txt for more details. +menuconfig RSA_HW + bool "Use crypto devices to implement RSA Modular Exponentiation" + default y + help + Say Y here to get to see options for hardware crypto devices and + processors. This option alone does not enable the crypto device. + + If you say N,all options in this submenu will be skipped and disabled. + +if RSA_HW + +config FSL_RSA + bool "Implement RSA Modular Exponentiation with FSL crypto accelerator" + depends on DM && DM_RSA && RSA && FSL_CAAM + default y + help + Enables driver for RSA modular exponentiation using Freescale's + cryptographic accelerator - CAAM. + +endif + endif config RSA_MOD_EXP_SW