From 015df081d2671f63758dd7e00a22d535ccac93dd Mon Sep 17 00:00:00 2001 From: "Diego F. Aranha" Date: Wed, 12 Feb 2025 11:27:38 +0100 Subject: [PATCH] Fix comments. --- src/pc/relic_pc_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pc/relic_pc_util.c b/src/pc/relic_pc_util.c index bd799675e..521a5f8e4 100644 --- a/src/pc/relic_pc_util.c +++ b/src/pc/relic_pc_util.c @@ -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);