/linux-6.6.21/lib/crypto/mpi/ |
D | mpi-internal.h | 53 typedef int mpi_size_t; /* (must be a signed type) */ typedef 64 mpi_size_t _i; \ 71 mpi_size_t _i; \ 79 mpi_size_t _i; \ 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_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, 151 mpi_ptr_t s2_ptr, mpi_size_t s2_size); 154 mpi_size_t s1_size, mpi_limb_t s2_limb); 156 mpi_ptr_t s2_ptr, mpi_size_t size); [all …]
|
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()
|
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 …]
|
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()
|
D | mpi-div.c | 87 mpi_size_t nsize = num->nlimbs; in mpi_tdiv_qr() 88 mpi_size_t dsize = den->nlimbs; in mpi_tdiv_qr() 89 mpi_size_t qsize, rsize; in mpi_tdiv_qr() 90 mpi_size_t sign_remainder = num->sign; in mpi_tdiv_qr() 91 mpi_size_t sign_quotient = num->sign ^ den->sign; in mpi_tdiv_qr()
|
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()
|
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()
|
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() 180 mpi_size_t xsize; in mpi_powm()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
D | mpi-cmp.c | 50 mpi_size_t usize; in do_mpi_cmp() 51 mpi_size_t vsize; in do_mpi_cmp()
|
D | mpiutil.c | 253 mpi_size_t usize = u->nlimbs; in mpi_set() 302 mpi_size_t i; in mpi_swap_cond() 303 mpi_size_t nlimbs; in mpi_swap_cond()
|
D | mpi-add.c | 23 mpi_size_t usize, wsize; in mpi_add_ui() 70 mpi_size_t usize, vsize, wsize; in mpi_add()
|
D | mpi-bit.c | 161 mpi_size_t n = a->nlimbs; in mpi_rshift_limbs() 180 mpi_size_t xsize; in mpi_rshift()
|
D | mpi-mul.c | 18 mpi_size_t usize, vsize, wsize; in mpi_mul()
|
D | ec.c | 183 mpi_size_t usize, unsigned long set) in mpih_set_cond() 185 mpi_size_t i; in mpih_set_cond() 202 mpi_size_t wsize = LIMB_SIZE_25519; in ec_addm_25519() 224 mpi_size_t wsize = LIMB_SIZE_25519; in ec_subm_25519() 245 mpi_size_t wsize = LIMB_SIZE_25519; in ec_mulm_25519() 309 mpi_size_t wsize = LIMB_SIZE_448; in ec_addm_448() 329 mpi_size_t wsize = LIMB_SIZE_448; in ec_subm_448() 349 mpi_size_t wsize = LIMB_SIZE_448; in ec_mulm_448() 1257 mpi_size_t rsize; in mpi_ec_mul_point()
|