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 e9e5b46 commit 68f415b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/epx/relic_ep4_mul.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static void ep4_mul_gls_imp(ep4_t r, const ep4_t p, const bn_t k) {
ep4_tab(t[0], q, RLC_WIDTH);
} else {
for (size_t j = 0; j < (1 << (RLC_WIDTH - 2)); j++) {
ep4_frb(t[i][j], t[i - 1][j], 1);
ep4_psi(t[i][j], t[i - 1][j]);
if (bn_sign(_k[i]) != bn_sign(_k[i - 1])) {
ep4_neg(t[i][j], t[i][j]);
}
Expand Down

0 comments on commit 68f415b

Please sign in to comment.