diff options
author | Bodo Möller <bodo@openssl.org> | 2001-11-16 06:22:05 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-11-16 06:22:05 +0000 |
commit | 752938daabf4279b6983721f3af0c94889b82eed (patch) | |
tree | 9dc74168dcee3b411beb1662dec6183ee2afc6a9 /crypto | |
parent | c78515f55e2c135db3062514e9e28a53f5d81df5 (diff) |
use a more interesting test case
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ec/ectest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ectest.c b/crypto/ec/ectest.c index 1d0b337b45..b6ede1c3c6 100644 --- a/crypto/ec/ectest.c +++ b/crypto/ec/ectest.c @@ -564,10 +564,10 @@ int main(int argc, char *argv[]) fflush(stdout); if (!BN_pseudo_rand(y, BN_num_bits(y), 0, 0)) ABORT; - if (!BN_copy(z, y)) ABORT; + if (!BN_add(z, z, y)) ABORT; z->neg = 1; scalars[0] = y; - scalars[1] = z; /* z = -y */ + scalars[1] = z; /* z = -(order + y) */ if (!EC_POINTs_mul(group, P, NULL, 2, points, scalars, ctx)) ABORT; if (!EC_POINT_is_at_infinity(group, P)) ABORT; |