diff options
author | tb <> | 2025-01-11 21:20:39 +0000 |
---|---|---|
committer | tb <> | 2025-01-11 21:20:39 +0000 |
commit | a39a72726a6327930f24d3b7e47b595a31734dfc (patch) | |
tree | f82523ba97a3c840a25088722658a7395af347d9 | |
parent | 651b6ec604b1295ca4893027e48824738b937831 (diff) | |
download | openbsd-a39a72726a6327930f24d3b7e47b595a31734dfc.tar.gz openbsd-a39a72726a6327930f24d3b7e47b595a31734dfc.tar.bz2 openbsd-a39a72726a6327930f24d3b7e47b595a31734dfc.zip |
Fix another awful comment in ec_point_cmp()
-rw-r--r-- | src/lib/libcrypto/ec/ecp_methods.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ecp_methods.c b/src/lib/libcrypto/ec/ecp_methods.c index d4e26ac262..3809bf9928 100644 --- a/src/lib/libcrypto/ec/ecp_methods.c +++ b/src/lib/libcrypto/ec/ecp_methods.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_methods.c,v 1.35 2025/01/11 21:13:21 tb Exp $ */ | 1 | /* $OpenBSD: ecp_methods.c,v 1.36 2025/01/11 21:20:39 tb Exp $ */ |
2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> | 2 | /* Includes code written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> |
3 | * for the OpenSSL project. | 3 | * for the OpenSSL project. |
4 | * Includes code written by Bodo Moeller for the OpenSSL project. | 4 | * Includes code written by Bodo Moeller for the OpenSSL project. |
@@ -298,9 +298,8 @@ ec_point_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, | |||
298 | goto end; | 298 | goto end; |
299 | 299 | ||
300 | /* | 300 | /* |
301 | * We have to decide whether (X_a/Z_a^2, Y_a/Z_a^3) = (X_b/Z_b^2, | 301 | * Decide whether (X_a/Z_a^2, Y_a/Z_a^3) = (X_b/Z_b^2, Y_b/Z_b^3), or |
302 | * Y_b/Z_b^3), or equivalently, whether (X_a*Z_b^2, Y_a*Z_b^3) = | 302 | * equivalently, (X_a*Z_b^2, Y_a*Z_b^3) = (X_b*Z_a^2, Y_b*Z_a^3). |
303 | * (X_b*Z_a^2, Y_b*Z_a^3). | ||
304 | */ | 303 | */ |
305 | 304 | ||
306 | if (!b->Z_is_one) { | 305 | if (!b->Z_is_one) { |