Skip to content

Commit

Permalink
Change API for general scalar mult to newer one.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Mar 30, 2024
1 parent 856a097 commit 184bfd7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ep/relic_ep_mul_cof.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void ep_mul_cof(ep_t r, const ep_t p) {
default:
/* multiply by cofactor to get the correct group. */
ep_curve_get_cof(k);
ep_mul_basic(r, p, k);
ep_mul_big(r, p, k);
}
} RLC_CATCH_ANY {
RLC_THROW(ERR_CAUGHT);
Expand Down
2 changes: 1 addition & 1 deletion src/epx/relic_ep2_mul_cof.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void ep2_mul_cof(ep2_t r, const ep2_t p) {
default:
/* Now, multiply by cofactor to get the correct group. */
ep2_curve_get_cof(k);
ep2_mul_basic(r, p, k);
ep2_mul_big(r, p, k);
break;
}
} RLC_CATCH_ANY {
Expand Down
2 changes: 1 addition & 1 deletion src/epx/relic_ep3_mul_cof.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void ep3_mul_cof(ep3_t r, const ep3_t p) {
default:
/* Now, multiply by cofactor to get the correct group. */
ep3_curve_get_cof(k);
ep3_mul_basic(r, p, k);
ep3_mul_big(r, p, k);
break;
}
} RLC_CATCH_ANY {
Expand Down
2 changes: 1 addition & 1 deletion src/epx/relic_ep4_mul_cof.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ void ep4_mul_cof(ep4_t r, const ep4_t p) {
default:
/* Now, multiply by cofactor to get the correct group. */
ep4_curve_get_cof(k);
ep4_mul_basic(r, p, k);
ep4_mul_big(r, p, k);
break;
}
} RLC_CATCH_ANY {
Expand Down

0 comments on commit 184bfd7

Please sign in to comment.