From 752938daabf4279b6983721f3af0c94889b82eed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Fri, 16 Nov 2001 06:22:05 +0000 Subject: [PATCH] use a more interesting test case --- crypto/ec/ectest.c | 4 ++-- 1 file 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; -- 2.25.1