From bd5db2e54eca96569c367e0569576eaaccb01141 Mon Sep 17 00:00:00 2001 From: "Diego F. Aranha" Date: Wed, 11 Sep 2024 12:14:11 -0300 Subject: [PATCH] Second attempt. --- src/pc/relic_pc_exp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pc/relic_pc_exp.c b/src/pc/relic_pc_exp.c index d5085bcea..a86e0f54a 100644 --- a/src/pc/relic_pc_exp.c +++ b/src/pc/relic_pc_exp.c @@ -312,9 +312,9 @@ static void gt_exp_gls_sac(gt_t c, const gt_t a, const bn_t b, size_t d, gt_psi(q[i], q[i - 1]); } for (size_t i = 0; i < f; i++) { - gt_copy(c, q[i]); + gt_inv(c, q[i]); if (bn_sign(_b[i]) == RLC_NEG) { - gt_copy(c, q[i]); + gt_copy(q[i], c); } bn_abs(_b[i], _b[i]); }