From: Bodo Möller Date: Fri, 16 Nov 2001 06:22:05 +0000 (+0000) Subject: use a more interesting test case X-Git-Tag: OpenSSL_0_9_6c~26^2~17 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=752938daabf4279b6983721f3af0c94889b82eed use a more interesting test case --- 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;