From 8ec3e3025785998b38dc7d3516471951ab558550 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 23 Oct 2018 10:09:46 +0900 Subject: add bls384_256 and test it --- test/bls_c384_256_test.cpp | 3 +++ test/bls_c_test.hpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 test/bls_c384_256_test.cpp (limited to 'test') 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 }; -- cgit v1.2.3