/linux/lib/crypto/mpi/ |
H A D | mpi-internal.h | 53 typedef int mpi_size_t; /* (must be a signed type) */ typedef 65 mpi_size_t _i; \ 72 mpi_size_t _i; \ 140 mpi_size_t s1_size, mpi_limb_t s2_limb); 142 mpi_ptr_t s2_ptr, mpi_size_t size); 143 static inline mpi_limb_t mpihelp_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, 144 mpi_ptr_t s2_ptr, mpi_size_t s2_size); 147 mpi_size_t s1_size, mpi_limb_t s2_limb); 149 mpi_ptr_t s2_ptr, mpi_size_t size); 150 static inline mpi_limb_t mpihelp_sub(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, [all …]
|
H A D | mpi-inline.h | 25 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_add_1() 44 mpi_size_t i; /* copy the rest */ in mpihelp_add_1() 52 mpihelp_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, in mpihelp_add() 53 mpi_ptr_t s2_ptr, mpi_size_t s2_size) in mpihelp_add() 68 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_sub_1() 87 mpi_size_t i; in mpihelp_sub_1() 95 mpihelp_sub(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, in mpihelp_sub() 96 mpi_ptr_t s2_ptr, mpi_size_t s2_size) in mpihelp_sub()
|
H A D | mpih-mul.c | 55 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) in mul_n_basecase() 57 mpi_size_t i; in mul_n_basecase() 96 mpi_size_t size, mpi_ptr_t tspace) in mul_n() 109 mpi_size_t esize = size - 1; /* even size */ in mul_n() 133 mpi_size_t hsize = size >> 1; in mul_n() 207 void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size) in mpih_sqr_n_basecase() 209 mpi_size_t i; in mpih_sqr_n_basecase() 245 mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, mpi_ptr_t tspace) in mpih_sqr_n() 258 mpi_size_t esize = size - 1; /* even size */ in mpih_sqr_n() 268 mpi_size_t hsize = size >> 1; in mpih_sqr_n() [all …]
|
H A D | mpih-div.c | 29 mpihelp_mod_1(mpi_ptr_t dividend_ptr, mpi_size_t dividend_size, in mpihelp_mod_1() 32 mpi_size_t i; in mpihelp_mod_1() 189 mpihelp_divrem(mpi_ptr_t qp, mpi_size_t qextra_limbs, in mpihelp_divrem() 190 mpi_ptr_t np, mpi_size_t nsize, mpi_ptr_t dp, mpi_size_t dsize) in mpihelp_divrem() 206 mpi_size_t i; in mpihelp_divrem() 232 mpi_size_t i; in mpihelp_divrem() 297 mpi_size_t i; in mpihelp_divrem() 380 mpi_ptr_t dividend_ptr, mpi_size_t dividend_size, in mpihelp_divmod_1() 383 mpi_size_t i; in mpihelp_divmod_1()
|
H A D | mpi-div.c | 65 mpi_size_t nsize = num->nlimbs; in mpi_tdiv_qr() 66 mpi_size_t dsize = den->nlimbs; in mpi_tdiv_qr() 67 mpi_size_t qsize, rsize; in mpi_tdiv_qr() 68 mpi_size_t sign_remainder = num->sign; in mpi_tdiv_qr() 69 mpi_size_t sign_quotient = num->sign ^ den->sign; in mpi_tdiv_qr()
|
H A D | mpi-pow.c | 31 mpi_size_t esize, msize, bsize, rsize; in mpi_powm() 33 mpi_size_t size; in mpi_powm() 37 mpi_size_t tsize = 0; /* to avoid compiler warning */ in mpi_powm() 149 mpi_size_t i; in mpi_powm() 179 mpi_size_t xsize; in mpi_powm()
|
H A D | mpih-cmp.c | 25 int mpihelp_cmp(mpi_ptr_t op1_ptr, mpi_ptr_t op2_ptr, mpi_size_t size) in mpihelp_cmp() 27 mpi_size_t i; in mpihelp_cmp()
|
H A D | generic_mpih-mul1.c | 20 mpihelp_mul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, in mpihelp_mul_1() 24 mpi_size_t j; in mpihelp_mul_1()
|
H A D | generic_mpih-sub1.c | 21 mpi_ptr_t s2_ptr, mpi_size_t size) in mpihelp_sub_n() 24 mpi_size_t j; in mpihelp_sub_n()
|
H A D | generic_mpih-add1.c | 22 mpi_ptr_t s2_ptr, mpi_size_t size) in mpihelp_add_n() 25 mpi_size_t j; in mpihelp_add_n()
|
H A D | generic_mpih-lshift.c | 28 mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt) in mpihelp_lshift() 32 mpi_size_t i; in mpihelp_lshift()
|
H A D | generic_mpih-rshift.c | 29 mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned cnt) in mpihelp_rshift() 33 mpi_size_t i; in mpihelp_rshift()
|
H A D | generic_mpih-mul3.c | 21 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_submul_1() 24 mpi_size_t j; in mpihelp_submul_1()
|
H A D | generic_mpih-mul2.c | 21 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_addmul_1() 24 mpi_size_t j; in mpihelp_addmul_1()
|
H A D | mpi-cmp.c | 50 mpi_size_t usize, vsize; in mpi_cmp()
|
H A D | mpi-mul.c | 18 mpi_size_t usize, vsize, wsize; in mpi_mul()
|
H A D | mpi-add.c | 19 mpi_size_t usize, vsize, wsize; in mpi_add()
|
H A D | mpi-bit.c | 105 mpi_size_t xsize; in mpi_rshift()
|