From 46ea2abf5f78310ee43669eb193230a5ed16cbdd Mon Sep 17 00:00:00 2001 From: "Diego F. Aranha" Date: Wed, 11 Sep 2024 12:12:12 -0300 Subject: [PATCH] Fix bug with negative subscalars. --- 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 03fbe4fbc..d5085bcea 100644 --- a/src/pc/relic_pc_exp.c +++ b/src/pc/relic_pc_exp.c @@ -314,7 +314,7 @@ static void gt_exp_gls_sac(gt_t c, const gt_t a, const bn_t b, size_t d, for (size_t i = 0; i < f; i++) { gt_copy(c, q[i]); if (bn_sign(_b[i]) == RLC_NEG) { - gt_inv(c, q[i]); + gt_copy(c, q[i]); } bn_abs(_b[i], _b[i]); }