Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
rsalib.h
Go to the documentation of this file.
1/* @(#)root/auth:$Id$ */
2/* Author: Martin Nicolay 22/11/1988 */
3
4/******************************************************************************
5Copyright (C) 2006 Martin Nicolay <m.nicolay@osm-gmbh.de>
6
7This library is free software; you can redistribute it and/or
8modify it under the terms of the GNU Lesser General Public
9License as published by the Free Software Foundation; either
10version 2.1 of the License, or (at your option) any later
11version.
12
13This library is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU Lesser General Public License for more details.
17
18You should have received a copy of the GNU Lesser General Public
19License along with this library; if not, write to the Free
20Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
21MA 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
41rsa_NUMBER rsa_genprim(int, int);
43int rsa_encode(char *, int, rsa_NUMBER, rsa_NUMBER);
44int rsa_decode(char *, int, rsa_NUMBER, rsa_NUMBER);
45
47
48/******************
49 * nio.h *
50 ******************/
51
54
55int rsa_num_sput( rsa_NUMBER*, char*, int );
56int rsa_num_fput( rsa_NUMBER*, FILE* );
57int rsa_num_sget( rsa_NUMBER*, char* );
58int rsa_num_fget( rsa_NUMBER*, FILE* );
59
60#endif
61
62
static TRSA_fun g_rsa_init & rsa_genprim
Definition rsafun.cxx:68
int rsa_num_sget(rsa_NUMBER *, char *)
Definition rsalib.cxx:374
void rsa_assign(rsa_NUMBER *, rsa_NUMBER *)
Definition rsalib.cxx:487
int rsa_decode(char *, int, rsa_NUMBER, rsa_NUMBER)
Definition rsalib.cxx:177
int rsa_cmp(rsa_NUMBER *, rsa_NUMBER *)
Definition rsalib.cxx:476
int rsa_genrsa(rsa_NUMBER, rsa_NUMBER, rsa_NUMBER *, rsa_NUMBER *, rsa_NUMBER *)
Definition rsalib.cxx:82
int rsa_num_sput(rsa_NUMBER *, char *, int)
Definition rsalib.cxx:276
int rsa_num_fput(rsa_NUMBER *, FILE *)
Definition rsalib.cxx:350
int rsa_num_fget(rsa_NUMBER *, FILE *)
Definition rsalib.cxx:450
int rsa_encode_size(rsa_NUMBER)
Definition rsalib.cxx:132
int rsa_encode(char *, int, rsa_NUMBER, rsa_NUMBER)
Definition rsalib.cxx:139