summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-11-03 15:47:11 +0000
committertb <>2024-11-03 15:47:11 +0000
commitc184bf4841716073fc276d8ebdd7106ffa38d5fc (patch)
tree1b7d1d71dd6a98e9f8538a6f5d492ee5dec09afe /src
parentd14398e8250d525c82217dec47102cf942e39f8b (diff)
downloadopenbsd-c184bf4841716073fc276d8ebdd7106ffa38d5fc.tar.gz
openbsd-c184bf4841716073fc276d8ebdd7106ffa38d5fc.tar.bz2
openbsd-c184bf4841716073fc276d8ebdd7106ffa38d5fc.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ec/ecp_smpl.c7
1 files changed, 1 insertions, 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 @@
1/* $OpenBSD: ecp_smpl.c,v 1.59 2024/11/02 15:58:49 tb Exp $ */ 1/* $OpenBSD: ecp_smpl.c,v 1.60 2024/11/03 15:47:11 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.
@@ -394,11 +394,6 @@ ec_GFp_simple_point_get_affine_coordinates(const EC_GROUP *group,
394 BIGNUM *z, *Z, *Z_1, *Z_2, *Z_3; 394 BIGNUM *z, *Z, *Z_1, *Z_2, *Z_3;
395 int ret = 0; 395 int ret = 0;
396 396
397 if (EC_POINT_is_at_infinity(group, point) > 0) {
398 ECerror(EC_R_POINT_AT_INFINITY);
399 return 0;
400 }
401
402 BN_CTX_start(ctx); 397 BN_CTX_start(ctx);
403 398
404 if ((z = BN_CTX_get(ctx)) == NULL) 399 if ((z = BN_CTX_get(ctx)) == NULL)