Message ID | 1458325927-14737-3-git-send-email-tudor-dan.ambarus@nxp.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Herbert Xu |
Headers | show
Return-Path: <linux-crypto-owner@kernel.org> X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0A8AE9F44D for <patchwork-linux-crypto@patchwork.kernel.org>; Fri, 18 Mar 2016 18:48:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2AE8A20306 for <patchwork-linux-crypto@patchwork.kernel.org>; Fri, 18 Mar 2016 18:48:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3D4A32022A for <patchwork-linux-crypto@patchwork.kernel.org>; Fri, 18 Mar 2016 18:48:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756398AbcCRSsF (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Fri, 18 Mar 2016 14:48:05 -0400 Received: from mail-bn1bon0075.outbound.protection.outlook.com ([157.56.111.75]:23866 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750994AbcCRSsE (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Fri, 18 Mar 2016 14:48:04 -0400 Received: from BLUPR03CA003.namprd03.prod.outlook.com (10.255.124.20) by BLUPR0301MB1588.namprd03.prod.outlook.com (10.162.214.22) with Microsoft SMTP Server (TLS) id 15.1.447.10; Fri, 18 Mar 2016 18:32:20 +0000 Received: from BY2FFO11OLC013.protection.gbl (10.255.124.4) by BLUPR03CA003.outlook.office365.com (10.255.124.20) with Microsoft SMTP Server (TLS) id 15.1.427.16 via Frontend Transport; Fri, 18 Mar 2016 18:32:20 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.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; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) with Microsoft SMTP Server (TLS) id 15.1.443.6 via Frontend Transport; Fri, 18 Mar 2016 18:32:17 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u2IIWAmM015418; Fri, 18 Mar 2016 11:32:15 -0700 From: Tudor Ambarus <tudor-dan.ambarus@nxp.com> To: <herbert@gondor.apana.org.au>, <tadeusz.struk@intel.com> CC: <linux-crypto@vger.kernel.org>, <smueller@chronox.de>, <horia.geanta@nxp.com>, Tudor Ambarus <tudor-dan.ambarus@nxp.com> Subject: [PATCH 03/10] crypto: add CONFIG_ symbol for rsa helper Date: Fri, 18 Mar 2016 20:32:00 +0200 Message-ID: <1458325927-14737-3-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1458325927-14737-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1458325927-14737-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131027995398414582; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(19580405001)(19580395003)(47776003)(229853001)(586003)(104016004)(48376002)(36756003)(50466002)(92566002)(76176999)(33646002)(5001770100001)(11100500001)(50986999)(106466001)(5008740100001)(87936001)(77096005)(4326007)(85426001)(5003940100001)(105606002)(2906002)(189998001)(50226001)(81166005)(1220700001)(1096002)(2950100001)(6806005)(86362001)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0301MB1588; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC013; 1:YspRE5z2er1WliQQTt+2UWxC0vPlqo0LZySaaO2qIDL6Id/CTXYqm9lPJsktjcewVWE2lKB03ijZHPAUGD/zqAtRMk8/7Bl9Xr92DYj/SZHo0SGaouA+kpkjHEcF8QGxKeub63CpOTMKkOyHSrVIX8fJukiZHNM2shQtMmW7+HyE3JrBktox/ySCpdH2p69oZt9/WwDOJ6qy9AX3Lf7jw01j5yZiu8RtTzwgmHNAGTHTjit+2qulxoCr5dmAazSboCtOrSf6KDxbpNASNoBdX6/DnGbIFlR0jfrXyaVe7y97CGpmgKvlvfzbhFSm0TORvRZN53aXlyTp9d06Cr/uQoPGsUFcLHAbWAip756F4bwwpI1JTsksdZB64zafQjX6TEg19vnYByFrqbVkVkregNClJ97LRJC1f/YP14t569SlykrZwfOvYIvpCMpKrDvJssxdzkIPERCTGmgG+XxFJLhRztBor52puDLkvpiWXDG9zCi6/p80Rs/OoByRoNl+8c+wNGs4PsgwPmeTTR9Oui6qlLWXYXlWQ/00HOy+5yK6ElDbwLQmylQ0z2vzB8svV9fCHdj2LJNjiXz9kdYIOXcM74Gn91J5YEF3ryK8dq1dpYItz5R6SNiS7pAXEky0yGCDcFajMT9ubGtS73F/kMryjSNCf4ODOwiEvlcGn74= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b40edc81-8afd-4afc-3f99-08d34f5ba3cf X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1588; 2:fUtIk76ZyHGe8b6mXwNTlu0pyRkRfgXhX6ceeGr7mSTG/B0n28sqk8yNgI4ni5PIoTh8pi3ccVCPd13wNC2JIGjggEWfgvleJN2zKcTimsMqIvViX2WhZ3Pww39q5PDXycp4DS+bHNOXwoiG+ZcxdixkLe0y1RY2xx99z08XqftuRN2ukAkVvYtSBZCtfhnp; 3:w7Zzdv7sWyY8KYK6p/8+BOI9nAjfh/7PbomAhKmRoRn/qZ3JskWJlSTpQHkZgZHtCERFcTSBYS+2BPGj3RZpWzKGAPxcJ/p9bvV+0aZozd/mbbxF2dc9X/vXCJXUuGVGOeRHJv3DM2OiR0W8rSE9IJ/4zS5US+qDkLv3e+/itMVAAFzj2iW9Bj6vCiusu7sFm8qhTF3jgJuaHyTqLMLPZj4PgLKnSU0QV3R8oK7snNE=; 25:yLlqdnAjSM+NPixJ9Gmhf9w5ygy0XTWwb0UvwH/Einula4VGAy8NwHPUE6BIOQsOtG5wRqUAdUmIPX9e0AQd2X62BdjJtIq3heQbPZUt5gOfdGBj9eSzJLeFGuW/v2XCC5Vidx0To6MtYrC3a31z1mr58LGo0xEDH7SFssUMsIZBHic7pJiyXOfH3m5si7FU4avUvjs4MYRMwjomkWCTIft91tn84pM6wOZqkOlqOBcBsLY9dVwsskM4Sxu72T9eT0bQmmucZBfhNdlG9nYcPIGM7t3B9lLkpzLdlk6evMeoU2VtA+oXUdkj1XIw47yidU90XZXc4D6wdcJKkCAgQTBXY5mOCt9PtpeV595sEgCqoPj22Dr/PYLoB0cocJZ8/J7HRGktB7PRNAf0R3dYKcEgDmjZbQ9krOcLvW9/XUovqcC82clEbIqSoLURi4M9xAv/AC03Ev/pZUgDuHhMgAz9rMfOedoMiGdZREtXcrZQLFWO511nL 1+KNiNXVmlzGLZRxwi/abbnqCnSKLAlZA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0301MB1588; X-Microsoft-Antispam-PRVS: <BLUPR0301MB158836549012624F49A88D8CB88C0@BLUPR0301MB1588.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13018025)(13023025)(13017025)(13015025)(13024025)(8121501046)(3002001)(10201501046); SRVR:BLUPR0301MB1588; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR0301MB1588; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1588; 4:MRq2dfACVs1lRNnnKz+YH4q0j1J28GdXfyRTIg7GAIkxE8wSiKr5x4em3JW9rCA/GZzyuMGFgYQIzmaux1fQzcZ7qU1aebM4WgjZa7hKxx8S9+GL4s7M0GZTQm7KiaFuLT05bjx579rslYhqhMHavdjJAT56zfW73FuJPYPdtNmYogRaVmkFTyqyCE1hpQ7d1Jtj/KqJ39ra/Fp85QsgPTtmpe3wE0M+HyDGXuFnZWl1J4VmWw2Lr+Ha0U8uPZHI6VM0uGQCytXK98paB6WpgjBFB5iOtvRMOSc1xA5nTS6uX/z+EY6fmxseaX+8/g/vkmDjmQ1CTTLrjJIcS6ZQz04OimDQMKVlEinmPOsIFetpuMh966i2KSKSbZOmlMEjqT7rEhRwRwgZTp0jLE5BUwIqfd2EQ/jiaeGhxsQ/xozo+6fyB3DJCN1c6OV/o98xBZCfNsZ87XiPG+AdgMp4Pg== X-Forefront-PRVS: 088552DE73 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB1588; 23:KBJcu+sVSjdAwJ6NBVcm9wYYDv9fTbgw/+rTXIX?= =?us-ascii?Q?2tWKAqtgOkPY8UJsUbWJukaURXWQJ5mVymnWqqGEQYij2lntsycJfWlJApY9?= =?us-ascii?Q?IJDx7GJ2TN1Qyy5EiKf2GAIb3rL4WKrxkf6e8KzljAwOST8JlJaLxJ35ZaBh?= =?us-ascii?Q?HH8pnuMm2KXytCCzflU0wtR5u/2/jYyWeeLbjhs6mCEn1zthVV35zDcmyzrH?= =?us-ascii?Q?AES0lffRJa7bW5yHYJVhY5aAbnjBvxcpcrdBfcYIVowT5IZ11D88RjBUIvl7?= =?us-ascii?Q?p2hks52mdajbQIwyO3E9burwdG3QUGjhE3Sb2fAho9j4fTCwWd2PD8aweE/B?= =?us-ascii?Q?FycSS94zqipBluj2nG7/KMs/lwOAeyXbz0gps7FJe/gruPrhWR1fI8JHolOV?= =?us-ascii?Q?htzYSRkGehSfPAH0SFn07NcRvC/qDU17SaGj5Za7UC/hVmVRBicKcCfS3vNz?= =?us-ascii?Q?mBsUQ2oh4pByYZyJ9/JIz1hY81w8+yhvNfJjCEhC9CFJRoXbUcQ566MyLOev?= =?us-ascii?Q?RMPDRVwYIpNhLAXgLBf9iQ3X0CTOm59/jImG+vOh7HXLEWv3jiGBUEk6ua/W?= =?us-ascii?Q?rbqwdvAiQTC8Hjle/Go2I1e/i054pfmkQOY2WOcCxrObANeSrjpvggmSU0m2?= =?us-ascii?Q?5qYJQ3gTpyv5oFhDNmk67bmbPI+sj7oUecdYbfV6ufr1nrhOUZuCXWt8/aiU?= =?us-ascii?Q?H0YWg9rLEkDaYqVki6Ac3wtNPk/YzKLPo8iwJiJGHZjK2lV+nGm9ckUhgbMd?= =?us-ascii?Q?adnR9NQRkS2bCVIb4uqKssVsDD9pM1Md5Thq+53l7JqKxokG3/RVo+TYgG9g?= =?us-ascii?Q?mDOrD6I5wOObot4N4v3WkHryfcf4idY4CT05cIyse2VsMl0kce0sfMQ8d01x?= =?us-ascii?Q?mdHPlnfJhQsNABPJf2/myJ2YWNt9ytfoAggFIe09psGo/XLAf1hMUiTS1slZ?= =?us-ascii?Q?hMp+RvEk+j1yYum8lcUsSGnTQ8QAfbmSdiTxmasWy/RYAsjrlTcL4NKl7aST?= =?us-ascii?Q?mFQAJRcOOIwCWQAMyX6cvdcotVtUnHaKwNPbQ6d//HPMMvh6JzJbPPSEn/m2?= =?us-ascii?Q?WxQwx9AohKTlyXIbBpwJr5unY4ML4?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1588; 5:s4pT2rCoc01j/9y0/cOjYunRTNvIyokzbANq6hdG7IvjWimQnPqeJj0bNhqlEhKZN2u53jgvDpdjj1amLGu933ihPjy74xk8atWOD91Qf2riKb8gijNp1aD69jJXDwdZXb8Jc4rvPzat/ZRY3lLiUE0QdqdPEbPJvf5+/YPk+1o=; 24:pEEGUuMthR7kyPiurIYOEtAhoLeJB7FZpFKu0lqYMOpLpvwNO0rT43/7tsqR72dltyBnPrTAD9n0y1LEtvAYWCIhZw/o4dUD+omOFq5xsxs= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2016 18:32:17.6263 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB1588 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/crypto/Kconfig b/crypto/Kconfig index f6bfdda..2bdf882 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -93,11 +93,15 @@ config CRYPTO_AKCIPHER select CRYPTO_AKCIPHER2 select CRYPTO_ALGAPI -config CRYPTO_RSA - tristate "RSA algorithm" +config CRYPTO_RSA_HELPER + bool "RSA key extract helper" select CRYPTO_AKCIPHER select MPILIB select ASN1 + +config CRYPTO_RSA + tristate "RSA algorithm" + select CRYPTO_RSA_HELPER help Generic implementation of the RSA public key algorithm. diff --git a/crypto/Makefile b/crypto/Makefile index 4f4ef7e..d336d83 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -36,10 +36,10 @@ $(obj)/rsaprivkey-asn1.o: $(obj)/rsaprivkey-asn1.c $(obj)/rsaprivkey-asn1.h clean-files += rsapubkey-asn1.c rsapubkey-asn1.h clean-files += rsaprivkey-asn1.c rsaprivkey-asn1.h -rsa_generic-y := rsapubkey-asn1.o -rsa_generic-y += rsaprivkey-asn1.o +crypto_rsa_helper-y += rsapubkey-asn1.o rsaprivkey-asn1.o rsa_helper.o +obj-$(CONFIG_CRYPTO_RSA_HELPER) += crypto_rsa_helper.o + rsa_generic-y += rsa.o -rsa_generic-y += rsa_helper.o rsa_generic-y += rsa-pkcs1pad.o obj-$(CONFIG_CRYPTO_RSA) += rsa_generic.o
All RSA implementations can now use the key extract symbols by selecting CRYPTO_RSA_HELPER. Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com> --- crypto/Kconfig | 8 ++++++-- crypto/Makefile | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-)