Skip to content

Commit

Permalink
Fix bug with negative subscalars.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Sep 11, 2024
1 parent d712ae9 commit 46ea2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pc/relic_pc_exp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 46ea2ab

Please sign in to comment.