Home
last modified time | relevance | path

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

/openbmc/linux/lib/crypto/mpi/
H A Dmpicoder.c66 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()
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()
254 #if BYTES_PER_MPI_LIMB == 4 in mpi_read_buffer()
283 #if BYTES_PER_MPI_LIMB == 4 in mpi_read_buffer()
358 #if BYTES_PER_MPI_LIMB == 4 in mpi_write_to_sgl()
400 #if BYTES_PER_MPI_LIMB == 4 in mpi_write_to_sgl()
502 z = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB; in mpi_read_raw_from_sgl()
[all …]
H A 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()
/openbmc/linux/include/linux/
H A Dmpi.h23 #define BYTES_PER_MPI_LIMB (BITS_PER_LONG / 8) macro
276 return a->nlimbs * BYTES_PER_MPI_LIMB; in mpi_get_size()
/openbmc/linux/lib/
H A Ddigsig.c149 if (mpi_get_nlimbs(res) * BYTES_PER_MPI_LIMB > mlen) { in digsig_verify_rsa()