Lines Matching defs:limbs
206 * Enlarge to the specified number of limbs
237 * while keeping at least the specified number of limbs
248 /* Actually resize up if there are currently fewer than nblimbs limbs. */
282 /* Resize X to have exactly n limbs and set it to 0. */
283 static int mbedtls_mpi_resize_clear(mbedtls_mpi *X, size_t limbs)
285 if (limbs == 0) {
288 } else if (X->n == limbs) {
289 memset(X->p, 0, limbs * ciL);
294 return mbedtls_mpi_grow(X, limbs);
790 * number of limbs (in particular, it does not skip 0s in the input).
796 const size_t limbs = CHARS_TO_LIMBS(buflen);
798 /* Ensure that target MPI has exactly the necessary number of limbs */
799 MBEDTLS_MPI_CHK(mbedtls_mpi_resize_clear(X, limbs));
817 * number of limbs (in particular, it does not skip 0s in the input).
822 const size_t limbs = CHARS_TO_LIMBS(buflen);
824 /* Ensure that target MPI has exactly the necessary number of limbs */
825 MBEDTLS_MPI_CHK(mbedtls_mpi_resize_clear(X, limbs));
1033 /* j is the number of non-zero limbs of B. Add those to X. */
1079 /* Set the high limbs of X to match A. Don't touch the lower limbs
1268 * number of limbs as A and the call to grow() is not required since
1409 * T2 is used for comparison only and the 3 limbs are assigned explicitly,
1681 * - The core functions will not touch the limbs of X above N->n. The
1682 * result will be correct if those limbs are 0, which the mod call
1684 * - Also, X must have at least as many limbs as N for the calls to the
1840 const size_t limbs = CHARS_TO_LIMBS(size);
1842 /* Ensure that target MPI has exactly the necessary number of limbs */
1843 MBEDTLS_MPI_CHK(mbedtls_mpi_resize_clear(X, limbs));
1867 /* Ensure that target MPI has exactly the same number of limbs