Lines Matching refs:MBEDTLS_MPI_CHK
201 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, i ) ); in mbedtls_mpi_copy()
236 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, Y->n ) ); in mbedtls_mpi_safe_cond_assign()
268 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, Y->n ) ); in mbedtls_mpi_safe_cond_swap()
269 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( Y, X->n ) ); in mbedtls_mpi_safe_cond_swap()
294 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, 1 ) ); in mbedtls_mpi_lset()
333 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, off + 1 ) ); in mbedtls_mpi_set_bit()
445 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, n ) ); in mbedtls_mpi_read_string()
446 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 0 ) ); in mbedtls_mpi_read_string()
456 MBEDTLS_MPI_CHK( mpi_get_digit( &d, radix, s[i - 1] ) ); in mbedtls_mpi_read_string()
462 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 0 ) ); in mbedtls_mpi_read_string()
472 MBEDTLS_MPI_CHK( mpi_get_digit( &d, radix, s[i] ) ); in mbedtls_mpi_read_string()
473 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_int( &T, X, radix ) ); in mbedtls_mpi_read_string()
477 MBEDTLS_MPI_CHK( mbedtls_mpi_add_int( X, &T, d ) ); in mbedtls_mpi_read_string()
481 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_int( X, &T, d ) ); in mbedtls_mpi_read_string()
504 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_int( &r, X, radix ) ); in mpi_write_hlp()
505 MBEDTLS_MPI_CHK( mbedtls_mpi_div_int( X, NULL, X, radix ) ); in mpi_write_hlp()
508 MBEDTLS_MPI_CHK( mpi_write_hlp( X, radix, p ) ); in mpi_write_hlp()
573 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &T, X ) ); in mbedtls_mpi_write_string()
578 MBEDTLS_MPI_CHK( mpi_write_hlp( &T, radix, &p ) ); in mbedtls_mpi_write_string()
640 MBEDTLS_MPI_CHK( mbedtls_mpi_write_string( X, radix, s, sizeof( s ) - 2, &n ) ); in mbedtls_mpi_write_file()
676 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, CHARS_TO_LIMBS( buflen - n ) ) ); in mbedtls_mpi_read_binary()
677 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 0 ) ); in mbedtls_mpi_read_binary()
722 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, BITS_TO_LIMBS( i ) ) ); in mbedtls_mpi_shift_l()
894 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( X, A ) ); in mbedtls_mpi_add_abs()
905 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, j ) ); in mbedtls_mpi_add_abs()
923 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, i + 1 ) ); in mbedtls_mpi_add_abs()
972 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TB, B ) ); in mbedtls_mpi_sub_abs()
977 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( X, A ) ); in mbedtls_mpi_sub_abs()
1010 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_abs( X, A, B ) ); in mbedtls_mpi_add_mpi()
1015 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_abs( X, B, A ) ); in mbedtls_mpi_add_mpi()
1021 MBEDTLS_MPI_CHK( mbedtls_mpi_add_abs( X, A, B ) ); in mbedtls_mpi_add_mpi()
1041 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_abs( X, A, B ) ); in mbedtls_mpi_sub_mpi()
1046 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_abs( X, B, A ) ); in mbedtls_mpi_sub_mpi()
1052 MBEDTLS_MPI_CHK( mbedtls_mpi_add_abs( X, A, B ) ); in mbedtls_mpi_sub_mpi()
1176 if( X == A ) { MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TA, A ) ); A = &TA; } in mbedtls_mpi_mul_mpi()
1177 if( X == B ) { MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TB, B ) ); B = &TB; } in mbedtls_mpi_mul_mpi()
1187 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, i + j ) ); in mbedtls_mpi_mul_mpi()
1188 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( X, 0 ) ); in mbedtls_mpi_mul_mpi()
1331 if( Q != NULL ) MBEDTLS_MPI_CHK( mbedtls_mpi_lset( Q, 0 ) ); in mbedtls_mpi_div_mpi()
1332 if( R != NULL ) MBEDTLS_MPI_CHK( mbedtls_mpi_copy( R, A ) ); in mbedtls_mpi_div_mpi()
1336 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &X, A ) ); in mbedtls_mpi_div_mpi()
1337 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &Y, B ) ); in mbedtls_mpi_div_mpi()
1340 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( &Z, A->n + 2 ) ); in mbedtls_mpi_div_mpi()
1341 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &Z, 0 ) ); in mbedtls_mpi_div_mpi()
1342 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( &T1, 2 ) ); in mbedtls_mpi_div_mpi()
1343 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( &T2, 3 ) ); in mbedtls_mpi_div_mpi()
1349 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &X, k ) ); in mbedtls_mpi_div_mpi()
1350 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &Y, k ) ); in mbedtls_mpi_div_mpi()
1356 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi()
1361 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &X, &X, &Y ) ); in mbedtls_mpi_div_mpi()
1363 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &Y, biL * ( n - t ) ) ); in mbedtls_mpi_div_mpi()
1380 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &T1, 0 ) ); in mbedtls_mpi_div_mpi()
1383 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_int( &T1, &T1, Z.p[i - t - 1] ) ); in mbedtls_mpi_div_mpi()
1385 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &T2, 0 ) ); in mbedtls_mpi_div_mpi()
1392 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_int( &T1, &Y, Z.p[i - t - 1] ) ); in mbedtls_mpi_div_mpi()
1393 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &T1, biL * ( i - t - 1 ) ) ); in mbedtls_mpi_div_mpi()
1394 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &X, &X, &T1 ) ); in mbedtls_mpi_div_mpi()
1398 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &T1, &Y ) ); in mbedtls_mpi_div_mpi()
1399 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &T1, biL * ( i - t - 1 ) ) ); in mbedtls_mpi_div_mpi()
1400 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &X, &X, &T1 ) ); in mbedtls_mpi_div_mpi()
1407 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( Q, &Z ) ); in mbedtls_mpi_div_mpi()
1413 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &X, k ) ); in mbedtls_mpi_div_mpi()
1415 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( R, &X ) ); in mbedtls_mpi_div_mpi()
1455 MBEDTLS_MPI_CHK( mbedtls_mpi_div_mpi( NULL, R, A, B ) ); in mbedtls_mpi_mod_mpi()
1458 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( R, R, B ) ); in mbedtls_mpi_mod_mpi()
1461 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( R, R, B ) ); in mbedtls_mpi_mod_mpi()
1635 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( X, j ) ); in mbedtls_mpi_exp_mod()
1636 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( &W[1], j ) ); in mbedtls_mpi_exp_mod()
1637 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( &T, j * 2 ) ); in mbedtls_mpi_exp_mod()
1645 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &Apos, A ) ); in mbedtls_mpi_exp_mod()
1655 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &RR, 1 ) ); in mbedtls_mpi_exp_mod()
1656 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &RR, N->n * 2 * biL ) ); in mbedtls_mpi_exp_mod()
1657 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &RR, &RR, N ) ); in mbedtls_mpi_exp_mod()
1669 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &W[1], A, N ) ); in mbedtls_mpi_exp_mod()
1671 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &W[1], A ) ); in mbedtls_mpi_exp_mod()
1673 MBEDTLS_MPI_CHK( mpi_montmul( &W[1], &RR, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1678 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( X, &RR ) ); in mbedtls_mpi_exp_mod()
1679 MBEDTLS_MPI_CHK( mpi_montred( X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1688 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( &W[j], N->n + 1 ) ); in mbedtls_mpi_exp_mod()
1689 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &W[j], &W[1] ) ); in mbedtls_mpi_exp_mod()
1692 MBEDTLS_MPI_CHK( mpi_montmul( &W[j], &W[j], N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1699 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( &W[i], N->n + 1 ) ); in mbedtls_mpi_exp_mod()
1700 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &W[i], &W[i - 1] ) ); in mbedtls_mpi_exp_mod()
1702 MBEDTLS_MPI_CHK( mpi_montmul( &W[i], &W[1], N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1739 MBEDTLS_MPI_CHK( mpi_montmul( X, X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1757 MBEDTLS_MPI_CHK( mpi_montmul( X, X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1762 MBEDTLS_MPI_CHK( mpi_montmul( X, &W[wbits], N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1775 MBEDTLS_MPI_CHK( mpi_montmul( X, X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1780 MBEDTLS_MPI_CHK( mpi_montmul( X, &W[1], N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1786 MBEDTLS_MPI_CHK( mpi_montred( X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1791 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( X, N, X ) ); in mbedtls_mpi_exp_mod()
1818 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TA, A ) ); in mbedtls_mpi_gcd()
1819 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TB, B ) ); in mbedtls_mpi_gcd()
1827 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &TA, lz ) ); in mbedtls_mpi_gcd()
1828 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &TB, lz ) ); in mbedtls_mpi_gcd()
1834 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &TA, mbedtls_mpi_lsb( &TA ) ) ); in mbedtls_mpi_gcd()
1835 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &TB, mbedtls_mpi_lsb( &TB ) ) ); in mbedtls_mpi_gcd()
1839 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_abs( &TA, &TA, &TB ) ); in mbedtls_mpi_gcd()
1840 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &TA, 1 ) ); in mbedtls_mpi_gcd()
1844 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_abs( &TB, &TB, &TA ) ); in mbedtls_mpi_gcd()
1845 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &TB, 1 ) ); in mbedtls_mpi_gcd()
1849 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &TB, lz ) ); in mbedtls_mpi_gcd()
1850 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( G, &TB ) ); in mbedtls_mpi_gcd()
1876 MBEDTLS_MPI_CHK( f_rng( p_rng, buf, size ) ); in mbedtls_mpi_fill_random()
1877 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( X, buf, size ) ); in mbedtls_mpi_fill_random()
1898 MBEDTLS_MPI_CHK( mbedtls_mpi_gcd( &G, A, N ) ); in mbedtls_mpi_inv_mod()
1906 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &TA, A, N ) ); in mbedtls_mpi_inv_mod()
1907 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TU, &TA ) ); in mbedtls_mpi_inv_mod()
1908 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TB, N ) ); in mbedtls_mpi_inv_mod()
1909 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &TV, N ) ); in mbedtls_mpi_inv_mod()
1911 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &U1, 1 ) ); in mbedtls_mpi_inv_mod()
1912 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &U2, 0 ) ); in mbedtls_mpi_inv_mod()
1913 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &V1, 0 ) ); in mbedtls_mpi_inv_mod()
1914 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &V2, 1 ) ); in mbedtls_mpi_inv_mod()
1920 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &TU, 1 ) ); in mbedtls_mpi_inv_mod()
1924 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &U1, &U1, &TB ) ); in mbedtls_mpi_inv_mod()
1925 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &U2, &U2, &TA ) ); in mbedtls_mpi_inv_mod()
1928 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &U1, 1 ) ); in mbedtls_mpi_inv_mod()
1929 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &U2, 1 ) ); in mbedtls_mpi_inv_mod()
1934 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &TV, 1 ) ); in mbedtls_mpi_inv_mod()
1938 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &V1, &V1, &TB ) ); in mbedtls_mpi_inv_mod()
1939 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &V2, &V2, &TA ) ); in mbedtls_mpi_inv_mod()
1942 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &V1, 1 ) ); in mbedtls_mpi_inv_mod()
1943 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &V2, 1 ) ); in mbedtls_mpi_inv_mod()
1948 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &TU, &TU, &TV ) ); in mbedtls_mpi_inv_mod()
1949 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &U1, &U1, &V1 ) ); in mbedtls_mpi_inv_mod()
1950 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &U2, &U2, &V2 ) ); in mbedtls_mpi_inv_mod()
1954 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &TV, &TV, &TU ) ); in mbedtls_mpi_inv_mod()
1955 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &V1, &V1, &U1 ) ); in mbedtls_mpi_inv_mod()
1956 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &V2, &V2, &U2 ) ); in mbedtls_mpi_inv_mod()
1962 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &V1, &V1, N ) ); in mbedtls_mpi_inv_mod()
1965 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &V1, &V1, N ) ); in mbedtls_mpi_inv_mod()
1967 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( X, &V1 ) ); in mbedtls_mpi_inv_mod()
2028 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_int( &r, X, small_prime[i] ) ); in mpi_check_small_factors()
2056 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_int( &W, X, 1 ) ); in mpi_miller_rabin()
2058 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R, &W ) ); in mpi_miller_rabin()
2059 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &R, s ) ); in mpi_miller_rabin()
2074 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &A, X->n * ciL, f_rng, p_rng ) ); in mpi_miller_rabin()
2079 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &A, j + 1 ) ); in mpi_miller_rabin()
2085 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &A, X->n * ciL, f_rng, p_rng ) ); in mpi_miller_rabin()
2090 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &A, j - k ) ); in mpi_miller_rabin()
2103 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &A, &A, &R, X, &RR ) ); in mpi_miller_rabin()
2115 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T, &A, &A ) ); in mpi_miller_rabin()
2116 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &A, &T, X ) ); in mpi_miller_rabin()
2193 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( X, n * ciL, f_rng, p_rng ) ); in mbedtls_mpi_gen_prime()
2196 if( k > nbits ) MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( X, k - nbits + 1 ) ); in mbedtls_mpi_gen_prime()
2209 MBEDTLS_MPI_CHK( mbedtls_mpi_add_int( X, X, 2 ) ); in mbedtls_mpi_gen_prime()
2222 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_int( &r, X, 3 ) ); in mbedtls_mpi_gen_prime()
2224 MBEDTLS_MPI_CHK( mbedtls_mpi_add_int( X, X, 8 ) ); in mbedtls_mpi_gen_prime()
2226 MBEDTLS_MPI_CHK( mbedtls_mpi_add_int( X, X, 4 ) ); in mbedtls_mpi_gen_prime()
2229 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &Y, X ) ); in mbedtls_mpi_gen_prime()
2230 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &Y, 1 ) ); in mbedtls_mpi_gen_prime()
2254 MBEDTLS_MPI_CHK( mbedtls_mpi_add_int( X, X, 12 ) ); in mbedtls_mpi_gen_prime()
2255 MBEDTLS_MPI_CHK( mbedtls_mpi_add_int( &Y, &Y, 6 ) ); in mbedtls_mpi_gen_prime()
2290 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &A, 16, in mbedtls_mpi_self_test()
2296 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &E, 16, in mbedtls_mpi_self_test()
2302 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &N, 16, in mbedtls_mpi_self_test()
2307 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &X, &A, &N ) ); in mbedtls_mpi_self_test()
2309 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &U, 16, in mbedtls_mpi_self_test()
2333 MBEDTLS_MPI_CHK( mbedtls_mpi_div_mpi( &X, &Y, &A, &N ) ); in mbedtls_mpi_self_test()
2335 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &U, 16, in mbedtls_mpi_self_test()
2338 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &V, 16, in mbedtls_mpi_self_test()
2359 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &X, &A, &E, &N, NULL ) ); in mbedtls_mpi_self_test()
2361 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &U, 16, in mbedtls_mpi_self_test()
2381 MBEDTLS_MPI_CHK( mbedtls_mpi_inv_mod( &X, &A, &N ) ); in mbedtls_mpi_self_test()
2383 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &U, 16, in mbedtls_mpi_self_test()
2408 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &X, gcd_pairs[i][0] ) ); in mbedtls_mpi_self_test()
2409 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &Y, gcd_pairs[i][1] ) ); in mbedtls_mpi_self_test()
2411 MBEDTLS_MPI_CHK( mbedtls_mpi_gcd( &A, &X, &Y ) ); in mbedtls_mpi_self_test()