aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-10-22 16:36:00 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-10-22 16:36:00 +0800
commitc4ba9961024a76f7357b9ab19344c5e776245d84 (patch)
tree42dba519a2faec63169710d777cb298309a0fd32 /src
parentae27eb0267ff59f562bcf0cefa45db23c7374467 (diff)
downloaddexon-bls-c4ba9961024a76f7357b9ab19344c5e776245d84.tar
dexon-bls-c4ba9961024a76f7357b9ab19344c5e776245d84.tar.gz
dexon-bls-c4ba9961024a76f7357b9ab19344c5e776245d84.tar.bz2
dexon-bls-c4ba9961024a76f7357b9ab19344c5e776245d84.tar.lz
dexon-bls-c4ba9961024a76f7357b9ab19344c5e776245d84.tar.xz
dexon-bls-c4ba9961024a76f7357b9ab19344c5e776245d84.tar.zst
dexon-bls-c4ba9961024a76f7357b9ab19344c5e776245d84.zip
update new api of mclBn_init
Diffstat (limited to 'src')
-rw-r--r--src/bls_c_impl.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bls_c_impl.hpp b/src/bls_c_impl.hpp
index c041564..16b79f9 100644
--- a/src/bls_c_impl.hpp
+++ b/src/bls_c_impl.hpp
@@ -22,9 +22,9 @@ static mcl::FixedArray<Fp6, maxQcoeffN> g_Qcoeff; // precomputed Q
inline const G2& getQ() { return g_Q; }
inline const mcl::FixedArray<Fp6, maxQcoeffN>& getQcoeff() { return g_Qcoeff; }
-int blsInitNotThreadSafe(int curve, int maxUnitSize)
+int blsInitNotThreadSafe(int curve, int compiledTimeVar)
{
- int ret = mclBn_init(curve, maxUnitSize);
+ int ret = mclBn_init(curve, compiledTimeVar);
if (ret < 0) return ret;
bool b;
@@ -80,7 +80,7 @@ extern "C" BLS_DLL_API void blsFree(void *p)
#endif
#endif
-int blsInit(int curve, int maxUnitSize)
+int blsInit(int curve, int compiledTimeVar)
{
int ret = 0;
#ifdef USE_STD_MUTEX
@@ -92,7 +92,7 @@ int blsInit(int curve, int maxUnitSize)
#endif
static int g_curve = -1;
if (g_curve != curve) {
- ret = blsInitNotThreadSafe(curve, maxUnitSize);
+ ret = blsInitNotThreadSafe(curve, compiledTimeVar);
g_curve = curve;
}
return ret;