oops, revert mistakenly committed EC changes
[openssl.git] / crypto / ec / ecp_smpl.c
index 3e56b71a211aa421baa3da6696ffe9890d1937c6..4d26f8bdf6921f4ae9a9e5be06fbde3f54b55628 100644 (file)
@@ -441,11 +441,8 @@ int ec_GFp_simple_set_Jprojective_coordinates_GFp(const EC_GROUP *group, EC_POIN
                        }
                point->Z_is_one = Z_is_one;
                }
-
-       if (BN_cmp(&point->X, x) || BN_cmp(&point->Y, y))
-               ret = 2;
-       else
-               ret = 1;
+       
+       ret = 1;
        
  err:
        if (new_ctx != NULL)
@@ -1409,9 +1406,6 @@ int ec_GFp_simple_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *
                {
                return EC_POINT_is_at_infinity(group, b) ? 0 : 1;
                }
-
-       if (EC_POINT_is_at_infinity(group, b))
-               return 1;
        
        if (a->Z_is_one && b->Z_is_one)
                {
@@ -1500,6 +1494,7 @@ int ec_GFp_simple_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *
        return ret;
        }
 
+
 int ec_GFp_simple_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
        {
        BN_CTX *new_ctx = NULL;