summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2025-01-11 13:41:17 +0000
committertb <>2025-01-11 13:41:17 +0000
commit5ea88094167c5741d321839ce7cb0186a8a7028f (patch)
tree5da8a06e8c031c8efbb6786c570437a6578527a4
parent28b0d0a86ff16d35928ff812a03e9ae9abb97ac1 (diff)
downloadopenbsd-5ea88094167c5741d321839ce7cb0186a8a7028f.tar.gz
openbsd-5ea88094167c5741d321839ce7cb0186a8a7028f.tar.bz2
openbsd-5ea88094167c5741d321839ce7cb0186a8a7028f.zip
Remove a pointless check about Z == 1
ok jsing
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c8
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: