From patchwork Wed Mar 23 15:04:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 8650761 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 1EB5F9F44D for ; Wed, 23 Mar 2016 15:04:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B9282025B for ; Wed, 23 Mar 2016 15:04:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 45B4920259 for ; Wed, 23 Mar 2016 15:04:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754652AbcCWPEo (ORCPT ); Wed, 23 Mar 2016 11:04:44 -0400 Received: from mail-bn1on0078.outbound.protection.outlook.com ([157.56.110.78]:55520 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753113AbcCWPEn (ORCPT ); Wed, 23 Mar 2016 11:04:43 -0400 Received: from BY2PR03CA011.namprd03.prod.outlook.com (10.255.93.28) by BLUPR03MB375.namprd03.prod.outlook.com (10.141.75.149) with Microsoft SMTP Server (TLS) id 15.1.434.16; Wed, 23 Mar 2016 15:04:35 +0000 Received: from BN1AFFO11FD008.protection.gbl (10.255.93.4) by BY2PR03CA011.outlook.office365.com (10.255.93.28) with Microsoft SMTP Server (TLS) id 15.1.434.16 via Frontend Transport; Wed, 23 Mar 2016 15:04:34 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD008.mail.protection.outlook.com (10.58.52.68) with Microsoft SMTP Server (TLS) id 15.1.443.6 via Frontend Transport; Wed, 23 Mar 2016 15:04:33 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u2NF4M5t030045; Wed, 23 Mar 2016 08:04:31 -0700 From: Tudor Ambarus To: , CC: , , , Tudor Ambarus Subject: [PATCH v2 4/4] crypto: rsa_helper - export symbols for asn1 structures Date: Wed, 23 Mar 2016 17:04:19 +0200 Message-ID: <1458745459-1096-5-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1458745459-1096-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1458745459-1096-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131032190742016616; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(19580395003)(36756003)(81166005)(2950100001)(92566002)(50226001)(19580405001)(575784001)(48376002)(85426001)(229853001)(76176999)(50986999)(5003940100001)(105606002)(189998001)(1220700001)(586003)(33646002)(87936001)(50466002)(47776003)(1096002)(104016004)(6806005)(2906002)(106466001)(5001770100001)(77096005)(86362001)(4326007)(5008740100001)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB375; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD008; 1:RntJaL+viknBcmcFwRiYYa4kaWqJeVazeOn6QNh7Dns2/Yu847IB+8JfsOYyEfBL//H4SEfX87X6/edHFt1V/mJp4g74Cd+JZz23wchVjIpCnY15uk3iEql5swW94VVz2bNNF2czTifdniuGLN5+kmej0Qgn+9DdHDXYzdK9iT13nwWfW/sXEpz6URfHvEBha2Ef99HHgl8NM46hBAu0pIRZUjNs2sX7rky8UBF3GPEzSwYOf4qSv0X+4pRLBTEXO38frd6TNURUs3MMFjH/uBr8tXD5fbmYjswd5TMVodMrIdui5TI2tdHsiebJ0UFlYQ//l0Il8ldVCSRQe4AgRJYQBQtg3ug1dW5GZJ+/DbGcbC+4+P63FyGWQRKfz1lx8OZAvPKdJD6gyYS3bv9dPX9pC3cYp+8DnO7GGvZx56k7MAG1hHEGt2CchI/fIxm14Ipfx0d09PW97IZunPDMrptB4oAJXh3fR3GNCGpuvqFqxUzwd17xwwKbVE2XtYG9WgAhWyQ8Bt1FFaoTuf7lJQU9hIxyYBVqIlQTpguVhfsyuBm9aU+7HEwLWyXIcYHRBqxGaKTYl6vTEJmJ3xenUavgZOl8zHakEkMN2IoczHHRqYSxeqPj6suneqv6vmg8t5E91nbd6MRo0jhZUtzJjLTmzlKYPB4yfI/97ZSnv7I= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 66b61361-f582-4c14-5109-08d3532c71c6 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB375; 2:px2XWGPwSZOGpQljahBO5iUwSOPCpeDEQukap86QVAWAAeTKCcLpqhRZSF7k87c/ycDFwCHjUaY9ekkiPqhlFy1KSBU0PJNS/qXsNK0hTFtzy/6v6QJZUTpB9EV+uUabqGWaQ9SFqSt5xU+bmGxeL7hzXBkMDfVCK5rQcvdeTkAN1uSc3XvDq/5LfiXEkj2k; 3:5CGjUizdODHEVu9gd1p3GhKXNgjoCWjjzYpI6I8FsSWOirmttsSs2WnxcAL46F4q65bs/Wvf4skx1g5bS3A5mFaMQlvu1Uxg7aDamfvWwmUCycE5u9swHB/7HpwDLjmAiYkW6K0DpJ8vz7O2yvOW8TOEH/k94MemyapLkfcSeR9oMnp1I9tgTp8Rk7puhflkkrcPTzUDPzbxCts0QGNh64VZOzfIOr+eZ9MkvAu1K/4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB375; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB375; 25:6HxMMvLcH4YxU5dp+dKcqicIvH1jm4dDK4mlSb+N9B7C0j9bRWxO5TuoIt5dqyWaSNj6QZajk5lOXhucRK39NVBI/VDXIeaOC5blkdkthfRsWM58EmBkvKY2X+u6t9ceKWh8xFzCMRkoaSJH1V17m1lI6N+ERjG/zsofW1nqAfrkeiU/302mJqQCSBnWIwAk45S8Ma0srPR6FRvwbPlP7a8Pm7Xc88Zugio5Z2/ZZYUF+IzjD0RlOPCvmFx/zsMDOFzxl0x3xyl3zD9WYa5mM+3h4elgRRdr5arg1rflkzipSzQXcvGmw0c/g7Wio64rGT6SA2u5uBAnD7dGKkcmyt55KnjrPueR2K42sHFPG0LkhY68LDd9D3qaLeUhEash8YMylAFoE5xDynsryKAoFZOMsDsSo9UJZNelA998phrRXHNz+/jLOOtfxM9Tpaxc49PXT9nbbA8fVUA2QNoiExf8iOWLFrqFD6Q0a1xHzmRJcjD4yuOGfhfcdC2RzE+kO4/Xwu1qJNIAmvCI7t/JCFNKbXlXp1H0dxalAZvGPtQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13018025)(13017025)(13024025)(13023025)(13015025)(8121501046)(3002001)(10201501046); SRVR:BLUPR03MB375; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB375; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB375; 4:5Lm5J6jqSxoSa3PcCClUf4txcbQ0TibkRfUK4LnT1CLDjT0UnT8kDxXIz4lrsZ7Cvahg/nrSJRvxmndnQC+8I537WNETLUsj41UjktFfylCIbOsBSlIevSSp3XnD8bR6pBB4oekRQ52ThzVCE0WCj+ua73m77fAXbRJUuH7d2ZYsHzv3tPRfAc8DMyj2H+mZGIsRjv7rMHzfgVymvxdRCV1xrWpCVMhWtG487fGWd0/MSEuYzNm9Sd/Pl0VqW9r889szSpaJtXESz4NBGYVynnSN328pY0UgQFsoZPr+G5NE3DrIhHeXB68LgkClrhNS/YMWogpsUJseUrI/bjhppag1cSIBG/ORzvI1H7x91uG7QV/Zl3z0So7G8RiBTChq3DATIbfmo0AiT+z7UCPipuiLKQHvPtJWJgQqqCtxMbEk3S4oROBphRV+SW9uMRboxaGsJ2pzFL1w3vmmYQKCwA== X-Forefront-PRVS: 08902E536D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB375; 23:OyoystFTi2QhT2xMz6L+n/9sqfPr12TTrJx1NFzPas?= =?us-ascii?Q?0yTIMuYxHyrvU89SsGCBK3UcTQQnERUcP+H8VnYTa3xg2KP4NXN7ltQNqqXB?= =?us-ascii?Q?9zXOe71vwWhr6LfrNu8EtxRQOTShSjA9TUgXwXBj+hMGdL5/VdqQw0gfF6sE?= =?us-ascii?Q?WX10nJScgHY1l/o0ARjwfUndWz8hiGV1RHc25iTn/umNVd8qlinDP38sB5Wu?= =?us-ascii?Q?uY3s85IRtYuldqI+cGrrfpKe3xArbnZlx9LYt3uhQRkXJLjik0o9h4TA3jI8?= =?us-ascii?Q?0cwyrHVxETIA2lsPPHmMZv5FX72TCmIz6qMxcokIQJ8Ki4Mk1cPvYRc3hvU+?= =?us-ascii?Q?K8wE313gop+vELPioUoWVIE3PGQcSMI8Q1pJmsrzxezbfOYSTAGLdqLwOpVi?= =?us-ascii?Q?M2FYJeOtKYYU3pUXchqkqu3helUM7UB7Tfr5AuBKt2i6rCUGECCxvJ/vny9b?= =?us-ascii?Q?HgGbhnDoUdIY0q9g+Q3BKH1v5QQ+ChwLO8UyL5TE7Le2pHgU9nyg6PDDkY1j?= =?us-ascii?Q?ycst3BFWpgKSCi6R7hrYkBojXzN7dbfP5ScvR1dCjplunmu60W+n+ekfGJqI?= =?us-ascii?Q?Byl5ZBMXIXxGUpCy85tPEtGLQz82HbDuLoQKwLRijqZ7LtbNbL+yBJr6LUW+?= =?us-ascii?Q?N8KH2G5azrHZgDpVDdfAofdcGv86j46TkYTjKEB7d89TlyisUhGl9gR/gHFT?= =?us-ascii?Q?JI0TI1xqSry2zGBUwvhjOp1dB7ZJM5Q6C+JEmgIY/Jmaz5GH6H1cGTKw02zE?= =?us-ascii?Q?UCIVmu3qsAFrtwYgPHYGTaMtZMXHzd3DoFbFSEDexPxknnVryuIJVHxunz7N?= =?us-ascii?Q?HPAD8hZ/+kJyr12awJhK9+njcmclVCJx17eObKDu9eFWJvZaWWXMhW5QQeRV?= =?us-ascii?Q?hO+wvGESHlJi77s2NbyoMg+kpwPbW2YYgmBdcErzSA8aoGc3RYwDFcEx83/E?= =?us-ascii?Q?4E85bGTfTYYqF2KJzGc9jItnqgLcxmDs2jlumvLbsnE65MV0I01J4jz2q6T4?= =?us-ascii?Q?7zY955ELaZg5dx7KVZROqTMY4JAZV9vaVgO30kphtbYNd4xs3enD6TGExXj3?= =?us-ascii?Q?mV7dbwUA1VXksQcctI3xa9t12n?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB375; 5:SfIWIIS3PoLGGl0THjKWUEexFBhWWFwbBxgmB3sJulwKJCCHaSYBXSW94oyeO14WYKu4dbcizuH7oZqnMpzIGAdIUtQFggS6NdTEMTHOJOE/Mj+uWyxdpnD+5wSJE/0bITl7jrE1hF12jVXImPeWpad3jGcwoqUyMlIPRg2kTH0=; 24:3RlqY0FnngZDOVwjM353BCCthgMN0Mr9+5TxI4anB2+QGxQ2M7h0eCOTrOrRc7xL1Hru58PpIsx3JRMcyVPeb+O/ltqDGxqvCjwyoq0VsCw= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2016 15:04:33.9988 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB375 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, T_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 Acked-by: Cristian Stoica --- 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) {