diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-04 05:55:43 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-04 05:55:43 +0800 |
commit | 5a38c2e8c9a27555229e9cd61455caf1aa3d8907 (patch) | |
tree | e9ab1cbf24a5f65601cea7e6681044b83b947d5d /src | |
parent | 1682083203424fee2670e8e1c57f4786ed8b3234 (diff) | |
download | dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.gz dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.bz2 dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.lz dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.xz dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.tar.zst dexon-bls-5a38c2e8c9a27555229e9cd61455caf1aa3d8907.zip |
rename bls_if.h to bls.h
Diffstat (limited to 'src')
-rw-r--r-- | src/bls.cpp | 10 | ||||
-rw-r--r-- | src/bls_c.cpp (renamed from src/bls_if.cpp) | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/bls.cpp b/src/bls.cpp index 7b6f40b..fb3e404 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -9,14 +9,14 @@ #include <vector> #include <string> #include <bls/bls.hpp> -#if BLS_MAX_OP_UNIT_SIZE == 4 +#if BLS_FP_UNIT_SIZE == 4 #include <mcl/bn256.hpp> using namespace mcl::bn256; -#elif BLS_MAX_OP_UNIT_SIZE == 6 +#elif BLS_FP_UNIT_SIZE == 6 #include <mcl/bn384.hpp> using namespace mcl::bn384; #else - #error "define BLS_MAX_OP_UNIT_SIZE 4(or 6)" + #error "define BLS_FP_UNIT_SIZE 4(or 6)" #endif typedef std::vector<Fr> FrVec; @@ -165,13 +165,13 @@ std::ostream& writeAsHex(std::ostream& os, const T& t) void init(int curve, int maxUnitSize) { - if (maxUnitSize != BLS_MAX_OP_UNIT_SIZE) throw cybozu::Exception("bls:init:bad maxUnitSize") << maxUnitSize << BLS_MAX_OP_UNIT_SIZE; + if (maxUnitSize != BLS_FP_UNIT_SIZE) throw cybozu::Exception("bls:init:bad maxUnitSize") << maxUnitSize << BLS_FP_UNIT_SIZE; mcl::bn::CurveParam cp; switch (curve) { case bls::CurveFp254BNb: cp = mcl::bn::CurveFp254BNb; break; -#if BLS_MAX_OP_UNIT_SIZE == 6 +#if BLS_FP_UNIT_SIZE == 6 case bls::CurveFp382_1: cp = mcl::bn::CurveFp382_1; break; diff --git a/src/bls_if.cpp b/src/bls_c.cpp index d32740d..959d788 100644 --- a/src/bls_if.cpp +++ b/src/bls_c.cpp @@ -1,6 +1,6 @@ #include "bls/bls.hpp" #define BLS_DLL_EXPORT -#include "bls/bls_if.h" +#include "bls/bls.h" #include <iostream> #include <sstream> #include <memory.h> |