Skip to content

Commit

Permalink
Rename internal function.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Apr 1, 2024
1 parent 9164382 commit c55b5db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pc/relic_pc_exp.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* @param[in] c - the result.
* @param[in] a - the extension field element to exponentiate.
*/
static void gt_gls(gt_t c, const gt_t a) {
static void gt_psi(gt_t c, const gt_t a) {
gt_t b;

gt_null(b);
Expand Down Expand Up @@ -184,7 +184,7 @@ void gt_exp_imp(gt_t c, const gt_t a, const bn_t b, size_t f) {
l = RLC_MAX(l, _l[i]);
/* Apply Frobenius before flipping sign to build table. */
if (i > 0) {
gt_gls(t[i * RLC_GT_TABLE], t[(i - 1) * RLC_GT_TABLE]);
gt_psi(t[i * RLC_GT_TABLE], t[(i - 1) * RLC_GT_TABLE]);
}
}

Expand Down Expand Up @@ -331,7 +331,7 @@ void gt_exp_gls_imp(gt_t c, const gt_t a, const bn_t b, size_t f) {
l = RLC_MAX(l, _l[i]);
/* Apply Frobenius before flipping sign to build table. */
if (i > 0) {
gt_gls(t[i * RLC_GT_TABLE], t[(i - 1) * RLC_GT_TABLE]);
gt_psi(t[i * RLC_GT_TABLE], t[(i - 1) * RLC_GT_TABLE]);
}
}

Expand Down

0 comments on commit c55b5db

Please sign in to comment.