Skip to content

Commit

Permalink
Fix comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Feb 12, 2025
1 parent bcba0fc commit 015df08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pc/relic_pc_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ int g1_is_valid(const g1_t a) {
case EP_B12:
case EP_B24:
case EP_B48:
/* Check [\psi(P) == [z^2 - 1]P. */
/* Check [\psi^2(P) == [-z^2]P. */
g1_mul_any(u, a, n);
g1_mul_any(u, u, n);
if (ep_curve_is_pairf() == EP_B24) {
/* Check [\psi(P) == [z^4 - 1]P. */
/* Check [\psi^2(P) == [-z^4]P. */
g1_mul_any(u, u, n);
g1_mul_any(u, u, n);
}
if (ep_curve_is_pairf() == EP_B48) {
/* Check [\psi(P) == [z^8 - 1]P. */
/* Check [\psi^2(P) == [-z^8]P. */
g1_mul_any(u, u, n);
g1_mul_any(u, u, n);
g1_mul_any(u, u, n);
Expand Down

0 comments on commit 015df08

Please sign in to comment.