Lines Matching refs:before
627 void mbedtls_mpi_shrink( int before, int used, int min, int after )
632 TEST_ASSERT( mbedtls_mpi_grow( &X, before ) == 0 );
638 TEST_EQUAL( X.n, (size_t) before );
1220 int before, int expected_ret )
1227 if( before != 0 )
1229 /* Set X to sign(before) * 2^(|before|-1) */
1230 TEST_ASSERT( mbedtls_mpi_lset( &X, before > 0 ? 1 : -1 ) == 0 );
1231 if( before < 0 )
1232 before = - before;
1233 TEST_ASSERT( mbedtls_mpi_shift_l( &X, before - 1 ) == 0 );
1370 void mpi_random_sizes( int min, data_t *bound_bytes, int nlimbs, int before )
1378 if( before != 0 )
1380 /* Set result to sign(before) * 2^(|before|-1) */
1381 TEST_ASSERT( mbedtls_mpi_lset( &result, before > 0 ? 1 : -1 ) == 0 );
1382 if( before < 0 )
1383 before = - before;
1384 TEST_ASSERT( mbedtls_mpi_shift_l( &result, before - 1 ) == 0 );