From 0737cbfa65bf47e2a6980a078977376e1565ff26 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 21 Jan 2020 15:00:27 +0900 Subject: [PATCH] add getMapToMode --- include/mcl/bn.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mcl/bn.hpp b/include/mcl/bn.hpp index fd69b4b..a71a007 100644 --- a/include/mcl/bn.hpp +++ b/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