Lines Matching refs:limbs
174 static int mbedtls_mpi_resize_clear(mbedtls_mpi *X, size_t limbs) in mbedtls_mpi_resize_clear() argument
176 if (limbs == 0) { in mbedtls_mpi_resize_clear()
179 } else if (X->n == limbs) { in mbedtls_mpi_resize_clear()
180 memset(X->p, 0, limbs * ciL); in mbedtls_mpi_resize_clear()
185 return mbedtls_mpi_grow(X, limbs); in mbedtls_mpi_resize_clear()
683 const size_t limbs = CHARS_TO_LIMBS(buflen); in mbedtls_mpi_read_binary_le() local
686 MBEDTLS_MPI_CHK(mbedtls_mpi_resize_clear(X, limbs)); in mbedtls_mpi_read_binary_le()
709 const size_t limbs = CHARS_TO_LIMBS(buflen); in mbedtls_mpi_read_binary() local
715 MBEDTLS_MPI_CHK(mbedtls_mpi_resize_clear(X, limbs)); in mbedtls_mpi_read_binary()
2071 const size_t limbs = CHARS_TO_LIMBS(size); in mbedtls_mpi_fill_random() local
2077 MBEDTLS_MPI_CHK(mbedtls_mpi_resize_clear(X, limbs)); in mbedtls_mpi_fill_random()