Home
last modified time | relevance | path

Searched refs:ciL (Results 1 – 7 of 7) sorted by relevance

/external/mbedtls/library/
Dbignum_core.h89 #define ciL ( sizeof(mbedtls_mpi_uint) ) /** chars in limb */ macro
90 #define biL ( ciL << 3 ) /** bits in limb */
91 #define biH ( ciL << 2 ) /** half limb size */
98 #define CHARS_TO_LIMBS(i) ( (i) / ciL + ( (i) % ciL != 0 ) )
101 ( ( (X)[(i) / ciL] >> ( ( (i) % ciL ) * 8 ) ) & 0xff )
Dbignum_core.c75 for( i = 0, a_ptr = (unsigned char *) &a; i < ciL; i++, a_ptr++ ) in mpi_bigendian_to_host_c()
199 memset( X, 0, X_limbs * ciL ); in mbedtls_mpi_core_read_le()
203 size_t offset = ( ( i % ciL ) << 3 ); in mbedtls_mpi_core_read_le()
204 X[i / ciL] |= ( (mbedtls_mpi_uint) input[i] ) << offset; in mbedtls_mpi_core_read_le()
226 memset( X, 0, X_limbs * ciL ); in mbedtls_mpi_core_read_be()
231 size_t overhead = ( X_limbs * ciL ) - input_length; in mbedtls_mpi_core_read_be()
246 size_t stored_bytes = A_limbs * ciL; in mbedtls_mpi_core_write_le()
287 stored_bytes = X_limbs * ciL; in mbedtls_mpi_core_write_be()
330 memset( X, 0, limbs * ciL ); in mbedtls_mpi_core_shift_r()
485 memset( T, 0, ( 2 * AN_limbs + 1 ) * ciL ); in mbedtls_mpi_core_montmul()
[all …]
Dbignum_mod_raw.c157 if( ( T = (mbedtls_mpi_uint *) mbedtls_calloc( t_limbs, ciL ) ) == NULL ) in mbedtls_mpi_mod_raw_to_mont_rep()
163 mbedtls_platform_zeroize( T, t_limbs * ciL ); in mbedtls_mpi_mod_raw_to_mont_rep()
175 if( ( T = (mbedtls_mpi_uint *) mbedtls_calloc( t_limbs, ciL ) ) == NULL ) in mbedtls_mpi_mod_raw_from_mont_rep()
181 mbedtls_platform_zeroize( T, t_limbs * ciL ); in mbedtls_mpi_mod_raw_from_mont_rep()
Dbignum.c62 mbedtls_platform_zeroize( v, ciL * n ); in mbedtls_mpi_zeroize()
109 if( ( p = (mbedtls_mpi_uint*)mbedtls_calloc( nblimbs, ciL ) ) == NULL ) in mbedtls_mpi_grow()
114 memcpy( p, X->p, X->n * ciL ); in mbedtls_mpi_grow()
152 if( ( p = (mbedtls_mpi_uint*)mbedtls_calloc( i, ciL ) ) == NULL ) in mbedtls_mpi_shrink()
157 memcpy( p, X->p, i * ciL ); in mbedtls_mpi_shrink()
178 memset( X->p, 0, limbs * ciL ); in mbedtls_mpi_resize_clear()
213 memset( X->p, 0, X->n * ciL ); in mbedtls_mpi_copy()
231 memset( X->p + i, 0, ( X->n - i ) * ciL ); in mbedtls_mpi_copy()
234 memcpy( X->p, Y->p, i * ciL ); in mbedtls_mpi_copy()
275 memset( X->p, 0, X->n * ciL ); in mbedtls_mpi_lset()
[all …]
/external/openthread/third_party/mbedtls/repo/library/
Dbignum.c64 #define ciL (sizeof(mbedtls_mpi_uint)) /* chars in limb */ macro
65 #define biL (ciL << 3) /* bits in limb */
66 #define biH (ciL << 2) /* half limb size */
75 #define CHARS_TO_LIMBS(i) ( (i) / ciL + ( (i) % ciL != 0 ) )
80 mbedtls_platform_zeroize( v, ciL * n ); in mbedtls_mpi_zeroize()
127 if( ( p = (mbedtls_mpi_uint*)mbedtls_calloc( nblimbs, ciL ) ) == NULL ) in mbedtls_mpi_grow()
132 memcpy( p, X->p, X->n * ciL ); in mbedtls_mpi_grow()
170 if( ( p = (mbedtls_mpi_uint*)mbedtls_calloc( i, ciL ) ) == NULL ) in mbedtls_mpi_shrink()
175 memcpy( p, X->p, i * ciL ); in mbedtls_mpi_shrink()
196 memset( X->p, 0, limbs * ciL ); in mbedtls_mpi_resize_clear()
[all …]
Decp_curves.c988 #define ciL (sizeof(mbedtls_mpi_uint)) /* chars in limb */ macro
989 #define biL (ciL << 3) /* bits in limb */
/external/mbedtls/tests/suites/
Dtest_suite_bignum_core.function494 ASSERT_COMPARE( X, limbs * ciL, Y, limbs * ciL );
1029 for( size_t i = wanted_bytes; i < X_limbs * ciL; i++ )