Lines Matching refs:nblimbs
99 int mbedtls_mpi_grow(mbedtls_mpi *X, size_t nblimbs) in mbedtls_mpi_grow() argument
104 if (nblimbs > MBEDTLS_MPI_MAX_LIMBS) { in mbedtls_mpi_grow()
108 if (X->n < nblimbs) { in mbedtls_mpi_grow()
109 if ((p = (mbedtls_mpi_uint *) mbedtls_calloc(nblimbs, ciL)) == NULL) { in mbedtls_mpi_grow()
119 X->n = nblimbs; in mbedtls_mpi_grow()
130 int mbedtls_mpi_shrink(mbedtls_mpi *X, size_t nblimbs) in mbedtls_mpi_shrink() argument
136 if (nblimbs > MBEDTLS_MPI_MAX_LIMBS) { in mbedtls_mpi_shrink()
141 if (X->n <= nblimbs) { in mbedtls_mpi_shrink()
142 return mbedtls_mpi_grow(X, nblimbs); in mbedtls_mpi_shrink()
153 if (i < nblimbs) { in mbedtls_mpi_shrink()
154 i = nblimbs; in mbedtls_mpi_shrink()
1657 size_t i, j, nblimbs; in mbedtls_mpi_exp_mod() local
1830 nblimbs = E->n; in mbedtls_mpi_exp_mod()
1837 if (nblimbs == 0) { in mbedtls_mpi_exp_mod()
1841 nblimbs--; in mbedtls_mpi_exp_mod()
1848 ei = (E->p[nblimbs] >> bufsize) & 1; in mbedtls_mpi_exp_mod()