Logo ROOT   6.12/07
Reference Guide
rsalib.h
Go to the documentation of this file.
1 /* @(#)root/auth:$Id$ */
2 /* Author: Martin Nicolay 22/11/1988 */
3 
4 /******************************************************************************
5 Copyright (C) 2006 Martin Nicolay <m.nicolay@osm-gmbh.de>
6 
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later
11 version.
12 
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU Lesser General Public License for more details.
17 
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free
20 Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
21 MA 02110-1301 USA
22 ******************************************************************************/
23 
24 /*******************************************************************************
25 * *
26 * Simple RSA public key code. *
27 * Adaptation in library for ROOT by G. Ganis, July 2003 *
28 * (gerardo.ganis@cern.ch) *
29 * *
30 * Header used by internal rsa functions *
31 * *
32 *******************************************************************************/
33 
34 #ifndef _RSALIB_H
35 #define _RSALIB_H
36 
37 #include "rsadef.h"
38 
39 #include <stdio.h>
40 
41 rsa_NUMBER rsa_genprim(int, int);
43 int rsa_encode(char *, int, rsa_NUMBER, rsa_NUMBER);
44 int rsa_decode(char *, int, rsa_NUMBER, rsa_NUMBER);
45 
47 
48 /******************
49  * nio.h *
50  ******************/
51 
52 int rsa_cmp( rsa_NUMBER*, rsa_NUMBER* );
54 
55 int rsa_num_sput( rsa_NUMBER*, char*, int );
56 int rsa_num_fput( rsa_NUMBER*, FILE* );
57 int rsa_num_sget( rsa_NUMBER*, char* );
58 int rsa_num_fget( rsa_NUMBER*, FILE* );
59 
60 #endif
61 
62 
int rsa_num_fput(rsa_NUMBER *, FILE *)
Definition: rsalib.cxx:350
int rsa_cmp(rsa_NUMBER *, rsa_NUMBER *)
Definition: rsalib.cxx:476
void rsa_assign(rsa_NUMBER *, rsa_NUMBER *)
Definition: rsalib.cxx:487
int rsa_num_sget(rsa_NUMBER *, char *)
Definition: rsalib.cxx:374
int rsa_num_fget(rsa_NUMBER *, FILE *)
Definition: rsalib.cxx:450
int rsa_genrsa(rsa_NUMBER, rsa_NUMBER, rsa_NUMBER *, rsa_NUMBER *, rsa_NUMBER *)
Definition: rsalib.cxx:82
int rsa_encode_size(rsa_NUMBER)
Definition: rsalib.cxx:132
int rsa_num_sput(rsa_NUMBER *, char *, int)
Definition: rsalib.cxx:276
int rsa_decode(char *, int, rsa_NUMBER, rsa_NUMBER)
Definition: rsalib.cxx:177
rsa_NUMBER rsa_genprim(int, int)
Definition: rsalib.cxx:48
int rsa_encode(char *, int, rsa_NUMBER, rsa_NUMBER)
Definition: rsalib.cxx:139