From 2707ef159e0d988b8e4c0d9ed644a9e47deae3f4 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 5 Jun 2017 21:58:19 +0900 Subject: use struts of bn.h --- test/bls_c384_test.cpp | 4 ++-- test/bls_test.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3