/linux-6.6.21/lib/crypto/mpi/ |
D | mpi-internal.h | 52 typedef mpi_limb_t *mpi_ptr_t; /* pointer to a limb */ 117 mpi_limb_t _ql __maybe_unused; \ 118 mpi_limb_t _q, _r; \ 119 mpi_limb_t _xh, _xl; \ 146 static inline mpi_limb_t mpihelp_add_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, 147 mpi_size_t s1_size, mpi_limb_t s2_limb); 148 mpi_limb_t mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, 150 static inline mpi_limb_t mpihelp_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, 153 static inline mpi_limb_t mpihelp_sub_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, 154 mpi_size_t s1_size, mpi_limb_t s2_limb); [all …]
|
D | mpih-div.c | 28 mpi_limb_t 30 mpi_limb_t divisor_limb) in mpihelp_mod_1() 33 mpi_limb_t n1, n0, r; in mpihelp_mod_1() 34 mpi_limb_t dummy __maybe_unused; in mpihelp_mod_1() 54 mpi_limb_t divisor_limb_inverted; in mpihelp_mod_1() 65 divisor_limb_inverted = ~(mpi_limb_t)0; in mpihelp_mod_1() 92 mpi_limb_t divisor_limb_inverted; in mpihelp_mod_1() 101 divisor_limb_inverted = ~(mpi_limb_t)0; in mpihelp_mod_1() 188 mpi_limb_t 192 mpi_limb_t most_significant_q_limb = 0; in mpihelp_divrem() [all …]
|
D | mpi-inline.h | 23 G10_MPI_INLINE_DECL mpi_limb_t 25 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_add_1() 27 mpi_limb_t x; in mpihelp_add_1() 51 G10_MPI_INLINE_DECL mpi_limb_t 55 mpi_limb_t cy = 0; in mpihelp_add() 66 G10_MPI_INLINE_DECL mpi_limb_t 68 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_sub_1() 70 mpi_limb_t x; in mpihelp_sub_1() 94 G10_MPI_INLINE_DECL mpi_limb_t 98 mpi_limb_t cy = 0; in mpihelp_sub()
|
D | generic_mpih-mul3.c | 19 mpi_limb_t 21 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_submul_1() 23 mpi_limb_t cy_limb; in mpihelp_submul_1() 25 mpi_limb_t prod_high, prod_low; in mpihelp_submul_1() 26 mpi_limb_t x; in mpihelp_submul_1()
|
D | generic_mpih-mul2.c | 19 mpi_limb_t 21 mpi_size_t s1_size, mpi_limb_t s2_limb) in mpihelp_addmul_1() 23 mpi_limb_t cy_limb; in mpihelp_addmul_1() 25 mpi_limb_t prod_high, prod_low; in mpihelp_addmul_1() 26 mpi_limb_t x; in mpihelp_addmul_1()
|
D | generic_mpih-mul1.c | 19 mpi_limb_t 21 mpi_limb_t s2_limb) in mpihelp_mul_1() 23 mpi_limb_t cy_limb; in mpihelp_mul_1() 25 mpi_limb_t prod_high, prod_low; in mpihelp_mul_1()
|
D | mpih-mul.c | 54 static mpi_limb_t 58 mpi_limb_t cy; in mul_n_basecase() 59 mpi_limb_t v_limb; in mul_n_basecase() 110 mpi_limb_t cy_limb; in mul_n() 134 mpi_limb_t cy; in mul_n() 210 mpi_limb_t cy_limb; in mpih_sqr_n_basecase() 211 mpi_limb_t v_limb; in mpih_sqr_n_basecase() 259 mpi_limb_t cy_limb; in mpih_sqr_n() 269 mpi_limb_t cy; in mpih_sqr_n() 351 mpi_limb_t cy; in mpihelp_mul_karatsuba_case() [all …]
|
D | generic_mpih-rshift.c | 28 mpi_limb_t 31 mpi_limb_t high_limb, low_limb; in mpihelp_rshift() 34 mpi_limb_t retval; in mpihelp_rshift()
|
D | generic_mpih-lshift.c | 27 mpi_limb_t 30 mpi_limb_t high_limb, low_limb; in mpihelp_lshift() 33 mpi_limb_t retval; in mpihelp_lshift()
|
D | mpiutil.c | 116 size_t len = nlimbs * sizeof(mpi_limb_t); in mpi_alloc_limb_space() 151 p = kcalloc(nlimbs, sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize() 154 memcpy(p, a->d, a->alloced * sizeof(mpi_limb_t)); in mpi_resize() 158 a->d = kcalloc(nlimbs, sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize() 304 mpi_limb_t mask = ((mpi_limb_t)0) - swap; in mpi_swap_cond() 305 mpi_limb_t x; in mpi_swap_cond()
|
D | mpi-sub-ui.c | 53 mpi_limb_t cy; in mpi_sub_ui() 55 cy = mpihelp_add_1(w->d, u->d, u->nlimbs, (mpi_limb_t) vval); in mpi_sub_ui() 68 mpihelp_sub_1(w->d, u->d, u->nlimbs, (mpi_limb_t) vval); in mpi_sub_ui()
|
D | ec.c | 186 mpi_limb_t mask = ((mpi_limb_t)0) - set; in mpih_set_cond() 187 mpi_limb_t x; in mpih_set_cond() 203 mpi_limb_t n[LIMB_SIZE_25519]; in ec_addm_25519() 204 mpi_limb_t borrow; in ec_addm_25519() 218 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_addm_25519() 225 mpi_limb_t n[LIMB_SIZE_25519]; in ec_subm_25519() 226 mpi_limb_t borrow; in ec_subm_25519() 239 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_subm_25519() 246 mpi_limb_t n[LIMB_SIZE_25519*2]; in ec_mulm_25519() 247 mpi_limb_t m[LIMB_SIZE_25519+1]; in ec_mulm_25519() [all …]
|
D | generic_mpih-sub1.c | 19 mpi_limb_t 23 mpi_limb_t x, y, cy; in mpihelp_sub_n()
|
D | generic_mpih-add1.c | 20 mpi_limb_t 24 mpi_limb_t x, y, cy; in mpihelp_add_n()
|
D | mpi-div.c | 93 mpi_limb_t q_limb; in mpi_tdiv_qr() 131 mpi_limb_t rlimb; in mpi_tdiv_qr() 168 mpi_limb_t nlimb; in mpi_tdiv_qr()
|
D | mpi-pow.c | 152 mpi_limb_t e; in mpi_powm() 153 mpi_limb_t carry_limb; in mpi_powm() 218 mpi_limb_t tmp; in mpi_powm()
|
D | mpi-bit.c | 24 #define A_LIMB_1 ((mpi_limb_t) 1) 47 mpi_limb_t alimb = a->d[a->nlimbs - 1]; in mpi_get_nbits() 65 mpi_limb_t limb; in mpi_test_bit()
|
D | mpicoder.c | 41 mpi_limb_t a; in mpi_read_raw_data() 122 mpi_limb_t a; in mpi_fromstr() 221 mpi_limb_t alimb; in count_lzeros() 227 lzeros += sizeof(mpi_limb_t); in count_lzeros() 444 mpi_limb_t a; in mpi_read_raw_from_sgl()
|
D | mpi-add.c | 43 mpi_limb_t cy; in mpi_add_ui() 122 mpi_limb_t cy = mpihelp_add(wp, up, usize, vp, vsize); in mpi_add()
|
D | mpih-cmp.c | 28 mpi_limb_t op1_word, op2_word; in mpihelp_cmp()
|
D | mpi-cmp.c | 25 mpi_limb_t limb = v; in mpi_cmp_ui()
|
D | mpi-mul.c | 20 mpi_limb_t cy; in mpi_mul()
|
/linux-6.6.21/include/linux/ |
D | mpi.h | 26 typedef unsigned long int mpi_limb_t; typedef 37 mpi_limb_t *d; /* array with the limbs */
|