summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec2_smpl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-01-19 14:42:42 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-01-19 14:42:42 +0000
commitdd616752a1ad3a4cae469ea9ceac50141debe32b (patch)
tree6b6e31d34a26d94b783a44a13f28fbc0280847fe /crypto/ec/ec2_smpl.c
parent198ce9a611b451656e7c984e16452e285597a015 (diff)
oops, revert mistakenly committed EC changes
Diffstat (limited to 'crypto/ec/ec2_smpl.c')
-rw-r--r--crypto/ec/ec2_smpl.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c
index 00ad347b9a..cf357b462a 100644
--- a/crypto/ec/ec2_smpl.c
+++ b/crypto/ec/ec2_smpl.c
@@ -363,12 +363,7 @@ int ec_GF2m_simple_point_set_affine_coordinates(const EC_GROUP *group, EC_POINT
if (!BN_copy(&point->Z, BN_value_one())) goto err;
BN_set_negative(&point->Z, 0);
point->Z_is_one = 1;
- if (BN_num_bits(x) > BN_num_bits(&group->field))
- ret = 2;
- else if (BN_num_bits(y) > BN_num_bits(&group->field))
- ret = 2;
- else
- ret = 1;
+ ret = 1;
err:
return ret;
@@ -942,9 +937,6 @@ int ec_GF2m_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)
{
@@ -975,15 +967,6 @@ int ec_GF2m_simple_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT
return ret;
}
-int ec_GF2m_simple_range(const EC_GROUP *group, const EC_POINT *a)
- {
- if (BN_num_bits(&a->X) > BN_num_bits(&group->field))
- return 0;
- if (BN_num_bits(&a->Y) > BN_num_bits(&group->field))
- return 0;
- return 1;
- }
-
/* Forces the given EC_POINT to internally use affine coordinates. */
int ec_GF2m_simple_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)