@ -49,12 +49,12 @@ else
BIT_OPT=-m$(BIT)
endif
INC_OPT=-I include -I test -I ../xbyak -I ../cybozulib/include
CFLAGS+=$(CFLAGS_WARN) $(BIT_OPT) $(INC_OPT)
CFLAGS+=$(CFLAGS_WARN) $(BIT_OPT) $(INC_OPT) $(CFLAGS_USER)
DEBUG=0
ifeq ($(DEBUG),0)
CFLAGS+=$(CFLAGS_OPT)
LDFLAGS+=-lgmp -lgmpxx -lcrypto $(BIT_OPT)
LDFLAGS+=-lgmp -lgmpxx -lcrypto $(BIT_OPT) $(LDFLAGS_USER)
CFLAGS += -DMCL_USE_LLVM -fPIC
@ -142,7 +142,7 @@ struct ParamT {
void init(const CurveParam& cp = CurveFp254BNb, fp::Mode mode = fp::FP_AUTO)
{
z = cp.z;
gmp::setArray(z, &cp.z, 1);
const int pCoff[] = { 1, 6, 24, 36, 36 };
const int rCoff[] = { 1, 6, 18, 36, 36 };
const int tCoff[] = { 1, 0, 6, 0, 0 };