diff options
author | Bodo Möller <bodo@openssl.org> | 2002-11-04 13:17:22 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-11-04 13:17:22 +0000 |
commit | b53e44e57259b2b015c54de8ecbcf4e06be23298 (patch) | |
tree | 4d06528db2e5e7d8ad1680fc59159a4c689c7b3c /crypto/ec/ec2_smpl.c | |
parent | e5f4d8279dccad0f6dde324f52333291739dcca3 (diff) |
implement and use new macros BN_get_sign(), BN_set_sign()
Submitted by: Nils Larsch
Diffstat (limited to 'crypto/ec/ec2_smpl.c')
-rw-r--r-- | crypto/ec/ec2_smpl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c index acf205597b..5e37bfaca7 100644 --- a/crypto/ec/ec2_smpl.c +++ b/crypto/ec/ec2_smpl.c @@ -349,11 +349,11 @@ int ec_GF2m_simple_point_set_affine_coordinates(const EC_GROUP *group, EC_POINT } if (!BN_copy(&point->X, x)) goto err; - point->X.neg = 0; + BN_set_sign(&point->X, 0); if (!BN_copy(&point->Y, y)) goto err; - point->Y.neg = 0; + BN_set_sign(&point->Y, 0); if (!BN_copy(&point->Z, BN_value_one())) goto err; - point->Z.neg = 0; + BN_set_sign(&point->Z, 0); point->Z_is_one = 1; ret = 1; @@ -384,12 +384,12 @@ int ec_GF2m_simple_point_get_affine_coordinates(const EC_GROUP *group, const EC_ if (x != NULL) { if (!BN_copy(x, &point->X)) goto err; - x->neg = 0; + BN_set_sign(x, 0); } if (y != NULL) { if (!BN_copy(y, &point->Y)) goto err; - y->neg = 0; + BN_set_sign(y, 0); } ret = 1; |