@ -64,7 +64,7 @@ endif
####################################################
LIB=$(TOPDIR)lib/libmcl$(OBJSUF).a
LDFLAGS += -lpthread -m$(BIT) -lgmp -lgmpxx
LDFLAGS += -lpthread -m$(BIT) -lgmp -lgmpxx -lcrypto
ifeq ($(USE_MONT_FP),1)
CFLAGS += -DUSE_MONT_FP
@ -2,7 +2,7 @@ include ../common.mk
TARGET=$(TEST_FILE)
SRC=fp_test.cpp ec_test.cpp fp_util_test.cpp window_method_test.cpp
SRC=fp_test.cpp ec_test.cpp fp_util_test.cpp window_method_test.cpp elgamal_test.cpp
ifeq ($(CPU),x64)
SRC+=fp_generator_test.cpp mont_fp_test.cpp
endif
@ -3,9 +3,6 @@
#include <mcl/gmp_util.hpp>
#include <mcl/elgamal.hpp>
#include <cybozu/random_generator.hpp>
#if defined(_WIN64) || defined(__x86_64__)
#define USE_MONT_FP
#endif
#include <mcl/ecparam.hpp>
#include <cybozu/crypto.hpp>