aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-10-23 09:09:46 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-10-23 09:09:46 +0800
commit8ec3e3025785998b38dc7d3516471951ab558550 (patch)
tree6bd3fb5a82823e52cb9a3af60e2f26082fd72de2 /test
parentc4ba9961024a76f7357b9ab19344c5e776245d84 (diff)
downloaddexon-bls-8ec3e3025785998b38dc7d3516471951ab558550.tar
dexon-bls-8ec3e3025785998b38dc7d3516471951ab558550.tar.gz
dexon-bls-8ec3e3025785998b38dc7d3516471951ab558550.tar.bz2
dexon-bls-8ec3e3025785998b38dc7d3516471951ab558550.tar.lz
dexon-bls-8ec3e3025785998b38dc7d3516471951ab558550.tar.xz
dexon-bls-8ec3e3025785998b38dc7d3516471951ab558550.tar.zst
dexon-bls-8ec3e3025785998b38dc7d3516471951ab558550.zip
add bls384_256 and test it
Diffstat (limited to 'test')
-rw-r--r--test/bls_c384_256_test.cpp3
-rw-r--r--test/bls_c_test.hpp4
2 files changed, 6 insertions, 1 deletions
diff --git a/test/bls_c384_256_test.cpp b/test/bls_c384_256_test.cpp
new file mode 100644
index 0000000..6f153f9
--- /dev/null
+++ b/test/bls_c384_256_test.cpp
@@ -0,0 +1,3 @@
+#define MCLBN_FP_UNIT_SIZE 6
+#define MCLBN_FR_UNIT_SIZE 4
+#include "bls_c_test.hpp"
diff --git a/test/bls_c_test.hpp b/test/bls_c_test.hpp
index 4991d36..1e11b88 100644
--- a/test/bls_c_test.hpp
+++ b/test/bls_c_test.hpp
@@ -309,8 +309,10 @@ CYBOZU_TEST_AUTO(all)
{
const int tbl[] = {
MCL_BN254,
-#if MCLBN_FP_UNIT_SIZE == 6
+#if MCLBN_FP_UNIT_SIZE == 6 && MCLBN_FR_UNIT_SIZE == 6
MCL_BN381_1,
+#endif
+#if MCLBN_FR_UNIT_SIZE == 6 && MCLBN_FP_UNIT_SIZE == 4
MCL_BLS12_381,
#endif
};