Lines Matching full:z3
686 MPI z1, z2, z3; in mpi_ec_get_affine() local
697 z3 = mpi_new(0); in mpi_ec_get_affine()
698 ec_mulm(z3, z2, z1, ctx); /* z3 = z^(-3) mod p */ in mpi_ec_get_affine()
699 ec_mulm(y, point->y, z3, ctx); in mpi_ec_get_affine()
700 mpi_free(z3); in mpi_ec_get_affine()
758 #define z3 (result->z) in dup_point_weierstrass() macro
770 mpi_set_ui(z3, 0); in dup_point_weierstrass()
792 /* Z3 = 2YZ */ in dup_point_weierstrass()
793 ec_mulm(z3, point->y, point->z, ctx); in dup_point_weierstrass()
794 ec_mul2(z3, z3, ctx); in dup_point_weierstrass()
821 #undef z3 in dup_point_weierstrass()
850 #define Z3 (result->z) in dup_point_edwards() macro
896 ctx->mulm(Z3, F, J, ctx); in dup_point_edwards()
903 #undef Z3 in dup_point_edwards()
943 #define z3 (result->z) in add_points_weierstrass() macro
963 mpi_set(z3, p2->z); in add_points_weierstrass()
968 mpi_set(z3, p1->z); in add_points_weierstrass()
1006 mpi_set_ui(z3, 0); in add_points_weierstrass()
1013 /* z3 = z1 z2 l3 */ in add_points_weierstrass()
1014 ec_mulm(z3, z1, z2, ctx); in add_points_weierstrass()
1015 ec_mulm(z3, z3, l3, ctx); in add_points_weierstrass()
1041 #undef z3 in add_points_weierstrass()
1081 #define Z3 (result->z) in add_points_edwards() macro
1137 ctx->mulm(Z3, F, G, ctx); in add_points_edwards()
1148 #undef Z3 in add_points_edwards()
1334 MPI z2, z3; in mpi_ec_mul_point() local
1337 z3 = mpi_alloc_like(ctx->p); in mpi_ec_mul_point()
1339 ec_mulm(z3, point->z, z2, ctx); in mpi_ec_mul_point()
1342 ec_invm(z3, z3, ctx); in mpi_ec_mul_point()
1343 ec_mulm(y1, yy, z3, ctx); in mpi_ec_mul_point()
1345 mpi_free(z3); in mpi_ec_mul_point()