Skip to content

Commit

Permalink
Fix for k=16.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Aug 12, 2024
1 parent 1c86c8f commit 5700c57
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pc/relic_pc_exp.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ void gt_exp_gls_imp(gt_t c, const gt_t a, const bn_t b, size_t f) {
gt_copy(t[0], q);
for (size_t i = 1; i < f; i++) {
for (size_t j = 0; j < RLC_GT_TABLE; j++) {
gt_frb(t[i * RLC_GT_TABLE + j],
t[(i - 1) * RLC_GT_TABLE + j], 1);
gt_psi(t[i * RLC_GT_TABLE + j], t[(i - 1) * RLC_GT_TABLE + j]);
if (s[i] != s[i - 1]) {
gt_inv(t[i * RLC_GT_TABLE + j], t[i * RLC_GT_TABLE + j]);
}
Expand Down Expand Up @@ -328,8 +327,7 @@ void gt_exp_reg_gls(gt_t c, const gt_t a, const bn_t b, size_t f) {
gt_copy(t[0], q);
for (size_t i = 1; i < f; i++) {
for (size_t j = 0; j < RLC_GT_TABLE; j++) {
gt_frb(t[i * RLC_GT_TABLE + j],
t[(i - 1) * RLC_GT_TABLE + j], 1);
gt_psi(t[i * RLC_GT_TABLE + j], t[(i - 1) * RLC_GT_TABLE + j]);
if (s[i] != s[i - 1]) {
gt_inv(t[i * RLC_GT_TABLE + j], t[i * RLC_GT_TABLE + j]);
}
Expand Down

0 comments on commit 5700c57

Please sign in to comment.