Logo ROOT  
Reference Guide
No Matches
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:


void num_init ()
void rsa_assign (rsa_NUMBER *d, rsa_NUMBER *s)
int rsa_cmp (rsa_NUMBER *c1, rsa_NUMBER *c2)
int rsa_decode (char *bufin, int lin, rsa_NUMBER n, rsa_NUMBER e)
int rsa_encode (char *bufin, int lin, rsa_NUMBER n, rsa_NUMBER e)
int rsa_encode_size (rsa_NUMBER n)
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_num_fget (rsa_NUMBER *n, FILE *f)
int rsa_num_fput (rsa_NUMBER *n, FILE *f)
int rsa_num_sget (rsa_NUMBER *n, char *s)
int rsa_num_sput (rsa_NUMBER *n, char *s, int l)


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

Function Documentation

◆ num_init()

void num_init ( )

Definition at line 258 of file rsalib.cxx.

◆ rsa_assign()

void rsa_assign ( rsa_NUMBER d,
rsa_NUMBER s 

Definition at line 487 of file rsalib.cxx.

◆ rsa_cmp()

int rsa_cmp ( rsa_NUMBER c1,
rsa_NUMBER c2 

Definition at line 476 of file rsalib.cxx.

◆ rsa_decode()

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

Definition at line 177 of file rsalib.cxx.

◆ rsa_encode()

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

Definition at line 139 of file rsalib.cxx.

◆ rsa_encode_size()

int rsa_encode_size ( rsa_NUMBER  n)

Definition at line 132 of file rsalib.cxx.

◆ rsa_genprim()

rsa_NUMBER rsa_genprim ( int  len,
int  prob 

Definition at line 48 of file rsalib.cxx.

◆ rsa_genrsa()

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.

◆ rsa_num_fget()

int rsa_num_fget ( rsa_NUMBER n,
FILE *  f 

Definition at line 450 of file rsalib.cxx.

◆ rsa_num_fput()

int rsa_num_fput ( rsa_NUMBER n,
FILE *  f 

Definition at line 350 of file rsalib.cxx.

◆ rsa_num_sget()

int rsa_num_sget ( rsa_NUMBER n,
char *  s 

Definition at line 374 of file rsalib.cxx.

◆ rsa_num_sput()

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

Definition at line 276 of file rsalib.cxx.

Variable Documentation

◆ g_clear_siz

int g_clear_siz

Definition at line 41 of file rsalib.cxx.

◆ g_enc_siz

int g_enc_siz

Definition at line 42 of file rsalib.cxx.

◆ gbits

rsa_NUMBER gbits[9]

Definition at line 253 of file rsalib.cxx.

◆ gHEX

const char* gHEX ="0123456789ABCDEF"

Definition at line 250 of file rsalib.cxx.

◆ ghex

const char* ghex ="0123456789abcdef"

Definition at line 251 of file rsalib.cxx.

◆ ginit

int ginit = 0

Definition at line 256 of file rsalib.cxx.

◆ gint16

rsa_NUMBER gint16[16]

Definition at line 254 of file rsalib.cxx.

◆ gLog

int gLog = 0

Definition at line 45 of file rsalib.cxx.


int kMAXT = 100

Definition at line 46 of file rsalib.cxx.