From de79f1b43a38fd67a2586a7cbc18e9dd3d5e0573 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 25 Feb 2014 16:23:07 +0700 Subject: Check a few more points in the encoding test --- crypto/test/src/math/ec/test/ECPointTest.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crypto/test/src/math/ec/test/ECPointTest.cs b/crypto/test/src/math/ec/test/ECPointTest.cs index f4ee07b6b..b3f9cb0e7 100644 --- a/crypto/test/src/math/ec/test/ECPointTest.cs +++ b/crypto/test/src/math/ec/test/ECPointTest.cs @@ -434,7 +434,13 @@ namespace Org.BouncyCastle.Math.EC.Tests ImplTestAddSubtract(q, infinity); ImplTestMultiply(q, n.BitLength); ImplTestMultiply(infinity, n.BitLength); - ImplTestEncoding(q); + + ECPoint p = q; + for (int i = 0; i < 10; ++i) + { + ImplTestEncoding(p); + p = p.Twice(); + } } private void ImplAddSubtractMultiplyTwiceEncodingTestAllCoords(X9ECParameters x9ECParameters) -- cgit 1.4.1