Skip to content

Commit

Permalink
Another fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Sep 22, 2024
1 parent f19b6b4 commit 601e97e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cp/relic_cp_pcdel.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,12 +754,10 @@ int cp_amprd_gen(bn_t *ls, g2_t *rs, bn_t c, bn_t r, bn_t d, g1_t u, g2_t v,
g2_set_infty(rs[i + 1]);
for (j = 0; j < l; j++) {
if (naf[j] > 0) {
counter++;
bn_add(ls[i + 1], ls[i + 1], ls[j + 1]);
g2_add(rs[i + 1], rs[i + 1], rs[j + 1]);
}
if (naf[j] < 0) {
counter++;
bn_sub(ls[i + 1], ls[i + 1], ls[j + 1]);
g2_sub(rs[i + 1], rs[i + 1], rs[j + 1]);
}
Expand Down

0 comments on commit 601e97e

Please sign in to comment.