summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-07-02 20:58:00 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-07-02 20:58:00 +0700
commit0f687cabd37fcb29e12955f62457df29e022b61e (patch)
treec2b49592e151d6b8ac03de863132f1b64b7190fd
parentUse higher precision approximations for g1/g2 (GLV Type B) (diff)
downloadBouncyCastle.NET-ed25519-0f687cabd37fcb29e12955f62457df29e022b61e.tar.xz
Asterisk the default coordinates for each curve
-rw-r--r--crypto/test/src/math/ec/test/ECPointPerformanceTest.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs b/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs

index 51febaf32..2bcd5b502 100644 --- a/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs +++ b/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs
@@ -68,7 +68,8 @@ namespace Org.BouncyCastle.Math.EC.Tests ECCurve c = C; ECPoint g = G; - if (c.CoordinateSystem != coord) + bool defaultCoord = (c.CoordinateSystem == coord); + if (!defaultCoord) { c = C.Configure().SetCoordinateSystem(coord).Create(); g = c.ImportPoint(G); @@ -77,9 +78,10 @@ namespace Org.BouncyCastle.Math.EC.Tests double avgRate = RandMult(random, g, n); string coordName = COORD_NAMES[coord]; StringBuilder sb = new StringBuilder(); - sb.Append(" "); + sb.Append(" "); + sb.Append(defaultCoord ? '*' : ' '); sb.Append(coordName); - for (int j = sb.Length; j < 28; ++j) + for (int j = sb.Length; j < 30; ++j) { sb.Append(' '); }