76 if (len < 16 || len > 8192) {
77 printf(
"Invalid prime size!\n");
96 if ((
e < 3) || ((
e & 1) == 0)) {
181 unsigned char *
out,
unsigned long *outlen,
int which,
#define LTM_PRIME_2MSB_ON
@ CRYPT_INVALID_PRIME_SIZE
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLint GLint GLint GLint GLint x
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble GLdouble q
int mp_copy(const mp_int *a, mp_int *b)
int mp_to_unsigned_bin(const mp_int *a, unsigned char *b)
void mp_clear_multi(mp_int *mp,...)
int mp_unsigned_bin_size(const mp_int *a)
int mp_prime_rabin_miller_trials(int size)
int mp_add(mp_int *a, mp_int *b, mp_int *c)
int mp_sub(mp_int *a, mp_int *b, mp_int *c)
int mp_invmod(const mp_int *a, mp_int *b, mp_int *c)
int mp_gcd(const mp_int *a, const mp_int *b, mp_int *c)
int mp_mod(const mp_int *a, mp_int *b, mp_int *c)
int mp_lcm(const mp_int *a, const mp_int *b, mp_int *c)
int mp_sub_d(mp_int *a, mp_digit b, mp_int *c)
int mp_cmp_d(const mp_int *a, mp_digit b)
int mp_cmp(const mp_int *a, const mp_int *b)
int mp_prime_random_ex(mp_int *a, int t, int size, int flags, ltm_prime_callback cb, void *dat)
int mp_mulmod(const mp_int *a, const mp_int *b, mp_int *c, mp_int *d)
int mp_read_unsigned_bin(mp_int *a, const unsigned char *b, int c)
int mp_exptmod(const mp_int *G, const mp_int *X, mp_int *P, mp_int *Y)
int mp_mul(const mp_int *a, const mp_int *b, mp_int *c)
int mp_set_int(mp_int *a, unsigned long b)
int mp_init_multi(mp_int *mp,...)
int rsa_make_key(int size, long e, rsa_key *key)
static int rand_prime(mp_int *N, long len)
static const struct @542 mpi_to_ltc_codes[]
static int rand_prime_helper(unsigned char *dst, int len, void *dat)
int gen_rand_impl(unsigned char *dst, unsigned int len)
static int mpi_to_ltc_error(int err)
int rsa_exptmod(const unsigned char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen, int which, rsa_key *key)