diff options
| author | tb <> | 2025-01-11 21:20:39 +0000 |
|---|---|---|
| committer | tb <> | 2025-01-11 21:20:39 +0000 |
| commit | d2216bd3667ec88e5787f7e948bf4c4a33b2b194 (patch) | |
| tree | f82523ba97a3c840a25088722658a7395af347d9 /src | |
| parent | c5f11c68072b7d2a0865fc30eac20bc76b1435ab (diff) | |
| download | openbsd-d2216bd3667ec88e5787f7e948bf4c4a33b2b194.tar.gz openbsd-d2216bd3667ec88e5787f7e948bf4c4a33b2b194.tar.bz2 openbsd-d2216bd3667ec88e5787f7e948bf4c4a33b2b194.zip | |
Fix another awful comment in ec_point_cmp()
Diffstat (limited to 'src')
| -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) { |
