diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-04-04 13:34:00 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-04-04 13:34:00 +0800 |
commit | e07a7eba6202202405a17e4774821d0a24918aed (patch) | |
tree | 9b20e4f5b98e6f92e2f45a95f5baf690943f59d8 /include/mcl/bn.hpp | |
parent | aaab06e142ce93cf5348a502ad65257e228952b5 (diff) | |
download | dexon-mcl-e07a7eba6202202405a17e4774821d0a24918aed.tar.gz dexon-mcl-e07a7eba6202202405a17e4774821d0a24918aed.tar.zst dexon-mcl-e07a7eba6202202405a17e4774821d0a24918aed.zip |
add mclBn_verifyOrderG1/G2
Diffstat (limited to 'include/mcl/bn.hpp')
-rw-r--r-- | include/mcl/bn.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mcl/bn.hpp b/include/mcl/bn.hpp index 93e8f8d..f8c5b85 100644 --- a/include/mcl/bn.hpp +++ b/include/mcl/bn.hpp @@ -915,6 +915,9 @@ struct ParamT { twist_b_type = tb_generic; } G1::init(0, cp.b, mcl::ec::Proj); + if (isBLS12) { + G1::setOrder(r); + } G2::init(0, twist_b, mcl::ec::Proj); G2::setOrder(r); |