diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-06 17:32:31 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-06 17:32:31 +0000 |
commit | f887e6f2ac4088d468258681455e353a8a765c9a (patch) | |
tree | 6767809f6e308b4502f4e4e29010e09059b3f88e /crypto/ec/ectest.c | |
parent | 1efcf2891f2b5950dbb603a78538066c47e62de5 (diff) | |
download | openssl-new-f887e6f2ac4088d468258681455e353a8a765c9a.tar.gz |
Add recent changes from HEAD.
Diffstat (limited to 'crypto/ec/ectest.c')
-rw-r--r-- | crypto/ec/ectest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/ec/ectest.c b/crypto/ec/ectest.c index e32b231e8d..2553982644 100644 --- a/crypto/ec/ectest.c +++ b/crypto/ec/ectest.c @@ -603,7 +603,7 @@ void prime_field_tests() if (!BN_pseudo_rand(y, BN_num_bits(y), 0, 0)) ABORT; if (!BN_add(z, z, y)) ABORT; - z->neg = 1; + BN_set_sign(z, 1); scalars[0] = y; scalars[1] = z; /* z = -(order + y) */ @@ -615,7 +615,7 @@ void prime_field_tests() if (!BN_pseudo_rand(x, BN_num_bits(y) - 1, 0, 0)) ABORT; if (!BN_add(z, x, y)) ABORT; - z->neg = 1; + BN_set_sign(z, 1); scalars[0] = x; scalars[1] = y; scalars[2] = z; /* z = -(x+y) */ @@ -1069,7 +1069,7 @@ void char2_field_tests() if (!BN_pseudo_rand(y, BN_num_bits(y), 0, 0)) ABORT; if (!BN_add(z, z, y)) ABORT; - z->neg = 1; + BN_set_sign(z, 1); scalars[0] = y; scalars[1] = z; /* z = -(order + y) */ @@ -1081,7 +1081,7 @@ void char2_field_tests() if (!BN_pseudo_rand(x, BN_num_bits(y) - 1, 0, 0)) ABORT; if (!BN_add(z, x, y)) ABORT; - z->neg = 1; + BN_set_sign(z, 1); scalars[0] = x; scalars[1] = y; scalars[2] = z; /* z = -(x+y) */ |