Lines Matching refs:T
216 mbedtls_mpi T; in mbedtls_mpi_swap() local
218 memcpy( &T, X, sizeof( mbedtls_mpi ) ); in mbedtls_mpi_swap()
220 memcpy( Y, &T, sizeof( mbedtls_mpi ) ); in mbedtls_mpi_swap()
429 mbedtls_mpi T; in mbedtls_mpi_read_string() local
434 mbedtls_mpi_init( &T ); 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()
488 mbedtls_mpi_free( &T ); in mbedtls_mpi_read_string()
529 mbedtls_mpi T; in mbedtls_mpi_write_string() local
546 mbedtls_mpi_init( &T ); in mbedtls_mpi_write_string()
573 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &T, X ) ); in mbedtls_mpi_write_string()
575 if( T.s == -1 ) in mbedtls_mpi_write_string()
576 T.s = 1; in mbedtls_mpi_write_string()
578 MBEDTLS_MPI_CHK( mpi_write_hlp( &T, radix, &p ) ); in mbedtls_mpi_write_string()
586 mbedtls_mpi_free( &T ); in mbedtls_mpi_write_string()
890 const mbedtls_mpi *T = A; A = X; B = T; in mbedtls_mpi_add_abs() local
1546 const mbedtls_mpi *T ) in mpi_montmul() argument
1551 if( T->n < N->n + 1 || T->p == NULL ) in mpi_montmul()
1554 memset( T->p, 0, T->n * ciL ); in mpi_montmul()
1556 d = T->p; in mpi_montmul()
1580 mpi_sub_hlp( n, A->p, T->p ); in mpi_montmul()
1588 … int mpi_montred( mbedtls_mpi *A, const mbedtls_mpi *N, mbedtls_mpi_uint mm, const mbedtls_mpi *T ) in mpi_montred() argument
1596 return( mpi_montmul( A, &U, N, mm, T ) ); in mpi_montred()
1609 mbedtls_mpi RR, T, W[ 2 << MBEDTLS_MPI_WINDOW_SIZE ], Apos; in mbedtls_mpi_exp_mod() local
1622 mbedtls_mpi_init( &RR ); mbedtls_mpi_init( &T ); in mbedtls_mpi_exp_mod()
1637 MBEDTLS_MPI_CHK( mbedtls_mpi_grow( &T, j * 2 ) ); in mbedtls_mpi_exp_mod()
1673 MBEDTLS_MPI_CHK( mpi_montmul( &W[1], &RR, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1679 MBEDTLS_MPI_CHK( mpi_montred( X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1692 MBEDTLS_MPI_CHK( mpi_montmul( &W[j], &W[j], N, mm, &T ) ); 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()
1799 mbedtls_mpi_free( &W[1] ); mbedtls_mpi_free( &T ); mbedtls_mpi_free( &Apos ); in mbedtls_mpi_exp_mod()
2047 mbedtls_mpi W, R, T, A, RR; in mpi_miller_rabin() local
2049 mbedtls_mpi_init( &W ); mbedtls_mpi_init( &R ); mbedtls_mpi_init( &T ); mbedtls_mpi_init( &A ); 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()
2136 mbedtls_mpi_free( &W ); mbedtls_mpi_free( &R ); mbedtls_mpi_free( &T ); mbedtls_mpi_free( &A ); in mpi_miller_rabin()