ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
rsalib.cxx File Reference
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <errno.h>
#include "rsaaux.h"
#include "rsalib.h"
Include dependency graph for rsalib.cxx:

Go to the source code of this file.

Functions

rsa_NUMBER rsa_genprim (int len, int prob)
 
int rsa_genrsa (rsa_NUMBER p1, rsa_NUMBER p2, rsa_NUMBER *n, rsa_NUMBER *e, rsa_NUMBER *d)
 
int rsa_encode_size (rsa_NUMBER n)
 
int rsa_encode (char *bufin, int lin, rsa_NUMBER n, rsa_NUMBER e)
 
int rsa_decode (char *bufin, int lin, rsa_NUMBER n, rsa_NUMBER e)
 
void num_init ()
 
int rsa_num_sput (rsa_NUMBER *n, char *s, int l)
 
int rsa_num_fput (rsa_NUMBER *n, FILE *f)
 
int rsa_num_sget (rsa_NUMBER *n, char *s)
 
int rsa_num_fget (rsa_NUMBER *n, FILE *f)
 
int rsa_cmp (rsa_NUMBER *c1, rsa_NUMBER *c2)
 
void rsa_assign (rsa_NUMBER *d, rsa_NUMBER *s)
 

Variables

static int g_clear_siz
 
static int g_enc_siz
 
int gLog = 0
 
int kMAXT = 100
 
static const char * gHEX ="0123456789ABCDEF"
 
static const char * ghex ="0123456789abcdef"
 
static rsa_NUMBER gbits [9]
 
static rsa_NUMBER gint16 [16]
 
static int ginit = 0
 

Function Documentation

void num_init ( )

Definition at line 258 of file rsalib.cxx.

Referenced by rsa_num_sget(), and rsa_num_sput().

void rsa_assign ( rsa_NUMBER d,
rsa_NUMBER s 
)

Definition at line 487 of file rsalib.cxx.

int rsa_cmp ( rsa_NUMBER c1,
rsa_NUMBER c2 
)

Definition at line 476 of file rsalib.cxx.

int rsa_decode ( char *  bufin,
int  lin,
rsa_NUMBER  n,
rsa_NUMBER  e 
)

Definition at line 177 of file rsalib.cxx.

int rsa_encode ( char *  bufin,
int  lin,
rsa_NUMBER  n,
rsa_NUMBER  e 
)

Definition at line 139 of file rsalib.cxx.

int rsa_encode_size ( rsa_NUMBER  n)

Definition at line 132 of file rsalib.cxx.

rsa_NUMBER rsa_genprim ( int  len,
int  prob 
)

Definition at line 48 of file rsalib.cxx.

int rsa_genrsa ( rsa_NUMBER  p1,
rsa_NUMBER  p2,
rsa_NUMBER n,
rsa_NUMBER e,
rsa_NUMBER d 
)

Definition at line 82 of file rsalib.cxx.

int rsa_num_fget ( rsa_NUMBER n,
FILE *  f 
)

Definition at line 450 of file rsalib.cxx.

int rsa_num_fput ( rsa_NUMBER n,
FILE *  f 
)

Definition at line 350 of file rsalib.cxx.

int rsa_num_sget ( rsa_NUMBER n,
char *  s 
)

Definition at line 374 of file rsalib.cxx.

Referenced by do_crypt(), gen_number(), and rsa_num_fget().

int rsa_num_sput ( rsa_NUMBER n,
char *  s,
int  l 
)

Definition at line 276 of file rsalib.cxx.

Referenced by do_crypt(), and rsa_num_fput().

Variable Documentation

int g_clear_siz
static

Definition at line 41 of file rsalib.cxx.

Referenced by rsa_decode(), and rsa_encode().

int g_enc_siz
static

Definition at line 42 of file rsalib.cxx.

Referenced by rsa_decode(), and rsa_encode().

rsa_NUMBER gbits[9]
static

Definition at line 253 of file rsalib.cxx.

const char* gHEX ="0123456789ABCDEF"
static

Definition at line 250 of file rsalib.cxx.

Referenced by rsa_num_sget(), and rsa_num_sput().

const char* ghex ="0123456789abcdef"
static

Definition at line 251 of file rsalib.cxx.

Referenced by rsa_num_sget().

int ginit = 0
static

Definition at line 256 of file rsalib.cxx.

Referenced by geant3tasks(), num_init(), rsa_num_sget(), and rsa_num_sput().

rsa_NUMBER gint16[16]
static

Definition at line 254 of file rsalib.cxx.

int gLog = 0

Definition at line 45 of file rsalib.cxx.

int kMAXT = 100

Definition at line 46 of file rsalib.cxx.

Referenced by rsa_genrsa().