rsalib.h

Go to the documentation of this file.
00001 /* @(#)root/auth:$Id: rsalib.h 30749 2009-10-15 16:33:04Z brun $ */
00002 /* Author: Martin Nicolay  22/11/1988 */
00003 
00004 /******************************************************************************
00005 Copyright (C) 2006 Martin Nicolay <m.nicolay@osm-gmbh.de>
00006 
00007 This library is free software; you can redistribute it and/or
00008 modify it under the terms of the GNU Lesser General Public
00009 License as published by the Free Software Foundation; either
00010 version 2.1 of the License, or (at your option) any later
00011 version.
00012 
00013 This library is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 GNU Lesser General Public License for more details.
00017 
00018 You should have received a copy of the GNU Lesser General Public
00019 License along with this library; if not, write to the Free
00020 Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
00021 MA  02110-1301  USA
00022 ******************************************************************************/
00023 
00024 /*******************************************************************************
00025 *                                                                                                                      *
00026 *       Simple RSA public key code.                                            *
00027 *       Adaptation in library for ROOT by G. Ganis, July 2003                  *
00028 *       (gerardo.ganis@cern.ch)                                                *
00029 *                                                                                                                           *
00030 *       Header used by internal rsa functions                                   *
00031 *                                                                                                                           *
00032 *******************************************************************************/
00033 
00034 #ifndef _RSALIB_H
00035 #define _RSALIB_H
00036 
00037 rsa_NUMBER rsa_genprim(int, int);
00038 int    rsa_genrsa(rsa_NUMBER, rsa_NUMBER, rsa_NUMBER *, rsa_NUMBER *, rsa_NUMBER *);
00039 int    rsa_encode(char *, int, rsa_NUMBER, rsa_NUMBER);
00040 int    rsa_decode(char *, int, rsa_NUMBER, rsa_NUMBER);
00041 
00042 int    rsa_encode_size(rsa_NUMBER);
00043 
00044 /******************
00045  * nio.h          *
00046  ******************/
00047 
00048 int     rsa_cmp( rsa_NUMBER*, rsa_NUMBER* );
00049 void    rsa_assign( rsa_NUMBER*, rsa_NUMBER* );
00050 
00051 int     rsa_num_sput( rsa_NUMBER*, char*, int );
00052 int     rsa_num_fput( rsa_NUMBER*, FILE* );
00053 int     rsa_num_sget( rsa_NUMBER*, char* );
00054 int     rsa_num_fget( rsa_NUMBER*, FILE* );
00055 
00056 #endif
00057 
00058 

Generated on Tue Jul 5 14:26:29 2011 for ROOT_528-00b_version by  doxygen 1.5.1