Skip to content

Commit

Permalink
Speedup 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 6f3ba53 commit b88fb5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cp/relic_cp_pcdel.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,9 @@ 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(rs[i + 1], rs[i + 1]);
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));
}
}
RLC_CATCH_ANY {
Expand Down

0 comments on commit b88fb5d

Please sign in to comment.