add getMapToMode

update-fork
MITSUNARI Shigeo 5 years ago
parent 77e4c0a9d1
commit 0737cbfa65
  1. 4
      include/mcl/bn.hpp

@ -2143,6 +2143,10 @@ inline bool setMapToMode(int mode)
}
return BN::nonConstParam.mapTo.setMapToMode(mode);
}
inline int getMapToMode()
{
return BN::param.mapTo.mapToMode_;
}
inline void mapToG1(bool *pb, G1& P, const Fp& x) { *pb = BN::param.mapTo.calc(P, x); }
inline void mapToG2(bool *pb, G2& P, const Fp2& x, bool fast = false) { *pb = BN::param.mapTo.calc(P, x, fast); }
#ifndef CYBOZU_DONT_USE_EXCEPTION

Loading…
Cancel
Save