From b53e44e57259b2b015c54de8ecbcf4e06be23298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Mon, 4 Nov 2002 13:17:22 +0000 Subject: implement and use new macros BN_get_sign(), BN_set_sign() Submitted by: Nils Larsch --- crypto/ec/ec2_smpl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crypto/ec/ec2_smpl.c') diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c index acf2055..5e37bfa 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; -- cgit v1.1