Skip to content

Commit

Permalink
Another optimization with simultaneous point normalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Sep 12, 2024
1 parent b88fb5d commit 82004ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cp/relic_cp_pcdel.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,11 @@ 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,
}
}
bn_mod(ls[i + 1], ls[i + 1], n);
g2_norm_sim(rs + RLC_MIN(m, pc_param_level() - RAND_DIST),
rs + RLC_MIN(m, pc_param_level() - RAND_DIST),
m - RLC_MIN(m, pc_param_level() - RAND_DIST));
}
if (m != RLC_MIN(m, pc_param_level() - RAND_DIST)) {
g2_norm_sim(rs + RLC_MIN(m, pc_param_level() - RAND_DIST) + 1,
rs + RLC_MIN(m, pc_param_level() - RAND_DIST) + 1,
m - RLC_MIN(m, pc_param_level() - RAND_DIST) - 1);
}
}
RLC_CATCH_ANY {
Expand Down

0 comments on commit 82004ff

Please sign in to comment.