Lines Matching refs:t
116 if (ec->t.p_barrett) in ec_mod()
117 mpi_mod_barrett(w, w, ec->t.p_barrett); in ec_mod()
488 ec->t.valid.a_is_pminus3 = 0; in mpi_ec_get_reset()
489 ec->t.valid.two_inv_p = 0; in mpi_ec_get_reset()
497 if (!ec->t.valid.a_is_pminus3) { in ec_get_a_is_pminus3()
498 ec->t.valid.a_is_pminus3 = 1; in ec_get_a_is_pminus3()
501 ec->t.a_is_pminus3 = !mpi_cmp(ec->a, tmp); in ec_get_a_is_pminus3()
505 return ec->t.a_is_pminus3; in ec_get_a_is_pminus3()
511 if (!ec->t.valid.two_inv_p) { in ec_get_two_inv_p()
512 ec->t.valid.two_inv_p = 1; in ec_get_two_inv_p()
513 if (!ec->t.two_inv_p) in ec_get_two_inv_p()
514 ec->t.two_inv_p = mpi_alloc(0); in ec_get_two_inv_p()
515 ec_invm(ec->t.two_inv_p, mpi_const(MPI_C_TWO), ec); in ec_get_two_inv_p()
517 return ec->t.two_inv_p; in ec_get_two_inv_p()
588 ctx->t.two_inv_p = NULL; in mpi_ec_init()
590 ctx->t.p_barrett = use_barrett > 0 ? mpi_barrett_init(ctx->p, 0) : NULL; in mpi_ec_init()
604 for (j = 0; i < DIM(ctx->t.scratch) && bad_points_table[i][j]; j++) in mpi_ec_init()
605 ctx->t.scratch[j] = mpi_scanval(bad_points_table[i][j]); in mpi_ec_init()
609 for (i = 0; i < DIM(ctx->t.scratch); i++) in mpi_ec_init()
610 ctx->t.scratch[i] = mpi_alloc_like(ctx->p); in mpi_ec_init()
640 for (i = 0; i < DIM(ctx->t.scratch) && ctx->t.scratch[i]; i++) in mpi_ec_init()
641 ctx->t.scratch[i]->nlimbs = ctx->p->nlimbs; in mpi_ec_init()
655 mpi_barrett_free(ctx->t.p_barrett); in mpi_ec_deinit()
669 mpi_free(ctx->t.two_inv_p); in mpi_ec_deinit()
671 for (i = 0; i < DIM(ctx->t.scratch); i++) in mpi_ec_deinit()
672 mpi_free(ctx->t.scratch[i]); in mpi_ec_deinit()
762 #define t1 (ctx->t.scratch[0]) in dup_point_weierstrass()
763 #define t2 (ctx->t.scratch[1]) in dup_point_weierstrass()
764 #define t3 (ctx->t.scratch[2]) in dup_point_weierstrass()
765 #define l1 (ctx->t.scratch[3]) in dup_point_weierstrass()
766 #define l2 (ctx->t.scratch[4]) in dup_point_weierstrass()
767 #define l3 (ctx->t.scratch[5]) in dup_point_weierstrass()
854 #define B (ctx->t.scratch[0]) in dup_point_edwards()
855 #define C (ctx->t.scratch[1]) in dup_point_edwards()
856 #define D (ctx->t.scratch[2]) in dup_point_edwards()
857 #define E (ctx->t.scratch[3]) in dup_point_edwards()
858 #define F (ctx->t.scratch[4]) in dup_point_edwards()
859 #define H (ctx->t.scratch[5]) in dup_point_edwards()
860 #define J (ctx->t.scratch[6]) in dup_point_edwards()
947 #define l1 (ctx->t.scratch[0]) in add_points_weierstrass()
948 #define l2 (ctx->t.scratch[1]) in add_points_weierstrass()
949 #define l3 (ctx->t.scratch[2]) in add_points_weierstrass()
950 #define l4 (ctx->t.scratch[3]) in add_points_weierstrass()
951 #define l5 (ctx->t.scratch[4]) in add_points_weierstrass()
952 #define l6 (ctx->t.scratch[5]) in add_points_weierstrass()
953 #define l7 (ctx->t.scratch[6]) in add_points_weierstrass()
954 #define l8 (ctx->t.scratch[7]) in add_points_weierstrass()
955 #define l9 (ctx->t.scratch[8]) in add_points_weierstrass()
956 #define t1 (ctx->t.scratch[9]) in add_points_weierstrass()
957 #define t2 (ctx->t.scratch[10]) in add_points_weierstrass()
1085 #define A (ctx->t.scratch[0]) in add_points_edwards()
1086 #define B (ctx->t.scratch[1]) in add_points_edwards()
1087 #define C (ctx->t.scratch[2]) in add_points_edwards()
1088 #define D (ctx->t.scratch[3]) in add_points_edwards()
1089 #define E (ctx->t.scratch[4]) in add_points_edwards()
1090 #define F (ctx->t.scratch[5]) in add_points_edwards()
1091 #define G (ctx->t.scratch[6]) in add_points_edwards()
1092 #define tmp (ctx->t.scratch[7]) in add_points_edwards()
1288 MPI_POINT t; in mpi_ec_mul_point() local
1294 t = q1; q1 = prd; prd = t; in mpi_ec_mul_point()
1295 t = q2; q2 = sum; sum = t; in mpi_ec_mul_point()