/linux-6.6.21/lib/crypto/mpi/ |
D | mpi-internal.h | 52 typedef mpi_limb_t *mpi_ptr_t; /* pointer to a limb */ typedef 142 mpi_ptr_t mpi_alloc_limb_space(unsigned nlimbs); 143 void mpi_free_limb_space(mpi_ptr_t a); 144 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs); 146 static inline mpi_limb_t mpihelp_add_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, 148 mpi_limb_t mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, 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); 153 static inline mpi_limb_t mpihelp_sub_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, [all …]
|
D | mpi-inline.h | 24 mpihelp_add_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, 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() 67 mpihelp_sub_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, 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() 95 mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, in mul_n() 96 mpi_size_t size, mpi_ptr_t tspace) 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() 245 mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, mpi_ptr_t tspace) in mpih_sqr_n() 321 void mpihelp_mul_n(mpi_ptr_t prodp, in mpihelp_mul_n() 322 mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) in mpihelp_mul_n() 328 mpi_ptr_t tspace; in mpihelp_mul_n() 337 mpi_ptr_t tspace; in mpihelp_mul_n() 346 mpihelp_mul_karatsuba_case(mpi_ptr_t prodp, in mpihelp_mul_karatsuba_case() [all …]
|
D | generic_mpih-sub1.c | 20 mpihelp_sub_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_sub_n() 21 mpi_ptr_t s2_ptr, mpi_size_t size) in mpihelp_sub_n()
|
D | generic_mpih-add1.c | 21 mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_add_n() 22 mpi_ptr_t s2_ptr, mpi_size_t size) in mpihelp_add_n()
|
D | mpi-pow.c | 26 mpi_ptr_t mp_marker = NULL, bp_marker = NULL, ep_marker = NULL; in mpi_powm() 28 mpi_ptr_t xp_marker = NULL; in mpi_powm() 29 mpi_ptr_t tspace = NULL; in mpi_powm() 30 mpi_ptr_t rp, ep, mp, bp; in mpi_powm() 150 mpi_ptr_t xp; in mpi_powm() 179 mpi_ptr_t tp; in mpi_powm()
|
D | mpi-div.c | 85 mpi_ptr_t np, dp; in mpi_tdiv_qr() 86 mpi_ptr_t qp, rp; in mpi_tdiv_qr() 94 mpi_ptr_t marker[5]; in mpi_tdiv_qr() 167 mpi_ptr_t tp; in mpi_tdiv_qr() 193 mpi_ptr_t tp; 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()
|
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()
|
D | mpih-div.c | 29 mpihelp_mod_1(mpi_ptr_t dividend_ptr, mpi_size_t dividend_size, 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() 379 mpihelp_divmod_1(mpi_ptr_t quot_ptr, in mpihelp_divmod_1() 380 mpi_ptr_t dividend_ptr, mpi_size_t dividend_size, in mpihelp_divmod_1()
|
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()
|
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()
|
D | generic_mpih-mul3.c | 20 mpihelp_submul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_submul_1()
|
D | generic_mpih-mul2.c | 20 mpihelp_addmul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_addmul_1()
|
D | mpiutil.c | 114 mpi_ptr_t mpi_alloc_limb_space(unsigned nlimbs) in mpi_alloc_limb_space() 124 void mpi_free_limb_space(mpi_ptr_t a) in mpi_free_limb_space() 132 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs) in mpi_assign_limb_space() 252 mpi_ptr_t wp, up; in mpi_set()
|
D | mpi-mul.c | 19 mpi_ptr_t up, vp, wp; in mpi_mul() 23 mpi_ptr_t tmp_limb = NULL; in mpi_mul()
|
D | mpi-bit.c | 160 mpi_ptr_t ap = a->d; in mpi_rshift_limbs() 253 mpi_ptr_t ap; in mpi_lshift_limbs() 285 mpi_ptr_t xp, ap; in mpi_lshift()
|
D | mpi-add.c | 22 mpi_ptr_t wp, up; in mpi_add_ui() 69 mpi_ptr_t wp, up, vp; in mpi_add()
|
D | ec.c | 182 static void mpih_set_cond(mpi_ptr_t wp, mpi_ptr_t up, in mpih_set_cond() 201 mpi_ptr_t wp, up, vp; in ec_addm_25519() 223 mpi_ptr_t wp, up, vp; in ec_subm_25519() 244 mpi_ptr_t wp, up, vp; in ec_mulm_25519() 308 mpi_ptr_t wp, up, vp; in ec_addm_448() 328 mpi_ptr_t wp, up, vp; in ec_subm_448() 348 mpi_ptr_t wp, up, vp; in ec_mulm_448()
|