Home
last modified time | relevance | path

Searched refs:BYTES_PER_MPI_LIMB (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/lib/mpi/
Dmpicoder.c57 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); in mpi_read_raw_data()
66 i = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB; in mpi_read_raw_data()
67 i %= BYTES_PER_MPI_LIMB; in mpi_read_raw_data()
70 for (; i < BYTES_PER_MPI_LIMB; i++) { in mpi_read_raw_data()
143 nlimbs = (nbytes+BYTES_PER_MPI_LIMB-1) / BYTES_PER_MPI_LIMB; in mpi_fromstr()
148 i = BYTES_PER_MPI_LIMB - (nbytes % BYTES_PER_MPI_LIMB); in mpi_fromstr()
149 i %= BYTES_PER_MPI_LIMB; in mpi_fromstr()
154 for (; i < BYTES_PER_MPI_LIMB; i++) { in mpi_fromstr()
254 #if BYTES_PER_MPI_LIMB == 4 in mpi_read_buffer()
256 #elif BYTES_PER_MPI_LIMB == 8 in mpi_read_buffer()
[all …]
Dec.c260 memcpy(wp, n, wsize * BYTES_PER_MPI_LIMB); in ec_mulm_25519()
263 memcpy(m, n+LIMB_SIZE_25519-1, (wsize+1) * BYTES_PER_MPI_LIMB); in ec_mulm_25519()
266 memcpy(n, m, wsize * BYTES_PER_MPI_LIMB); in ec_mulm_25519()
279 memset(m, 0, wsize * BYTES_PER_MPI_LIMB); in ec_mulm_25519()
427 memset(n, 0, wsize * BYTES_PER_MPI_LIMB); in ec_mulm_448()
437 memset(n, 0, wsize * BYTES_PER_MPI_LIMB); in ec_mulm_448()
/kernel/linux/linux-5.10/include/linux/
Dmpi.h23 #define BYTES_PER_MPI_LIMB (BITS_PER_LONG / 8) macro
276 return a->nlimbs * BYTES_PER_MPI_LIMB; in mpi_get_size()
/kernel/linux/linux-5.10/lib/
Ddigsig.c149 if (mpi_get_nlimbs(res) * BYTES_PER_MPI_LIMB > mlen) { in digsig_verify_rsa()