Lines Matching refs:result

53      * Writing the witness to the start of the buffer would result in the
222 int result )
238 TEST_ASSERT( mbedtls_mpi_write_binary( &X, buf, buflen ) == result );
239 if( result == 0)
254 int result )
270 TEST_ASSERT( mbedtls_mpi_write_binary_le( &X, buf, buflen ) == result );
271 if( result == 0)
285 data_t * input_A, int result )
301 TEST_ASSERT( ret == result );
303 if( result == 0 )
365 int radix_Y, char * output_Y, int result )
372 TEST_ASSERT( mbedtls_mpi_set_bit( &X, pos, val ) == result );
374 if( result == 0 )
661 /* result == first operand */
667 /* result == second operand */
721 /* result == first operand */
727 /* result == second operand */
769 /* result == first operand */
775 /* result == second operand */
804 /* result == first operand */
811 /* result == second operand */
1271 mbedtls_mpi result;
1282 mbedtls_mpi_init( &result );
1307 TEST_EQUAL( 0, mbedtls_mpi_random( &result, min, &upper_bound,
1310 TEST_ASSERT( sign_is_valid( &result ) );
1311 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &result, &upper_bound ) < 0 );
1312 TEST_ASSERT( mbedtls_mpi_cmp_int( &result, min ) >= 0 );
1316 TEST_EQUAL( 0, mbedtls_mpi_write_binary( &result, &value, 1 ) );
1323 stats[b] += mbedtls_mpi_get_bit( &result, b );
1346 /* Assert that each bit has been set in at least one result and
1347 * clear in at least one result. Provided that iterations is not
1364 mbedtls_mpi_free( &result );
1373 mbedtls_mpi result;
1376 mbedtls_mpi_init( &result );
1380 /* Set result to sign(before) * 2^(|before|-1) */
1381 TEST_ASSERT( mbedtls_mpi_lset( &result, before > 0 ? 1 : -1 ) == 0 );
1384 TEST_ASSERT( mbedtls_mpi_shift_l( &result, before - 1 ) == 0 );
1387 TEST_EQUAL( 0, mbedtls_mpi_grow( &result, nlimbs ) );
1390 TEST_EQUAL( 0, mbedtls_mpi_random( &result, min, &upper_bound,
1392 TEST_ASSERT( sign_is_valid( &result ) );
1393 TEST_ASSERT( mbedtls_mpi_cmp_mpi( &result, &upper_bound ) < 0 );
1394 TEST_ASSERT( mbedtls_mpi_cmp_int( &result, min ) >= 0 );
1398 mbedtls_mpi_free( &result );
1406 mbedtls_mpi result;
1410 mbedtls_mpi_init( &result );
1414 actual_ret = mbedtls_mpi_random( &result, min, &upper_bound,
1420 mbedtls_mpi_free( &result );