From c4ba9961024a76f7357b9ab19344c5e776245d84 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 22 Oct 2018 17:36:00 +0900 Subject: update new api of mclBn_init --- src/bls_c_impl.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 g_Qcoeff; // precomputed Q inline const G2& getQ() { return g_Q; } inline const mcl::FixedArray& 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; -- cgit v1.2.3