diff options
| author | tb <> | 2025-01-11 13:41:17 +0000 |
|---|---|---|
| committer | tb <> | 2025-01-11 13:41:17 +0000 |
| commit | a5b17dde21273b1a9b29861b325009fdf77dcc0c (patch) | |
| tree | 5da8a06e8c031c8efbb6786c570437a6578527a4 /src | |
| parent | 9dcc80a14d46232c4f88fa057664e5c818ef75ed (diff) | |
| download | openbsd-a5b17dde21273b1a9b29861b325009fdf77dcc0c.tar.gz openbsd-a5b17dde21273b1a9b29861b325009fdf77dcc0c.tar.bz2 openbsd-a5b17dde21273b1a9b29861b325009fdf77dcc0c.zip | |
Remove a pointless check about Z == 1
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index c2a5545c30..de6fe20083 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_lib.c,v 1.106 2025/01/11 13:38:42 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.107 2025/01/11 13:41:17 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -1249,12 +1249,6 @@ EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx_in) | |||
| 1249 | if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) | 1249 | if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) |
| 1250 | goto err; | 1250 | goto err; |
| 1251 | 1251 | ||
| 1252 | /* XXX - is this the right spot for this check? */ | ||
| 1253 | if (!point->Z_is_one) { | ||
| 1254 | ECerror(ERR_R_INTERNAL_ERROR); | ||
| 1255 | goto err; | ||
| 1256 | } | ||
| 1257 | |||
| 1258 | ret = 1; | 1252 | ret = 1; |
| 1259 | 1253 | ||
| 1260 | err: | 1254 | err: |
