Searched refs:BYTES_PER_MPI_LIMB (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/lib/mpi/
H A Dmpicoder.c55 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); mpi_read_raw_data()
64 i = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB; mpi_read_raw_data()
65 i %= BYTES_PER_MPI_LIMB; mpi_read_raw_data()
68 for (; i < BYTES_PER_MPI_LIMB; i++) { mpi_read_raw_data()
100 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); mpi_read_from_buffer()
104 i = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB; mpi_read_from_buffer()
105 i %= BYTES_PER_MPI_LIMB; mpi_read_from_buffer()
111 for (; i < BYTES_PER_MPI_LIMB; i++) { mpi_read_from_buffer()
181 #if BYTES_PER_MPI_LIMB == 4 mpi_read_buffer()
186 #elif BYTES_PER_MPI_LIMB == 8 mpi_read_buffer()
267 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); mpi_set_buffer()
272 for (i = 0, p = buffer + nbytes - 1; p >= buffer + BYTES_PER_MPI_LIMB;) { mpi_set_buffer()
273 #if BYTES_PER_MPI_LIMB == 4 mpi_set_buffer()
278 #elif BYTES_PER_MPI_LIMB == 8 mpi_set_buffer()
293 #if BYTES_PER_MPI_LIMB == 4 mpi_set_buffer()
301 #elif BYTES_PER_MPI_LIMB == 8 mpi_set_buffer()
373 #if BYTES_PER_MPI_LIMB == 4 mpi_write_to_sgl()
378 #elif BYTES_PER_MPI_LIMB == 8 mpi_write_to_sgl()
483 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB);
498 x = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB;
499 x %= BYTES_PER_MPI_LIMB;
506 if (sg_is_last(sg) && (len % BYTES_PER_MPI_LIMB)) for_each_sg()
507 len += BYTES_PER_MPI_LIMB - (len % BYTES_PER_MPI_LIMB); for_each_sg()
512 if (((z + x + 1) % BYTES_PER_MPI_LIMB) == 0) { for_each_sg()
/linux-4.4.14/include/linux/
H A Dmpi.h36 #define BYTES_PER_MPI_LIMB (BITS_PER_LONG / 8) macro
156 return a->nlimbs * BYTES_PER_MPI_LIMB; mpi_get_size()
/linux-4.4.14/lib/
H A Ddigsig.c140 if (mpi_get_nlimbs(res) * BYTES_PER_MPI_LIMB > mlen) { digsig_verify_rsa()

Completed in 109 milliseconds