ReactOS
0.4.15-dev-4917-g934e521
|
#include "tomcrypt.h"
Go to the source code of this file.
Functions | |
static int | mpi_to_ltc_error (int err) |
int | gen_rand_impl (unsigned char *dst, unsigned int len) |
static int | rand_prime_helper (unsigned char *dst, int len, void *dat) |
static int | rand_prime (mp_int *N, long len) |
int | rsa_make_key (int size, long e, rsa_key *key) |
void | rsa_free (rsa_key *key) |
int | rsa_exptmod (const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen, int which, rsa_key *key) |
Variables | |
struct { | |
int mpi_code | |
int ltc_code | |
} | mpi_to_ltc_codes [] |
Definition at line 42 of file rsa.c.
Referenced by rand_prime(), rsa_exptmod(), and rsa_make_key().
Definition at line 61 of file rsa.c.
Referenced by rsa_make_key().
Definition at line 56 of file rsa.c.
Referenced by rand_prime().
int rsa_exptmod | ( | const unsigned char * | in, |
unsigned long | inlen, | ||
unsigned char * | out, | ||
unsigned long * | outlen, | ||
int | which, | ||
rsa_key * | key | ||
) |
Definition at line 180 of file rsa.c.
Referenced by encrypt_block_impl().
Definition at line 87 of file rsa.c.
Referenced by new_key_impl().
int mpi_code |
Definition at line 34 of file rsa.c.
Referenced by mpi_to_ltc_error().
const { ... } mpi_to_ltc_codes[] |
Referenced by mpi_to_ltc_error().