diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-05 20:58:19 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-05 20:58:19 +0800 |
commit | 2707ef159e0d988b8e4c0d9ed644a9e47deae3f4 (patch) | |
tree | 7398b3a533cefacfc4056d2ee15309cd72a45579 /test | |
parent | acf1c832c65429be7f07d8bae5ce91978f78e75f (diff) | |
download | dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.gz dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.bz2 dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.lz dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.xz dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.zst dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.zip |
use struts of bn.h
Diffstat (limited to 'test')
-rw-r--r-- | test/bls_c384_test.cpp | 4 | ||||
-rw-r--r-- | test/bls_test.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/bls_c384_test.cpp b/test/bls_c384_test.cpp index 40aa3a3..8405926 100644 --- a/test/bls_c384_test.cpp +++ b/test/bls_c384_test.cpp @@ -66,7 +66,7 @@ CYBOZU_TEST_AUTO(all) { const int tbl[] = { blsCurveFp254BNb, -#if MBN_FP_UNIT_SIZE == 6 +#if MCLBN_FP_UNIT_SIZE == 6 blsCurveFp382_1, blsCurveFp382_2 #endif @@ -83,7 +83,7 @@ CYBOZU_TEST_AUTO(all) }; for (size_t i = 0; i < sizeof(tbl) / sizeof(tbl[0]); i++) { printf("i=%d\n", (int)i); - blsInit(tbl[i], MBN_FP_UNIT_SIZE); + blsInit(tbl[i], MCLBN_FP_UNIT_SIZE); bls_use_stackTest(); blsDataTest(); blsOrderTest(curveOrderTbl[i], fieldOrderTbl[i]); diff --git a/test/bls_test.cpp b/test/bls_test.cpp index 22d6bf0..7c587d6 100644 --- a/test/bls_test.cpp +++ b/test/bls_test.cpp @@ -403,7 +403,7 @@ CYBOZU_TEST_AUTO(all) const char *name; } tbl[] = { { bls::CurveFp254BNb, "Fp254" }, -#if MBN_FP_UNIT_SIZE == 6 +#if MCLBN_FP_UNIT_SIZE == 6 { bls::CurveFp382_1, "Fp382_1" }, { bls::CurveFp382_2, "Fp382_2" }, #endif |