From c9ec538d09b15d95835151a020716873e06064c9 Mon Sep 17 00:00:00 2001 From: "Diego F. Aranha" Date: Mon, 27 Jan 2025 10:25:18 +0100 Subject: [PATCH] Add ifdef guards here. --- src/epx/relic_ep2_curve.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/epx/relic_ep2_curve.c b/src/epx/relic_ep2_curve.c index 1d7697339..5f6fc7f7a 100644 --- a/src/epx/relic_ep2_curve.c +++ b/src/epx/relic_ep2_curve.c @@ -802,8 +802,9 @@ void ep2_curve_set_twist(int type) { fp2_new(u); bn_new(r); bn_new(h); - + switch (ep_param_get()) { +#if defined(EP_ENDOM) #if FP_PRIME == 158 case BN_P158: ASSIGN(BN_P158); @@ -866,6 +867,7 @@ void ep2_curve_set_twist(int type) { ASSIGN(B12_P1150); break; #endif +#endif /* EP_ENDOM */ default: (void)str; RLC_THROW(ERR_NO_VALID);