aboutsummaryrefslogtreecommitdiffstats
path: root/include/mcl
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-04-04 11:58:49 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-04-04 11:58:49 +0800
commit0d9e994f57db742eb3266bd130d3e4aec7bd7553 (patch)
treea20c300aa78d6e66da9b4a72ce198b95dba00477 /include/mcl
parent16babbe104c4d1cf1832387ce043ec8a68a76440 (diff)
downloadtangerine-mcl-0d9e994f57db742eb3266bd130d3e4aec7bd7553.tar.gz
tangerine-mcl-0d9e994f57db742eb3266bd130d3e4aec7bd7553.tar.zst
tangerine-mcl-0d9e994f57db742eb3266bd130d3e4aec7bd7553.zip
fix clear GLV for BLS12
Diffstat (limited to 'include/mcl')
-rw-r--r--include/mcl/bn.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/mcl/bn.hpp b/include/mcl/bn.hpp
index a962ab5..93e8f8d 100644
--- a/include/mcl/bn.hpp
+++ b/include/mcl/bn.hpp
@@ -991,7 +991,12 @@ struct BNT {
{
param.init(cp, mode);
G2withF::init(cp.isMtype);
- if (!param.isBLS12) {
+ if (param.isBLS12) {
+ // not supported yet
+ G1::setMulArrayGLV(0);
+ G2::setMulArrayGLV(0);
+ Fp12::setPowArrayGLV(0);
+ } else {
G1::setMulArrayGLV(mulArrayGLV1);
G2::setMulArrayGLV(mulArrayGLV2);
Fp12::setPowArrayGLV(powArrayGLV2);