Home
last modified time | relevance | path

Searched refs:nblimbs (Results 1 – 2 of 2) sorted by relevance

/mbedtls-3.5.0/library/
Dbignum.c99 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()
[all …]
/mbedtls-3.5.0/include/mbedtls/
Dbignum.h262 int mbedtls_mpi_grow(mbedtls_mpi *X, size_t nblimbs);
279 int mbedtls_mpi_shrink(mbedtls_mpi *X, size_t nblimbs);