From patchwork Fri Mar 18 18:32:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 8623101 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D88EFC0553 for ; Fri, 18 Mar 2016 18:32:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0477D20225 for ; Fri, 18 Mar 2016 18:32:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 15D64201FE for ; Fri, 18 Mar 2016 18:32:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753122AbcCRScY (ORCPT ); Fri, 18 Mar 2016 14:32:24 -0400 Received: from mail-bl2on0071.outbound.protection.outlook.com ([65.55.169.71]:19488 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752183AbcCRScX (ORCPT ); Fri, 18 Mar 2016 14:32:23 -0400 Received: from BN3PR0301CA0038.namprd03.prod.outlook.com (10.160.180.176) by BLUPR03MB376.namprd03.prod.outlook.com (10.141.75.150) with Microsoft SMTP Server (TLS) id 15.1.434.16; Fri, 18 Mar 2016 18:32:21 +0000 Received: from BN1AFFO11FD026.protection.gbl (2a01:111:f400:7c10::142) by BN3PR0301CA0038.outlook.office365.com (2a01:111:e400:4000::48) with Microsoft SMTP Server (TLS) id 15.1.443.12 via Frontend Transport; Fri, 18 Mar 2016 18:32:21 +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 BN1AFFO11FD026.mail.protection.outlook.com (10.58.52.86) with Microsoft SMTP Server (TLS) id 15.1.443.6 via Frontend Transport; Fri, 18 Mar 2016 18:32:20 +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 u2IIWAmN015418; Fri, 18 Mar 2016 11:32:17 -0700 From: Tudor Ambarus To: , CC: , , , Tudor Ambarus Subject: [PATCH 04/10] crypto: rsa_helper - export symbols for asn1 structures Date: Fri, 18 Mar 2016 20:32:01 +0200 Message-ID: <1458325927-14737-4-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: 131027995408501252; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(105606002)(50466002)(19580395003)(19580405001)(50226001)(229853001)(6806005)(4326007)(2906002)(36756003)(5003940100001)(5008740100001)(106466001)(87936001)(104016004)(33646002)(47776003)(11100500001)(5001770100001)(81166005)(86362001)(85426001)(92566002)(77096005)(76176999)(586003)(48376002)(1220700001)(50986999)(189998001)(1096002)(2950100001)(7059030)(4720700001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB376; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD026; 1:ET2w4sI7cy8XRlm7XGkFomdJ4javiDYmvTdtTJ9Ic4edBSHAMXCugsAf9WBf94ubv7oRl2XNmxWfFkm4oTsBS/giYITAup+Bvrn4veNPs3XW486vnGyoEQKToe783LQqoMX0x9N4yIZqonSu5BNhBiQ+NqGkZS4uuq7e1EitvXjC9lE1wOl2i5b5l9sCODbG0F0ovB4x4MqIk9yizcKOhNl8BuXFf5WZ2CCTbi2rP0GEfNUl95svSThxjdJHcP/SXkdcyvXeCDFJG1a9cBJvl8+5k2F3U1O2x13UJcQWNp2AwTe0k/14RWSKkNULYWKv49zy5Jwb1ikzdzAUlditeKXUuvHdsQalTwQ+oO3okJYszo2SPgYXxJWIs1cR25Tj2Q0vHKn7OOrx7XC8c+Zlk4yqMWIQN+lwlWnk9CS+So46NIr94sTkwAWN04Ce0moaAPYkAg2rzX/4BN7JOKNx6avz1vUk4rCDXBL6AiM+cm74208qssegqXFMvgxOOVPBUNtxAw+eHUFF6MaDgi8wDCytXZvy2uj77xm1i9TVM7HtadM5+HBtCUTwv2bY12cBq0lQ3H0qK07fEHda6AqQuWGa6sDTLMDH2b/Jz/KffQPnMs46gMyxjUwIy7pJ/TYPMc/C811/4LiarG9t6KXvl+0tMALoBhh/RJV5p8eOD4w= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: db28a799-e34a-4dbf-c742-08d34f5ba466 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB376; 2:6vArATAumQ3CXgKz0O+AvMDtsU+X0e0c263sCO8kbDdu3z7gb8O2VKU2d0km0wA+/4fwv1hv4ZFOY7ut4X6mJZHRCfGaNgIzlMzKdtPvyAjMwwVYmizPh112soZM2ywjhsAii12TihGB/2jKbhubyDpnzYqGXvpkXpr5zPmER9IfdhZuQ94IZYln0RfUH0Vi; 3:EgiTXLCTmXQiOrz5DjSSmkjzfLsO694gH/lbZDr9VRoLVi7TrWGNB5eWmOArh/Mm26aU8Pm+UtGyDhANzKSBF/zDjwU9akdMRxUPN1UmBGMIGHG3EgGHmlJUfHXoEnHlvnNpf1ENbKRyJJ8D+jgZv1SRlpfzg/xb83U/2j1UJXpRkTteCGFqB6tSATUFfwLLKjCs02YdE7HyEY9taV/yEEFuUgl/LFOWrNHOr0gtXNA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB376; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB376; 25:FOASlmwuz4z8vJ3reZ4UbEncdjXu0e+fdLBk2EYoYKh+cZObABsfKD9CTmBzFMK020gm4gcgnCCDJiVklbjFVA1vUI9V437AmcrZfbOwDJAYN5f2MsnBkeaCo9+/AY9FM/kTFFVN6tJ6kGZ7WHUBXMMGBzWAwiBrLA9lwShwcxL9LeGpbYZcxfn/4RrQ/GnWd3sr3HGRSAm2hWcQ8lqfHocpCjdM5csW9G7gK98ZxKVUZ1XieiSheYQBYt/8g1X0mtIKXvNixCpwdpm/SEh+fhyS8fyi9At6dVl4p25jprfpQ2vmGfHVV6efy5f2gpVPdqIESLmDuLwwej6l9kW+P+nfmS5khd9tWsWedqMsyZrb8k4YbKIFBd0YjoQ6VIkWYHEaH3nU6O8e/EujA9lyuYpEwjQiAKSyuhM7l+IUxo3g0vQ2no2uq+D20CvC9Z2tFa8SsG2T9bPoeUlgiywFyMK1Lq+aPHvgvyNOpWfZa0MuH9oHcKActB7jXTROQfcDuHneCLAxghAixCZRfBYyfm6X449W6whCQXfbS2XudQo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(5005006)(13018025)(13017025)(13023025)(8121501046)(13015025)(3002001)(10201501046); SRVR:BLUPR03MB376; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB376; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB376; 4:39ckbXF0pFy+9Gp3o4jz/cpeg6fnC+K16WcVpfsKKQjVsSCCCRfOleg9GOdDp34PQ1+hlZIPfkz8sACPWY66haIkCYT1sGgg2H7VSad3Iccc4DwXV1UaBk5xWc/dMoyMDjkroOIQD5riY56NDW8Myf5KHXQ0lANXyueAocwPh7QuyCu3s6QtTrvEv3BI7rOJyn6NOBsvpkp5uZaOxFpYNdXj0qQNq1yxB4xNcKrgplPgLytXy+UBksxG3gTIX8F+dzk3GBESB1XFb6QlYc/LjKg7bblMaVpT4KUyvxairET/P8yQ7azmaFGeM8GGGWa5FC+t2ok823NVbmo11zeu2YH5F4fM1pKrG4TwHGeAcclDd7ItvklxxD1nvygXloC5Ur2A4gZQVU6eTiWogX3SMt9lrgrSL/vwmD3cal77MnGXZf3fFba8qgsoPdA7BFgbUIaWY3oycTfVB0Xk9RGoTw== X-Forefront-PRVS: 088552DE73 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB376; 23:OJuk/XutA/47ChbQ6qWJ96BjDs4C+MKh25ALFOVXOZ?= =?us-ascii?Q?KPiMYnpeizQjtfPyWrKupTsUcsv7Q0MnEodSXhIg4TiBrkwljZII5VICKPTQ?= =?us-ascii?Q?NSCKRB/xeCCWXALqf+GD5B8fozsBgXm7fGIO7w9lxd2bRajHCCyXafdtIWTN?= =?us-ascii?Q?I2TD8bfDRBjUhEDzkfKXbiYcNeq3mBzncrVvE7Kc6m5yYXp37c5HcZM4sfcF?= =?us-ascii?Q?iuzRJs354+JarAJJ9NzFT3K5vmQGyO3gkSn90ZceAw7S7OXovJKqYbYGoKD1?= =?us-ascii?Q?FK1n/KBE90+XkHG3ijMaLNGIupJIDuzurKRMDG5wwWNmQTEjxDKNLFVR825F?= =?us-ascii?Q?P29KQeWln6b8/rbLzXrY/mAs3qB0LRl/eQR0NmXhGjnCJAmnJUSg5SLrAd6g?= =?us-ascii?Q?TWW+A5Wj2vq+hdgw2r7uRai3N1tkUxSRHPSm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TZGNyOeRlC9SzWfDUdGppMGQQ8NBGfFASh75i8BSjGdUmf9S/P7wFXEP8ZuiQksMiCbFR19sAhnBkEjg=; 24:IktVbGqvpB6OJbBvZe3ZdboQOQD56V/rmOe0cJ4KX8SwtJPEEHnM+qIflvY7in04fvnov+Zj+tAIDLFjMAoTNycZc0fZr++VprsfuXjvsow= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2016 18:32:20.1169 (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: BLUPR03MB376 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: 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 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 1708db8..14aef69 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) {