Lines Matching refs:limbs
12 * number of digits. Digits in this base are called *limbs*.
24 * limbs. A limb has the type #mbedtls_mpi_uint. Unless otherwise specified:
36 * - **Bignum sizes**: bignum sizes are always expressed in limbs.
38 * \p limbs parameter that applies to all parameters that are limb arrays.
84 * Convert between bits/chars and number of limbs
107 * \note This function returns 0 if all the limbs of \p A are 0.
110 * \param A_limbs The number of limbs of \p A.
120 * \param A_limbs The number of limbs of \p A.
132 * \param A_limbs The number of limbs of \p A.
145 * \param A The left-hand MPI. This must point to an array of limbs
147 * \param B The right-hand MPI. This must point to an array of limbs
149 * \param limbs The number of limbs in \p A and \p B.
157 size_t limbs);
164 * This must be initialized. Must have enough limbs to
167 * \param limbs The number of limbs of \p A.
178 size_t limbs,
189 * \param limbs The number of limbs of \p X and \p Y.
198 size_t limbs,
203 * The MPI needs to have enough limbs to store the full value (including any
207 * \param X_limbs The number of limbs of \p X.
222 * The MPI needs to have enough limbs to store the full value (including any
228 * \param X_limbs The number of limbs of \p X.
249 * \param A_limbs The number of limbs of \p A.
269 * \param A_limbs The number of limbs of \p A.
288 * of \p count (and of course \p limbs).
291 * \param limbs The number of limbs of \p X. This must be at least 1.
294 void mbedtls_mpi_core_shift_r(mbedtls_mpi_uint *X, size_t limbs,
304 * of \p count (and of course \p limbs).
306 * \param limbs The number of limbs of \p X. This must be at least 1.
309 void mbedtls_mpi_core_shift_l(mbedtls_mpi_uint *X, size_t limbs,
317 * This function operates modulo `2^(biL*limbs)` and returns the carry
325 * \param limbs Number of limbs of \p X, \p A and \p B.
327 * \return 1 if `A + B >= 2^(biL*limbs)`, 0 otherwise.
332 size_t limbs);
346 * This function operates modulo `2^(biL*limbs)`.
354 * \param limbs Number of limbs of \p X and \p A.
362 * \return 1 if `X + cond * A >= 2^(biL*limbs)`, 0 otherwise.
366 size_t limbs,
373 * This function operates modulo `2^(biL*limbs)` and returns the carry
382 * \param limbs Number of limbs of \p X, \p A and \p B.
390 size_t limbs);
402 * \param X_limbs The number of limbs of \p X. This must be
408 * \param A_limbs The number of limbs of \p A.
428 * \param A_limbs The number of limbs in \p A.
431 * \param B_limbs The number of limbs in \p B.
465 * Must have the same number of limbs as \p N.
467 * \param[in] B_limbs The number of limbs in \p B.
471 * of limbs as \p A.
474 * \param[in] AN_limbs The number of limbs in \p X, \p A and \p N.
477 * \param[in,out] T Temporary storage of size at least 2*AN_limbs+1 limbs.
512 * buffer of at least \p limbs limbs.
514 * array of \p count elements of \p limbs limbs each.
515 * \param limbs The number of limbs in each table entry.
522 size_t limbs,
531 * \param X_limbs The number of limbs of \p X.
563 * \param X The destination MPI, with \p limbs limbs.
566 * \param N The upper bound of the range, exclusive, with \p limbs limbs.
569 * \param limbs The number of limbs of \p N and \p X.
584 size_t limbs,
589 * \brief Returns the number of limbs of working memory required for
596 * \param AN_limbs The number of limbs in the input `A` and the modulus `N`
599 * \param E_limbs The number of limbs in the exponent `E` that will be given
602 * \return The number of limbs of working memory required by
619 * \param AN_limbs The number of limbs in \p X, \p A, \p N, \p RR.
621 * \param E_limbs The number of limbs in \p E.
624 * \param[in,out] T Temporary storage of at least the number of limbs returned
648 * \param limbs Number of limbs of \p X and \p A.
656 size_t limbs);
660 * respect to the value (but not with respect to the number of limbs).
663 * \param limbs Number of limbs in \p A.
669 size_t limbs);
672 * \brief Returns the number of limbs of working memory required for
675 * \param AN_limbs The number of limbs in the input `A` and the modulus `N`
680 * \return The number of limbs of working memory required by
701 * Must have the same number of limbs as \p A.
703 * Must have the same number of limbs as the modulus.
705 * the base `R` = 2^(biL*N->limbs).
706 * \param[in] AN_limbs The number of limbs in \p X, \p A, \p N and \p rr.
713 * limbs.
739 * Must have the same number of limbs as \p A.
741 * Must have the same number of limbs as the modulus.
743 * the base `R` = 2^(biL*N->limbs).
744 * \param[in] AN_limbs The number of limbs in \p X, \p A and \p N.
750 * limbs.