From acf1c832c65429be7f07d8bae5ce91978f78e75f Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 4 Jun 2017 09:34:43 +0900 Subject: use MBN_.. instead of BLS_ --- src/bls.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/bls.cpp b/src/bls.cpp index fb3e404..92dcdda 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -9,14 +9,14 @@ #include #include #include -#if BLS_FP_UNIT_SIZE == 4 +#if MBN_FP_UNIT_SIZE == 4 #include using namespace mcl::bn256; -#elif BLS_FP_UNIT_SIZE == 6 +#elif MBN_FP_UNIT_SIZE == 6 #include using namespace mcl::bn384; #else - #error "define BLS_FP_UNIT_SIZE 4(or 6)" + #error "define MBN_FP_UNIT_SIZE 4(or 6)" #endif typedef std::vector FrVec; @@ -165,13 +165,13 @@ std::ostream& writeAsHex(std::ostream& os, const T& t) void init(int curve, int maxUnitSize) { - if (maxUnitSize != BLS_FP_UNIT_SIZE) throw cybozu::Exception("bls:init:bad maxUnitSize") << maxUnitSize << BLS_FP_UNIT_SIZE; + if (maxUnitSize != MBN_FP_UNIT_SIZE) throw cybozu::Exception("bls:init:bad maxUnitSize") << maxUnitSize << MBN_FP_UNIT_SIZE; mcl::bn::CurveParam cp; switch (curve) { case bls::CurveFp254BNb: cp = mcl::bn::CurveFp254BNb; break; -#if BLS_FP_UNIT_SIZE == 6 +#if MBN_FP_UNIT_SIZE == 6 case bls::CurveFp382_1: cp = mcl::bn::CurveFp382_1; break; -- cgit v1.2.3