From a06369fd8e22a11c78367f4ec9d4981cdce5379c Mon Sep 17 00:00:00 2001 From: "Diego F. Aranha" Date: Wed, 14 Aug 2024 14:30:31 +0200 Subject: [PATCH] Fix choice of algo for supersingular curves. --- src/pc/relic_pc_exp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/relic_pc_exp.c b/src/pc/relic_pc_exp.c index 33307a7f7..0c03222af 100644 --- a/src/pc/relic_pc_exp.c +++ b/src/pc/relic_pc_exp.c @@ -513,7 +513,7 @@ void gt_exp_sec(gt_t c, const gt_t a, const bn_t b) { return; } -#if FP_PRIME <= 1536 +#if FP_PRIME < 1536 size_t d = ep_curve_frdim(); d = (d > 4 ? d / 4 : 1); gt_exp_reg_gls(c, a, b, d, ep_curve_frdim());