diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-01 04:56:36 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-01 04:56:36 +0800 |
commit | ce6ad745414aaef1ca03a7d118e7b9ae8434655e (patch) | |
tree | afa049629a4862d6b193da6ea6b399bdb72a7f59 /src | |
parent | 0de2e4c1a1fa6fa93253b06378f48a6f9922ad49 (diff) | |
download | tangerine-mcl-ce6ad745414aaef1ca03a7d118e7b9ae8434655e.tar.gz tangerine-mcl-ce6ad745414aaef1ca03a7d118e7b9ae8434655e.tar.zst tangerine-mcl-ce6ad745414aaef1ca03a7d118e7b9ae8434655e.zip |
rename macro
Diffstat (limited to 'src')
-rw-r--r-- | src/bn_c.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bn_c.cpp b/src/bn_c.cpp index 814f2f3..855faca 100644 --- a/src/bn_c.cpp +++ b/src/bn_c.cpp @@ -9,7 +9,7 @@ static std::random_device g_rg; static cybozu::RandomGenerator g_rg; #endif -#if MCLBN_MAX_OP_UNIT_SIZE == 4 +#if MCLBN_FP_UNIT_SIZE == 4 #include <mcl/bn256.hpp> using namespace mcl::bn256; #else @@ -107,8 +107,8 @@ int MCLBN_setErrFile(const char *name) int MCLBN_initLib(int curve, int maxUnitSize) try { - if (maxUnitSize != MCLBN_MAX_OP_UNIT_SIZE) { - if (g_fp) fprintf(g_fp, "MCLBN_initLib:maxUnitSize is mismatch %d %d\n", maxUnitSize, MCLBN_MAX_OP_UNIT_SIZE); + if (maxUnitSize != MCLBN_FP_UNIT_SIZE) { + if (g_fp) fprintf(g_fp, "MCLBN_initLib:maxUnitSize is mismatch %d %d\n", maxUnitSize, MCLBN_FP_UNIT_SIZE); return -1; } mcl::bn::CurveParam cp; @@ -116,7 +116,7 @@ int MCLBN_initLib(int curve, int maxUnitSize) case MCLBN_curveFp254BNb: cp = mcl::bn::CurveFp254BNb; break; -#if MCLBN_MAX_OP_UNIT_SIZE == 6 +#if MCLBN_FP_UNIT_SIZE == 6 case MCLBN_curveFp382_1: cp = mcl::bn::CurveFp382_1; break; @@ -128,7 +128,7 @@ int MCLBN_initLib(int curve, int maxUnitSize) if (g_fp) fprintf(g_fp, "MCLBN_initLib:not supported curve %d\n", curve); return -1; } -#if MCLBN_MAX_OP_UNIT_SIZE == 4 +#if MCLBN_FP_UNIT_SIZE == 4 bn256init(cp); #else bn384init(cp); |