summary refs log tree commit diff
path: root/crypto/test/src/math/ec
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-02-25 16:23:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-02-25 16:23:07 +0700
commitde79f1b43a38fd67a2586a7cbc18e9dd3d5e0573 (patch)
treecfa473b0cf56127c7e43c401501a6f89ebf65693 /crypto/test/src/math/ec
parentImplement the 8m + 5 case from Pocklington's sqrt algorithm (seems to be only... (diff)
downloadBouncyCastle.NET-ed25519-de79f1b43a38fd67a2586a7cbc18e9dd3d5e0573.tar.xz
Check a few more points in the encoding test
Diffstat (limited to 'crypto/test/src/math/ec')
-rw-r--r--crypto/test/src/math/ec/test/ECPointTest.cs8
1 files changed, 7 insertions, 1 deletions
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)