Home
last modified time | relevance | path

Searched refs:BITS_PER_MPI_LIMB (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.6/lib/crypto/mpi/
Dmpi-bit.c51 n = BITS_PER_MPI_LIMB; in mpi_get_nbits()
52 n = BITS_PER_MPI_LIMB - n + (a->nlimbs - 1) * BITS_PER_MPI_LIMB; in mpi_get_nbits()
67 limbno = n / BITS_PER_MPI_LIMB; in mpi_test_bit()
68 bitno = n % BITS_PER_MPI_LIMB; in mpi_test_bit()
84 limbno = n / BITS_PER_MPI_LIMB; in mpi_set_bit()
85 bitno = n % BITS_PER_MPI_LIMB; in mpi_set_bit()
103 limbno = n / BITS_PER_MPI_LIMB; in mpi_set_highbit()
104 bitno = n % BITS_PER_MPI_LIMB; in mpi_set_highbit()
113 for (bitno++; bitno < BITS_PER_MPI_LIMB; bitno++) in mpi_set_highbit()
126 limbno = n / BITS_PER_MPI_LIMB; in mpi_clear_highbit()
[all …]
Dmpih-div.c71 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_mod_1()
83 | (n0 >> (BITS_PER_MPI_LIMB - normalization_steps))), in mpihelp_mod_1()
130 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_mod_1()
142 | (n0 >> (BITS_PER_MPI_LIMB - normalization_steps))), in mpihelp_mod_1()
420 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_divmod_1()
432 | (n0 >> (BITS_PER_MPI_LIMB - normalization_steps))), in mpihelp_divmod_1()
478 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_divmod_1()
490 | (n0 >> (BITS_PER_MPI_LIMB - normalization_steps))), in mpihelp_divmod_1()
Dgeneric_mpih-lshift.c37 sh_2 = BITS_PER_MPI_LIMB - sh_1; in mpihelp_lshift()
Dgeneric_mpih-rshift.c38 sh_2 = BITS_PER_MPI_LIMB - sh_1; in mpihelp_rshift()
Dmpi-pow.c165 c = BITS_PER_MPI_LIMB - 1 - c; in mpi_powm()
252 c = BITS_PER_MPI_LIMB; in mpi_powm()
Dec.c197 #define LIMB_SIZE_25519 ((256+BITS_PER_MPI_LIMB-1)/BITS_PER_MPI_LIMB)
218 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_addm_25519()
239 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_subm_25519()
261 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_mulm_25519()
264 mpihelp_rshift(m, m, LIMB_SIZE_25519+1, (255 % BITS_PER_MPI_LIMB)); in ec_mulm_25519()
280 msb = (wp[LIMB_SIZE_25519-1] >> (255 % BITS_PER_MPI_LIMB)); in ec_mulm_25519()
282 wp[LIMB_SIZE_25519-1] &= ~((mpi_limb_t)1 << (255 % BITS_PER_MPI_LIMB)); in ec_mulm_25519()
303 #define LIMB_SIZE_448 ((448+BITS_PER_MPI_LIMB-1)/BITS_PER_MPI_LIMB)
Dmpi-internal.h213 #define W_TYPE_SIZE BITS_PER_MPI_LIMB
/Linux-v6.6/include/linux/
Dmpi.h24 #define BITS_PER_MPI_LIMB BITS_PER_LONG macro
53 return mpi_alloc((nbits + BITS_PER_MPI_LIMB - 1) / BITS_PER_MPI_LIMB); in mpi_new()