Home
last modified time | relevance | path

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

/net-tools-3.5.0/mbedtls-2.4.0/include/mbedtls/
Dbignum.h177 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs );
188 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs );
/net-tools-3.5.0/mbedtls-2.4.0/library/
Dbignum.c114 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs ) in mbedtls_mpi_grow() argument
118 if( nblimbs > MBEDTLS_MPI_MAX_LIMBS ) in mbedtls_mpi_grow()
121 if( X->n < nblimbs ) in mbedtls_mpi_grow()
123 if( ( p = (mbedtls_mpi_uint*)mbedtls_calloc( nblimbs, ciL ) ) == NULL ) in mbedtls_mpi_grow()
133 X->n = nblimbs; in mbedtls_mpi_grow()
144 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs ) in mbedtls_mpi_shrink() argument
150 if( X->n <= nblimbs ) in mbedtls_mpi_shrink()
151 return( mbedtls_mpi_grow( X, nblimbs ) ); in mbedtls_mpi_shrink()
158 if( i < nblimbs ) in mbedtls_mpi_shrink()
159 i = nblimbs; in mbedtls_mpi_shrink()
[all …]