From patchwork Wed Apr 6 13:37:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 8762361 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: 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 429E99F39A for ; Wed, 6 Apr 2016 13:37:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D46E20142 for ; Wed, 6 Apr 2016 13:37:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 86974200E8 for ; Wed, 6 Apr 2016 13:37:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751544AbcDFNhz (ORCPT ); Wed, 6 Apr 2016 09:37:55 -0400 Received: from mail-by2on0098.outbound.protection.outlook.com ([207.46.100.98]:10912 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751230AbcDFNhy (ORCPT ); Wed, 6 Apr 2016 09:37:54 -0400 Received: from BN3PR0301CA0019.namprd03.prod.outlook.com (10.160.180.157) by BN3PR0301MB1220.namprd03.prod.outlook.com (10.161.207.20) with Microsoft SMTP Server (TLS) id 15.1.447.15; Wed, 6 Apr 2016 13:37:19 +0000 Received: from BL2FFO11FD049.protection.gbl (2a01:111:f400:7c09::179) by BN3PR0301CA0019.outlook.office365.com (2a01:111:e400:4000::29) with Microsoft SMTP Server (TLS) id 15.1.447.15 via Frontend Transport; Wed, 6 Apr 2016 13:37:19 +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 BL2FFO11FD049.mail.protection.outlook.com (10.173.161.211) with Microsoft SMTP Server (TLS) id 15.1.453.6 via Frontend Transport; Wed, 6 Apr 2016 13:37:18 +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 u36Db9Rb016261; Wed, 6 Apr 2016 06:37:16 -0700 From: Tudor Ambarus To: CC: , , , , , Tudor Ambarus Subject: [PATCH v3 3/3] crypto: rsa_helper - export symbols for asn1 structures Date: Wed, 6 Apr 2016 16:37:06 +0300 Message-ID: <1459949826-11840-4-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1459949826-11840-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1459949826-11840-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131044234390091274; (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)(1110001)(1109001)(339900001)(199003)(189002)(19580395003)(1096002)(4326007)(189998001)(2906002)(86362001)(575784001)(110136002)(106466001)(85426001)(19580405001)(1220700001)(87936001)(586003)(229853001)(50226001)(105606002)(2351001)(50986999)(5008740100001)(81166005)(36756003)(50466002)(5003940100001)(77096005)(76176999)(104016004)(2950100001)(48376002)(6806005)(33646002)(47776003)(11100500001)(92566002)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0301MB1220; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD049; 1:PQqSyZSDD4Av12GoVLGwpLcljG5+V6hC8DQ7B9hPeWY7QYTPDLnOI9BGiBcWbtOvmxpCVtkBN2MeX3k5Yyi313kTWOSbPqvG5jH6Og8vEZDZNeu16zONY/vBgcL8hOHk+Kx/hjJsvifpPUwatbi2capwKLW0Gm6TtQTaK+1pqfqKkZcYD968WLhD36b99HpuQ2LRH/ApYaMqNiGxM2vIqZCcnCVhBCzvu2dNA+4Y6d05PAAlNiv9Mvvc0y22FqD/7lii6WvohWDL0E3eEMpYNLz8Hdw4mWGKGJICWSgXMLtNc2TiOT2Zaj1vETqnlqBy+AZRowMY1AcAYNOhoJqprZjilDm8/biqeFZttZ6M83O8TSJHGyVp0A/KwT4LvWMcrFuwga+4TNZousGn1f3jZqhj8MLRNhahdXGho18ZS+s5GbJU9S/Ni03/gywrAOkZTtk5U7wZgeZSgDS8HjAxkvkrQUp6D928CGbd1LT2oby3GXaVabsbmh5w+x7GzZ2Reg0RaDAUKQBfejiub8G+pDkz2qsMfHOIrDUhI5u/sOzxVXEPwWiJqqOfKCptQW7UnA/saDPlr64sn6eoTsJoi2g2cq1zhpln0PkFh7eWjob1WNhxDNtwj3gPQtopr+Aa81iTIlsRi7aK+hWYfZM6dvTMfUK7Vnv/7pKsdY/N+FzjJRC3K8EtY2gfYPjqkIzHz7OQNuoNiERp6UCFCCkapATrC89RG9fHhg2uKsuY0q8= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 1158eeae-20cc-4667-685e-08d35e20930e X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1220; 2:0Cnis5YMz7QYjx9Qq8gNoUlktZANRZhJDGBehxrtszLmaDXqqWkAMDHc8DT1DGCWTfoISFGNyv5RGMxLlHuQFdKYqJIHhOhFTCuM10bJkRqy77HRqxyiFJvn3mzAWjBE6rJUqQo7fDj0KYFJtHJa+KL6lsKIhTGyNMFHt53oUJ/q1kxZoCMgUVx2sKg9gf8i; 3:24hZ5qc6JZPibPFsuJoa1DEG8W8biCvoMqRJWJJLFVzYekHJfNmKgvNHPL44/UNDYZLapcG8cyVv/+qbBRihDVohvQnjh7L3qoEIKgsh3lV4HGA3qIL3ls1VIKXOVredx4+kYYd/CMMzQ/ZdonpiImDX+XE+XI5k5XrjIEdhrYXz7WROpA3l5dKc6EnKKUgNPQSwtNuKOstCGIN9gvw1c3DoCoCR8AVok0h3WFGfPWg=; 25:EXogG1KapjpX+q5/1zd+xLzWWODzt9AKhXniYurpZAKSsuLI8GIwrERhPAmvA7RSwrgyWu66riOHAfNRkjipXI43Rq++BlnWhyapYb1Pd473PYLLXdZ+7F5y4iQrlYhivW80kUUwBgy8GsGoAQFXvOAr0mMapN/saFCIE+LRONtJAm/DQqhrv2tOYvsgKt0jPqwDJpchTGu4jfP5wn+KaPWHFKT/zl+AvOTQZYT5YyWftvosSkaEjJKYUOay+eDO6zacIxl7fjpQ2YwhiTwFn1xdYGH+ULD61iHhC4jvC6XEuYj7f1g0abqkz4cDhJm7hzPBsMG+Cx4WoySFieWuAA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1220; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13023025)(5005006)(13017025)(13015025)(13024025)(13018025)(3002001)(10201501046)(6055026); SRVR:BN3PR0301MB1220; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR0301MB1220; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1220; 4:TRm3dQtvxXHsu2lLIsWtjjeJ2XT+Qvs8XeqHH2zsA+JF1lgs4hcqOXekOfOXC+7bvT0iIFUJUuWnfwq4sftEAyR6/eMHMqeYtz53RRLOxyvAXjV9tCrtPYxA+Dzb2Y8vP/I3YgeD3T+NR58XMk5fo+MSBVEit6Z9nhHgVY0mj+0OitOB18bgLUWredzWBf5M5aMqmpIPYCLUKdLM/yOsK9LDbSsKvtJf/U1QeFX09uhtVQ1Ly97ELhxG2Iv0SY5x+++0rX7AfHWFGeUlxwygoSA5gg8fHHmN02NkLf4MXDpyH3L5B06WvHnwVmfNc8bWX0PL7DXwShcIjl+Q6B07/axP37EBybaIzq4hf3lGfsNMRxahS1f2j2OypTc7WedcPJFnhlr5o2f3oe1n7Tf/s4+N5ae8WRpkio6A4/YwEGiGafXnHSU+wsJ6txGAMzwIxUhDrYMz1K/YUHu93zdAxPbxNdNx5xNJ15cc/9lIPZY= X-Forefront-PRVS: 0904004ECB X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB1220; 23:g5JfFJChtWsVqmPbe67gr+GNEFFrvCqrCo9l+ZV?= =?us-ascii?Q?aKJ02cJqc2B8u3X5x7fPBLT4sZucyzTZDu0y+yMMqtMQpLgKYklLALRX9oOE?= =?us-ascii?Q?KC1CDatGjdRzxxkY9OmJVtAZ+SBeDhwG75gFmcNCiFJg9PsKvYDeHx8DdOCp?= =?us-ascii?Q?ABY+osetM/i4VeXO+Fdm5I1u/IBdPQn0GMPeTiCR5h7iPvcZouOehR9Oz6bY?= =?us-ascii?Q?92yUxG6jxEQCATjctIDhwmXUsZjfEw4/hyavQrj8pb0AhihhDtRgs2sm7cyu?= =?us-ascii?Q?5znOuMJziweaeQa2TzermTEjV+f2XX15XURHLi1C5TRb7tKPt461vAYDSy1Y?= =?us-ascii?Q?HH9aV39/lS8eZ69xtFjOGLKhLSm1YCrjEcZkbTjOV8G69kEjqyi2Urn70deN?= =?us-ascii?Q?avsGb+wndsR/vTrGKMYhsoFAnuv8SVC++7y13OyNW3kKP/VpXU+KwkkbJHTa?= =?us-ascii?Q?dYAnvF22voTGLEzIs5BCoY7FWj8gIf2lV9Axn59zA//yf3Z+SrbglcRC5SQ3?= =?us-ascii?Q?fdsv4KkBMIA7gclQrw88zULEpPlnHkodfBglzki1T5zAeQhqF30YRGVzG1S3?= =?us-ascii?Q?BweEWjR6FBMAH/Y1pZFNv5Ei7tMmS3WHGShowmDvdIpu6MqHZh0j/73yDMEy?= =?us-ascii?Q?Mn4yrClJArXOSvobIvPYc9UQN8/x4yxrIf8zEx/qHIC0FG660TjXnFDMjj9w?= =?us-ascii?Q?aY090G0KQraEMYv3jqjQQP9sQfO9ro4NTAqaqp6B3bhtjwngHXk6anj/1PdQ?= =?us-ascii?Q?du1K8vm/WmzkHrfEnWqkDY/ayODipx+ZixbeCXAM1nXhrQDqwBs0nFVsv9es?= =?us-ascii?Q?dRxezYEn4LRLFEQ1Zv/HOgGF6jKY4Cmbmk3FjREIgIm5R2bcBbMvZAH1riRp?= =?us-ascii?Q?f6EPRM/iGZjVDtQwLvTwO7P3Jxix4dv0I971K02d7JCc5znbnNTRYFzZrig+?= =?us-ascii?Q?hbtrqaqwKTbesBDphWH15o35+qtHiYjXJ2+0JK1rVKGv3hVwpB0x0UBDVqFq?= =?us-ascii?Q?SxCml5Mq+4WOLirEniBa9x+NRV0jkE5yfp17KawbxfiGTFhaWruHkPgHm60k?= =?us-ascii?Q?UscytURCmxv1cCuhK1P01oojP9bAqbFrs61xHTlwKxEn4uf9THJL/ufYrTjf?= =?us-ascii?Q?n/LkBzJ8CIjc=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1220; 5:6fApTR0pJMOsljZ7Lbx+4ApIDNJXoY2V5FR6kVb9HlPBJnlqWbJ+CZg9K07OsR8fOLSADcgLDU39+qQ/b2N2hUBewy2g9SgkeE3ivHKpa1W9Vd3cIP4ErARtEIuUMR5Re18w6qEUUNOaJ8uknczAO99xcxKlB97Vjdl+OiwcP1A=; 24:kbpkJThdv2KZptVheY8XbE2FXIdXRo8yXsgsLH25tYFnUgMl9IRNmtED5I/bUCVz5o7F7a5eLBWy+/4J4Fe4Hp8BVN8KlrNY0UKMvIQDc68= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2016 13:37:18.6503 (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: BN3PR0301MB1220 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-7.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 Export rsapubkey_decoder and rsaprivkey_decoder structures, since they can (will) be used by caam and qat drivers. Signed-off-by: Tudor Ambarus --- crypto/rsa_helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/rsa_helper.c b/crypto/rsa_helper.c index df1f480..d81a0ec 100644 --- a/crypto/rsa_helper.c +++ b/crypto/rsa_helper.c @@ -21,6 +21,9 @@ #include "rsapubkey-asn1.h" #include "rsaprivkey-asn1.h" +EXPORT_SYMBOL_GPL(rsapubkey_decoder); +EXPORT_SYMBOL_GPL(rsaprivkey_decoder); + int rsa_get_n(void *context, size_t hdrlen, unsigned char tag, const void *value, size_t vlen) {