Lines Matching refs:ciL
66 #define ciL (sizeof(mbedtls_mpi_uint)) /* chars in limb */ macro
67 #define biL (ciL << 3) /* bits in limb */
68 #define biH (ciL << 2) /* half limb size */
77 #define CHARS_TO_LIMBS(i) ( (i) / ciL + ( (i) % ciL != 0 ) )
123 if( ( p = (mbedtls_mpi_uint*)mbedtls_calloc( nblimbs, ciL ) ) == NULL ) in mbedtls_mpi_grow()
128 memcpy( p, X->p, X->n * ciL ); in mbedtls_mpi_grow()
161 if( ( p = (mbedtls_mpi_uint*)mbedtls_calloc( i, ciL ) ) == NULL ) in mbedtls_mpi_shrink()
166 memcpy( p, X->p, i * ciL ); in mbedtls_mpi_shrink()
203 memset( X->p, 0, X->n * ciL ); in mbedtls_mpi_copy()
204 memcpy( X->p, Y->p, i * ciL ); in mbedtls_mpi_copy()
295 memset( X->p, 0, X->n * ciL ); in mbedtls_mpi_lset()
457 X->p[j / ( 2 * ciL )] |= d << ( ( j % ( 2 * ciL ) ) << 2 ); in mbedtls_mpi_read_string()
558 for( j = ciL; j > 0; j-- ) in mbedtls_mpi_write_string()
680 X->p[j / ciL] |= ((mbedtls_mpi_uint) buf[i - 1]) << ((j % ciL) << 3); in mbedtls_mpi_read_binary()
702 buf[i] = (unsigned char)( X->p[j / ciL] >> ((j % ciL) << 3) ); in mbedtls_mpi_write_binary()
1554 memset( T->p, 0, T->n * ciL ); in mpi_montmul()
1574 memcpy( A->p, d, ( n + 1 ) * ciL ); in mpi_montmul()
2074 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &A, X->n * ciL, f_rng, p_rng ) ); in mpi_miller_rabin()
2085 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &A, X->n * ciL, f_rng, p_rng ) ); in mpi_miller_rabin()
2193 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( X, n * ciL, f_rng, p_rng ) ); in mbedtls_mpi_gen_prime()