use Jacobi instead of Proj

update-fork
MITSUNARI Shigeo 6 years ago
parent a344ac8035
commit 0363aee113
  1. 4
      include/mcl/bn.hpp

@ -1100,11 +1100,11 @@ struct Param {
} else {
twist_b_type = tb_generic;
}
G1::init(0, cp.b, mcl::ec::Proj);
G1::init(0, cp.b, mcl::ec::Jacobi);
if (isBLS12) {
G1::setOrder(r);
}
G2::init(0, twist_b, mcl::ec::Proj);
G2::init(0, twist_b, mcl::ec::Jacobi);
G2::setOrder(r);
const mpz_class largest_c = isBLS12 ? abs_z : gmp::abs(z * 6 + 2);

Loading…
Cancel
Save