• Home
  • Raw
  • Download

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()
683 if (!mpi_cmp_ui(point->z, 0)) in mpi_ec_get_affine()
693 ec_invm(z1, point->z, ctx); /* z1 = z^(-1) mod p */ in mpi_ec_get_affine()
726 MPI z; in mpi_ec_get_affine() local
728 z = mpi_new(0); in mpi_ec_get_affine()
729 ec_invm(z, point->z, ctx); in mpi_ec_get_affine()
731 mpi_resize(z, ctx->p->nlimbs); in mpi_ec_get_affine()
732 z->nlimbs = ctx->p->nlimbs; in mpi_ec_get_affine()
737 ctx->mulm(x, point->x, z, ctx); in mpi_ec_get_affine()
742 ctx->mulm(y, point->y, z, ctx); in mpi_ec_get_affine()
745 mpi_free(z); in mpi_ec_get_affine()
761 #define z3 (result->z) in dup_point_weierstrass()
769 if (!mpi_cmp_ui(point->y, 0) || !mpi_cmp_ui(point->z, 0)) { in dup_point_weierstrass()
780 ec_pow2(t1, point->z, ctx); in dup_point_weierstrass()
791 ec_powm(t1, point->z, mpi_const(MPI_C_FOUR), ctx); in dup_point_weierstrass()
796 ec_mulm(z3, point->y, point->z, ctx); in dup_point_weierstrass()
850 #define Z1 (point->z) in dup_point_edwards()
853 #define Z3 (result->z) in dup_point_edwards()
940 #define z1 (p1->z) in add_points_weierstrass()
943 #define z2 (p2->z) in add_points_weierstrass()
946 #define z3 (result->z) in add_points_weierstrass()
966 mpi_set(z3, p2->z); in add_points_weierstrass()
971 mpi_set(z3, p1->z); in add_points_weierstrass()
1078 #define Z1 (p1->z) in add_points_edwards()
1081 #define Z2 (p2->z) in add_points_edwards()
1084 #define Z3 (result->z) in add_points_edwards()
1170 ctx->addm(sum->x, p2->x, p2->z, ctx); in montgomery_ladder()
1171 ctx->subm(p2->z, p2->x, p2->z, ctx); in montgomery_ladder()
1172 ctx->addm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder()
1173 ctx->subm(p1->z, p1->x, p1->z, ctx); in montgomery_ladder()
1174 ctx->mulm(p2->x, p1->z, sum->x, ctx); in montgomery_ladder()
1175 ctx->mulm(p2->z, prd->x, p2->z, ctx); in montgomery_ladder()
1177 ctx->pow2(p1->z, p1->z, ctx); in montgomery_ladder()
1178 ctx->addm(sum->x, p2->x, p2->z, ctx); in montgomery_ladder()
1179 ctx->subm(p2->z, p2->x, p2->z, ctx); in montgomery_ladder()
1180 ctx->mulm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder()
1181 ctx->subm(p1->z, p1->x, p1->z, ctx); in montgomery_ladder()
1183 ctx->pow2(sum->z, p2->z, ctx); in montgomery_ladder()
1184 ctx->mulm(prd->z, p1->z, ctx->a, ctx); /* CTX->A: (a-2)/4 */ in montgomery_ladder()
1185 ctx->mulm(sum->z, sum->z, dif_x, ctx); in montgomery_ladder()
1186 ctx->addm(prd->z, p1->x, prd->z, ctx); in montgomery_ladder()
1187 ctx->mulm(prd->z, prd->z, p1->z, ctx); in montgomery_ladder()
1239 mpi_set_ui(result->z, 1); in mpi_ec_mul_point()
1273 mpi_set_ui(p2.z, 1); in mpi_ec_mul_point()
1303 rsize = p1.z->nlimbs; in mpi_ec_mul_point()
1304 MPN_NORMALIZE(p1.z->d, rsize); in mpi_ec_mul_point()
1307 mpi_set_ui(result->z, 0); in mpi_ec_mul_point()
1310 ec_invm(z1, p1.z, ctx); in mpi_ec_mul_point()
1312 mpi_set_ui(result->z, 1); in mpi_ec_mul_point()
1336 if (!mpi_cmp_ui(point->z, 1)) { in mpi_ec_mul_point()
1344 ec_mulm(z2, point->z, point->z, ctx); in mpi_ec_mul_point()
1345 ec_mulm(z3, point->z, z2, ctx); in mpi_ec_mul_point()
1365 mpi_clear(result->z); in mpi_ec_mul_point()
1369 mpi_set(result->z, point->z); in mpi_ec_mul_point()
1375 p1.z = z1; z1 = NULL; in mpi_ec_mul_point()
1420 if (mpi_cmpabs(point->z, ctx->p) >= 0) in mpi_ec_curve_point()