Lines Matching refs:T

337     if( grp->T != NULL )  in mbedtls_ecp_group_free()
340 mbedtls_ecp_point_free( &grp->T[i] ); in mbedtls_ecp_group_free()
341 mbedtls_free( grp->T ); in mbedtls_ecp_group_free()
790 mbedtls_ecp_point *T[], size_t t_len ) in ecp_normalize_jac_many() argument
797 return( ecp_normalize_jac( grp, *T ) ); in ecp_normalize_jac_many()
807 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &c[0], &T[0]->Z ) ); in ecp_normalize_jac_many()
810 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &c[i], &c[i-1], &T[i]->Z ) ); in ecp_normalize_jac_many()
831 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &u, &u, &T[i]->Z ) ); MOD_MUL( u ); in ecp_normalize_jac_many()
838 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T[i]->X, &T[i]->X, &ZZi ) ); MOD_MUL( T[i]->X ); in ecp_normalize_jac_many()
839 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T[i]->Y, &T[i]->Y, &ZZi ) ); MOD_MUL( T[i]->Y ); in ecp_normalize_jac_many()
840 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T[i]->Y, &T[i]->Y, &Zi ) ); MOD_MUL( T[i]->Y ); in ecp_normalize_jac_many()
848 MBEDTLS_MPI_CHK( mbedtls_mpi_shrink( &T[i]->X, grp->P.n ) ); in ecp_normalize_jac_many()
849 MBEDTLS_MPI_CHK( mbedtls_mpi_shrink( &T[i]->Y, grp->P.n ) ); in ecp_normalize_jac_many()
850 mbedtls_mpi_free( &T[i]->Z ); in ecp_normalize_jac_many()
909 mbedtls_mpi M, S, T, U; in ecp_double_jac() local
915 mbedtls_mpi_init( &M ); mbedtls_mpi_init( &S ); mbedtls_mpi_init( &T ); mbedtls_mpi_init( &U ); in ecp_double_jac()
922 MBEDTLS_MPI_CHK( mbedtls_mpi_add_mpi( &T, &P->X, &S ) ); MOD_ADD( T ); in ecp_double_jac()
924 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &S, &T, &U ) ); MOD_MUL( S ); in ecp_double_jac()
938 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T, &S, &S ) ); MOD_MUL( T ); in ecp_double_jac()
939 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &S, &T, &grp->A ) ); MOD_MUL( S ); in ecp_double_jac()
945 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T, &P->Y, &P->Y ) ); MOD_MUL( T ); in ecp_double_jac()
946 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_l( &T, 1 ) ); MOD_ADD( T ); in ecp_double_jac()
947 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &S, &P->X, &T ) ); MOD_MUL( S ); in ecp_double_jac()
951 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &U, &T, &T ) ); MOD_MUL( U ); in ecp_double_jac()
955 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &T, &M, &M ) ); MOD_MUL( T ); in ecp_double_jac()
956 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &T, &T, &S ) ); MOD_SUB( T ); in ecp_double_jac()
957 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &T, &T, &S ) ); MOD_SUB( T ); in ecp_double_jac()
960 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &S, &S, &T ) ); MOD_SUB( S ); in ecp_double_jac()
968 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &R->X, &T ) ); in ecp_double_jac()
973 mbedtls_mpi_free( &M ); mbedtls_mpi_free( &S ); mbedtls_mpi_free( &T ); mbedtls_mpi_free( &U ); in ecp_double_jac()
1192 mbedtls_ecp_point T[], const mbedtls_ecp_point *P, in ecp_precompute_comb() argument
1204 MBEDTLS_MPI_CHK( mbedtls_ecp_copy( &T[0], P ) ); in ecp_precompute_comb()
1209 cur = T + i; in ecp_precompute_comb()
1210 MBEDTLS_MPI_CHK( mbedtls_ecp_copy( cur, T + ( i >> 1 ) ) ); in ecp_precompute_comb()
1229 MBEDTLS_MPI_CHK( ecp_add_mixed( grp, &T[i + j], &T[j], &T[i] ) ); in ecp_precompute_comb()
1230 TT[k++] = &T[i + j]; in ecp_precompute_comb()
1244 const mbedtls_ecp_point T[], unsigned char t_len, in ecp_select_comb() argument
1256 MBEDTLS_MPI_CHK( mbedtls_mpi_safe_cond_assign( &R->X, &T[j].X, j == ii ) ); in ecp_select_comb()
1257 MBEDTLS_MPI_CHK( mbedtls_mpi_safe_cond_assign( &R->Y, &T[j].Y, j == ii ) ); in ecp_select_comb()
1274 const mbedtls_ecp_point T[], unsigned char t_len, in ecp_mul_comb_core() argument
1287 MBEDTLS_MPI_CHK( ecp_select_comb( grp, R, T, t_len, x[i] ) ); in ecp_mul_comb_core()
1295 MBEDTLS_MPI_CHK( ecp_select_comb( grp, &Txi, T, t_len, x[i] ) ); in ecp_mul_comb_core()
1318 mbedtls_ecp_point *T; in ecp_mul_comb() local
1366 T = p_eq_g ? grp->T : NULL; in ecp_mul_comb()
1368 if( T == NULL ) in ecp_mul_comb()
1370 T = mbedtls_calloc( pre_len, sizeof( mbedtls_ecp_point ) ); in ecp_mul_comb()
1371 if( T == NULL ) in ecp_mul_comb()
1377 MBEDTLS_MPI_CHK( ecp_precompute_comb( grp, T, P, w, d ) ); in ecp_mul_comb()
1381 grp->T = T; in ecp_mul_comb()
1399 MBEDTLS_MPI_CHK( ecp_mul_comb_core( grp, R, T, pre_len, k, d, f_rng, p_rng ) ); in ecp_mul_comb()
1409 if( T != NULL && ! p_eq_g ) in ecp_mul_comb()
1412 mbedtls_ecp_point_free( &T[i] ); in ecp_mul_comb()
1413 mbedtls_free( T ); in ecp_mul_comb()