ReactOS 0.4.16-dev-329-g9223134
|
Go to the source code of this file.
Macros | |
#define | s_mp_mul(a, b, c) s_mp_mul_digs(a, b, c, (a)->used + (b)->used + 1) |
Variables | |
static const int | KARATSUBA_MUL_CUTOFF = 88 |
static const int | KARATSUBA_SQR_CUTOFF = 128 |
static const int | lnz [16] |
static const mp_digit | __prime_tab [] |
struct { | |
int k | |
int t | |
} | sizes [] |
Definition at line 3907 of file mpi.c.
Referenced by mp_to_unsigned_bin().
Definition at line 314 of file mpi.c.
Referenced by mp_invmod().
Definition at line 444 of file mpi.c.
Referenced by mp_exptmod_fast(), and mp_montgomery_reduce().
Definition at line 604 of file mpi.c.
Referenced by mp_mul(), and s_mp_mul_digs().
|
static |
Definition at line 683 of file mpi.c.
Referenced by s_mp_mul_high_digs().
Definition at line 780 of file mpi.c.
Referenced by mp_sqr().
Definition at line 869 of file mpi.c.
Referenced by mp_montgomery_calc_normalization(), mp_reduce_2k_setup(), and mp_reduce_setup().
Definition at line 290 of file mpi.c.
Referenced by fast_mp_invmod(), mp_exptmod(), and mp_gcd().
Definition at line 891 of file mpi.c.
Referenced by fast_mp_invmod(), mp_div(), mp_invmod_slow(), mp_karatsuba_mul(), mp_karatsuba_sqr(), mp_mod(), mp_reduce(), and rsa_exptmod().
Definition at line 924 of file mpi.c.
Referenced by mp_prime_random_ex(), and mp_sub_d().
Definition at line 1017 of file mpi.c.
Referenced by fast_mp_montgomery_reduce(), fast_s_mp_mul_digs(), fast_s_mp_mul_high_digs(), fast_s_mp_sqr(), mp_add_d(), mp_div(), mp_div_2(), mp_div_2d(), mp_div_d(), mp_dr_reduce(), mp_karatsuba_mul(), mp_karatsuba_sqr(), mp_mod_2d(), mp_montgomery_reduce(), mp_mul_2d(), mp_mul_d(), mp_read_unsigned_bin(), mp_set_int(), mp_sub_d(), s_mp_add(), s_mp_mul_digs(), s_mp_mul_high_digs(), s_mp_sqr(), and s_mp_sub().
Definition at line 255 of file mpi.c.
Referenced by mp_clear_multi(), mp_div(), mp_div_2d(), mp_div_d(), mp_exptmod(), mp_exptmod_fast(), mp_gcd(), mp_init_multi(), mp_karatsuba_mul(), mp_karatsuba_sqr(), mp_mod(), mp_mulmod(), mp_prime_is_prime(), mp_prime_miller_rabin(), mp_reduce(), mp_reduce_2k(), mp_reduce_2k_setup(), mp_sqrmod(), mp_to_unsigned_bin(), s_mp_exptmod(), s_mp_mul_digs(), s_mp_mul_high_digs(), and s_mp_sqr().
Definition at line 1032 of file mpi.c.
Referenced by fast_mp_invmod(), mp_exptmod(), mp_invmod_slow(), mp_lcm(), rsa_exptmod(), rsa_free(), and rsa_make_key().
Definition at line 1046 of file mpi.c.
Referenced by fast_mp_invmod(), mp_div(), mp_invmod_slow(), mp_prime_miller_rabin(), mp_reduce(), and rsa_exptmod().
Definition at line 1067 of file mpi.c.
Referenced by fast_mp_invmod(), mp_invmod_slow(), mp_prime_is_prime(), mp_prime_miller_rabin(), mp_reduce(), and rsa_make_key().
Definition at line 1090 of file mpi.c.
Referenced by fast_mp_montgomery_reduce(), mp_add(), mp_cmp(), mp_div(), mp_dr_reduce(), mp_gcd(), mp_invmod_slow(), mp_lcm(), mp_montgomery_calc_normalization(), mp_montgomery_reduce(), mp_reduce_2k(), and mp_sub().
Definition at line 1128 of file mpi.c.
Referenced by mp_gcd(), and mp_prime_miller_rabin().
Definition at line 1156 of file mpi.c.
Referenced by fast_mp_invmod(), mp_abs(), mp_div(), mp_div_2d(), mp_div_d(), mp_exptmod_fast(), mp_init_copy(), mp_invmod_slow(), mp_mod_2d(), mp_mul_2d(), rsa_make_key(), and s_mp_exptmod().
Definition at line 1203 of file mpi.c.
Referenced by encrypt_block_impl(), mp_div(), mp_exptmod_fast(), mp_montgomery_calc_normalization(), mp_reduce_2k(), mp_reduce_2k_setup(), mp_unsigned_bin_size(), and s_mp_exptmod().
Definition at line 1565 of file mpi.c.
Referenced by mp_lcm(), mp_mod(), and mp_reduce_setup().
Definition at line 142 of file mpi.c.
Referenced by fast_mp_invmod(), mp_invmod_slow(), and mp_prime_random_ex().
Definition at line 1310 of file mpi.c.
Referenced by mp_div(), mp_div_d(), mp_gcd(), mp_prime_miller_rabin(), mp_reduce_2k(), and mp_to_unsigned_bin().
Definition at line 1762 of file mpi.c.
Referenced by mp_mod_d().
Definition at line 1844 of file mpi.c.
Referenced by mp_exptmod_fast().
Definition at line 1903 of file mpi.c.
Referenced by mp_exptmod_fast().
Definition at line 192 of file mpi.c.
Referenced by fast_mp_invmod(), mp_div(), mp_div_2d(), mp_div_d(), mp_exptmod_fast(), mp_gcd(), mp_invmod_slow(), mp_mod(), s_mp_exptmod(), s_mp_mul_digs(), s_mp_mul_high_digs(), and s_mp_sqr().
Definition at line 1917 of file mpi.c.
Referenced by mp_exptmod(), mp_prime_miller_rabin(), and rsa_exptmod().
Definition at line 1976 of file mpi.c.
Referenced by mp_exptmod().
Definition at line 2228 of file mpi.c.
Referenced by mp_lcm(), and rsa_make_key().
Definition at line 2320 of file mpi.c.
Referenced by export_private_key_impl(), and export_public_key_impl().
Definition at line 106 of file mpi.c.
Referenced by fast_mp_montgomery_reduce(), fast_s_mp_mul_digs(), fast_s_mp_mul_high_digs(), fast_s_mp_sqr(), mp_2expt(), mp_add_d(), mp_copy(), mp_div_2(), mp_dr_reduce(), mp_lshd(), mp_montgomery_reduce(), mp_mul_2(), mp_mul_2d(), mp_mul_d(), mp_read_unsigned_bin(), mp_sub_d(), s_mp_add(), and s_mp_sub().
Definition at line 202 of file mpi.c.
Referenced by mp_div(), mp_div_2d(), mp_exptmod(), mp_exptmod_fast(), mp_init_copy(), mp_init_multi(), mp_mod(), mp_mulmod(), mp_prime_is_prime(), mp_prime_miller_rabin(), mp_reduce_2k(), mp_reduce_2k_setup(), mp_sqrmod(), and s_mp_exptmod().
Definition at line 2344 of file mpi.c.
Referenced by duplicate_key_impl(), mp_div(), mp_gcd(), mp_prime_miller_rabin(), mp_reduce(), and mp_to_unsigned_bin().
Definition at line 2354 of file mpi.c.
Referenced by fast_mp_invmod(), import_private_key_impl(), import_public_key_impl(), mp_invmod_slow(), mp_lcm(), rsa_exptmod(), and rsa_make_key().
Definition at line 227 of file mpi.c.
Referenced by mp_div(), mp_div_d(), mp_karatsuba_mul(), mp_karatsuba_sqr(), s_mp_mul_digs(), s_mp_mul_high_digs(), and s_mp_sqr().
Definition at line 2391 of file mpi.c.
Referenced by mp_exptmod(), and rsa_make_key().
Definition at line 2407 of file mpi.c.
Referenced by mp_invmod().
Definition at line 2589 of file mpi.c.
Referenced by mp_mul().
Definition at line 2713 of file mpi.c.
Referenced by mp_sqr().
Definition at line 2807 of file mpi.c.
Referenced by rsa_make_key().
Definition at line 1386 of file mpi.c.
Referenced by mp_div(), mp_karatsuba_mul(), mp_karatsuba_sqr(), mp_mul_2d(), and mp_reduce().
Definition at line 2847 of file mpi.c.
Referenced by mp_exptmod_fast(), mp_mulmod(), mp_sqrmod(), rsa_make_key(), and s_mp_exptmod().
Definition at line 1227 of file mpi.c.
Referenced by mp_div_2d(), and mp_reduce().
Definition at line 2873 of file mpi.c.
Referenced by mp_prime_is_divisible().
Definition at line 2945 of file mpi.c.
Referenced by mp_exptmod_fast().
Definition at line 2980 of file mpi.c.
Referenced by mp_exptmod_fast().
Definition at line 3077 of file mpi.c.
Referenced by mp_exptmod_fast().
Definition at line 3107 of file mpi.c.
Referenced by mp_exptmod_fast(), mp_karatsuba_mul(), mp_lcm(), mp_mulmod(), mp_reduce(), rsa_exptmod(), rsa_make_key(), and s_mp_exptmod().
Definition at line 2879 of file mpi.c.
Referenced by mp_montgomery_calc_normalization(), and mp_prime_random_ex().
Definition at line 1432 of file mpi.c.
Referenced by mp_div(), mp_gcd(), mp_read_unsigned_bin(), and mp_set_int().
Definition at line 1497 of file mpi.c.
Referenced by mp_div(), and mp_reduce_2k().
Definition at line 3138 of file mpi.c.
Referenced by mp_exptmod_fast(), and rsa_exptmod().
Definition at line 3200 of file mpi.c.
Referenced by mp_prime_is_prime().
Definition at line 3313 of file mpi.c.
Referenced by mp_prime_random_ex().
Definition at line 3231 of file mpi.c.
Referenced by mp_prime_is_prime().
Definition at line 3382 of file mpi.c.
Referenced by rand_prime().
int mp_prime_random_ex | ( | mp_int * | a, |
int | t, | ||
int | size, | ||
int | flags, | ||
ltm_prime_callback | cb, | ||
void * | dat | ||
) |
Definition at line 3412 of file mpi.c.
Referenced by rand_prime().
Definition at line 3502 of file mpi.c.
Referenced by import_private_key_impl(), import_public_key_impl(), mp_prime_random_ex(), and rsa_exptmod().
Definition at line 3534 of file mpi.c.
Referenced by s_mp_exptmod().
Definition at line 3600 of file mpi.c.
Referenced by mp_exptmod_fast().
Definition at line 1259 of file mpi.c.
Referenced by mp_div(), mp_div_2d(), mp_montgomery_reduce(), and mp_reduce().
Definition at line 3679 of file mpi.c.
Referenced by fast_mp_invmod(), mp_exptmod_fast(), mp_invmod_slow(), mp_montgomery_calc_normalization(), mp_prime_is_prime(), mp_reduce(), and s_mp_exptmod().
Definition at line 3687 of file mpi.c.
Referenced by import_private_key_impl(), import_public_key_impl(), and rsa_make_key().
Definition at line 3714 of file mpi.c.
Referenced by rsa_make_key().
Definition at line 3729 of file mpi.c.
Referenced by mp_exptmod_fast(), mp_karatsuba_sqr(), mp_sqrmod(), and s_mp_exptmod().
Definition at line 3751 of file mpi.c.
Referenced by mp_prime_miller_rabin().
Definition at line 3771 of file mpi.c.
Referenced by fast_mp_invmod(), mp_div(), mp_invmod_slow(), mp_karatsuba_mul(), mp_karatsuba_sqr(), mp_reduce(), and rsa_exptmod().
Definition at line 3808 of file mpi.c.
Referenced by mp_add_d(), mp_prime_miller_rabin(), mp_prime_random_ex(), and rsa_make_key().
Definition at line 3875 of file mpi.c.
Referenced by export_private_key_impl(), export_public_key_impl(), and rsa_exptmod().
Definition at line 3899 of file mpi.c.
Referenced by export_private_key_impl(), export_public_key_impl(), and rsa_exptmod().
Definition at line 278 of file mpi.c.
Referenced by mp_2expt(), mp_div(), mp_div_2d(), mp_gcd(), mp_mod_2d(), mp_read_unsigned_bin(), mp_rshd(), mp_set(), and mp_set_int().
Definition at line 3925 of file mpi.c.
Referenced by mp_add(), mp_karatsuba_sqr(), mp_reduce_2k(), and mp_sub().
Definition at line 4011 of file mpi.c.
Referenced by mp_exptmod().