Lines Matching refs:z

67 	p->z = mpi_new(0);  in mpi_point_init()
76 mpi_free(p->z); p->z = NULL; in mpi_point_free_parts()
85 mpi_set(d->z, s->z); in point_set()
94 mpi_resize(p->z, nlimbs); in point_resize()
95 p->z->nlimbs = nlimbs; in point_resize()
109 mpi_swap_cond(d->z, s->z, swap); in point_swap_cond()
680 if (!mpi_cmp_ui(point->z, 0)) in mpi_ec_get_affine()
690 ec_invm(z1, point->z, ctx); /* z1 = z^(-1) mod p */ in mpi_ec_get_affine()
723 MPI z; in mpi_ec_get_affine() local
725 z = mpi_new(0); in mpi_ec_get_affine()
726 ec_invm(z, point->z, ctx); in mpi_ec_get_affine()
728 mpi_resize(z, ctx->p->nlimbs); in mpi_ec_get_affine()
729 z->nlimbs = ctx->p->nlimbs; in mpi_ec_get_affine()
734 ctx->mulm(x, point->x, z, ctx); in mpi_ec_get_affine()
739 ctx->mulm(y, point->y, z, ctx); in mpi_ec_get_affine()
742 mpi_free(z); in mpi_ec_get_affine()
758 #define z3 (result->z) in dup_point_weierstrass()
766 if (!mpi_cmp_ui(point->y, 0) || !mpi_cmp_ui(point->z, 0)) { in dup_point_weierstrass()
777 ec_pow2(t1, point->z, ctx); in dup_point_weierstrass()
788 ec_powm(t1, point->z, mpi_const(MPI_C_FOUR), ctx); in dup_point_weierstrass()
793 ec_mulm(z3, point->y, point->z, ctx); in dup_point_weierstrass()
847 #define Z1 (point->z) in dup_point_edwards()
850 #define Z3 (result->z) in dup_point_edwards()
937 #define z1 (p1->z) in add_points_weierstrass()
940 #define z2 (p2->z) in add_points_weierstrass()
943 #define z3 (result->z) in add_points_weierstrass()
963 mpi_set(z3, p2->z); in add_points_weierstrass()
968 mpi_set(z3, p1->z); in add_points_weierstrass()
1075 #define Z1 (p1->z) in add_points_edwards()
1078 #define Z2 (p2->z) in add_points_edwards()
1081 #define Z3 (result->z) in add_points_edwards()
1167 ctx->addm(sum->x, p2->x, p2->z, ctx); in montgomery_ladder()
1168 ctx->subm(p2->z, p2->x, p2->z, ctx); in montgomery_ladder()
1169 ctx->addm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder()
1170 ctx->subm(p1->z, p1->x, p1->z, ctx); in montgomery_ladder()
1171 ctx->mulm(p2->x, p1->z, sum->x, ctx); in montgomery_ladder()
1172 ctx->mulm(p2->z, prd->x, p2->z, ctx); in montgomery_ladder()
1174 ctx->pow2(p1->z, p1->z, ctx); in montgomery_ladder()
1175 ctx->addm(sum->x, p2->x, p2->z, ctx); in montgomery_ladder()
1176 ctx->subm(p2->z, p2->x, p2->z, ctx); in montgomery_ladder()
1177 ctx->mulm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder()
1178 ctx->subm(p1->z, p1->x, p1->z, ctx); in montgomery_ladder()
1180 ctx->pow2(sum->z, p2->z, ctx); in montgomery_ladder()
1181 ctx->mulm(prd->z, p1->z, ctx->a, ctx); /* CTX->A: (a-2)/4 */ in montgomery_ladder()
1182 ctx->mulm(sum->z, sum->z, dif_x, ctx); in montgomery_ladder()
1183 ctx->addm(prd->z, p1->x, prd->z, ctx); in montgomery_ladder()
1184 ctx->mulm(prd->z, prd->z, p1->z, ctx); in montgomery_ladder()
1236 mpi_set_ui(result->z, 1); in mpi_ec_mul_point()
1269 mpi_set_ui(p2.z, 1); in mpi_ec_mul_point()
1299 rsize = p1.z->nlimbs; in mpi_ec_mul_point()
1300 MPN_NORMALIZE(p1.z->d, rsize); in mpi_ec_mul_point()
1303 mpi_set_ui(result->z, 0); in mpi_ec_mul_point()
1306 ec_invm(z1, p1.z, ctx); in mpi_ec_mul_point()
1308 mpi_set_ui(result->z, 1); in mpi_ec_mul_point()
1330 if (!mpi_cmp_ui(point->z, 1)) { in mpi_ec_mul_point()
1338 ec_mulm(z2, point->z, point->z, ctx); in mpi_ec_mul_point()
1339 ec_mulm(z3, point->z, z2, ctx); in mpi_ec_mul_point()
1359 mpi_clear(result->z); in mpi_ec_mul_point()
1363 mpi_set(result->z, point->z); in mpi_ec_mul_point()
1369 p1.z = z1; z1 = NULL; in mpi_ec_mul_point()
1414 if (mpi_cmpabs(point->z, ctx->p) >= 0) in mpi_ec_curve_point()