aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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
};