init mapToG2_WBP19 in initBLS12

update-fork
MITSUNARI Shigeo 5 years ago
parent 7e827b9951
commit b5c2edee03
  1. 5
      include/mcl/bn.hpp

@ -523,6 +523,7 @@ struct MapTo {
assert(b);
(void)b;
Fr::inv(g2cofactorAdj_, g2cofactorAdjInv_);
mapToG2_WB19_.init();
}
/*
change mapTo function to mode
@ -537,12 +538,8 @@ struct MapTo {
case MCL_MAP_TO_MODE_ORIGINAL:
case MCL_MAP_TO_MODE_TRY_AND_INC:
case MCL_MAP_TO_MODE_ETH2:
mapToMode_ = mode;
return true;
break;
case MCL_MAP_TO_MODE_WB19:
mapToMode_ = mode;
mapToG2_WB19_.init();
return true;
break;
default:

Loading…
Cancel
Save