From c184bf4841716073fc276d8ebdd7106ffa38d5fc Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 3 Nov 2024 15:47:11 +0000 Subject: affine coordinates: the intention was to move the check, not to copy it... So... zap the now redundant check. Should have been committed along with ec_lib.c -r1.77 --- src/lib/libcrypto/ec/ecp_smpl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/libcrypto/ec/ecp_smpl.c b/src/lib/libcrypto/ec/ecp_smpl.c index 7f9612b7df..37e2d50d64 100644 --- a/src/lib/libcrypto/ec/ecp_smpl.c +++ b/src/lib/libcrypto/ec/ecp_smpl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecp_smpl.c,v 1.59 2024/11/02 15:58:49 tb Exp $ */ +/* $OpenBSD: ecp_smpl.c,v 1.60 2024/11/03 15:47:11 tb Exp $ */ /* Includes code written by Lenka Fibikova * for the OpenSSL project. * Includes code written by Bodo Moeller for the OpenSSL project. @@ -394,11 +394,6 @@ ec_GFp_simple_point_get_affine_coordinates(const EC_GROUP *group, BIGNUM *z, *Z, *Z_1, *Z_2, *Z_3; int ret = 0; - if (EC_POINT_is_at_infinity(group, point) > 0) { - ECerror(EC_R_POINT_AT_INFINITY); - return 0; - } - BN_CTX_start(ctx); if ((z = BN_CTX_get(ctx)) == NULL) -- cgit v1.2.3-55-g6feb