aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-06-06 05:04:06 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-06-06 05:04:06 +0800
commit194928d9e850b9296bf5edaec77d20e2ca921e21 (patch)
tree88a6d26b1764bcedbe0e401178634c0272843019 /src
parentb93d19879787b0e197f7ca3351a6becf549fe8fd (diff)
downloaddexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar
dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.gz
dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.bz2
dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.lz
dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.xz
dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.zst
dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.zip
unify curve const
Diffstat (limited to 'src')
-rw-r--r--src/bls.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bls.cpp b/src/bls.cpp
index d6f5bc0..d42c01c 100644
--- a/src/bls.cpp
+++ b/src/bls.cpp
@@ -168,14 +168,14 @@ void init(int curve, int maxUnitSize)
if (maxUnitSize != MCLBN_FP_UNIT_SIZE) throw cybozu::Exception("bls:init:bad maxUnitSize") << maxUnitSize << MCLBN_FP_UNIT_SIZE;
mcl::bn::CurveParam cp;
switch (curve) {
- case bls::CurveFp254BNb:
+ case mclBn_CurveFp254BNb:
cp = mcl::bn::CurveFp254BNb;
break;
#if MCLBN_FP_UNIT_SIZE == 6
- case bls::CurveFp382_1:
+ case mclBn_CurveFp382_1:
cp = mcl::bn::CurveFp382_1;
break;
- case bls::CurveFp382_2:
+ case mclBn_CurveFp382_2:
cp = mcl::bn::CurveFp382_2;
break;
#endif
@@ -192,7 +192,7 @@ void init(int curve, int maxUnitSize)
assert(sizeof(PublicKey) == sizeof(impl::PublicKey));
assert(sizeof(Signature) == sizeof(impl::Signature));
static G2 Q;
- if (curve == bls::CurveFp254BNb) {
+ if (curve == mclBn_CurveFp254BNb) {
Q.set(
Fp2("12723517038133731887338407189719511622662176727675373276651903807414909099441", "4168783608814932154536427934509895782246573715297911553964171371032945126671"),
Fp2("13891744915211034074451795021214165905772212241412891944830863846330766296736", "7937318970632701341203597196594272556916396164729705624521405069090520231616")