From 0f687cabd37fcb29e12955f62457df29e022b61e Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 2 Jul 2014 20:58:00 +0700 Subject: Asterisk the default coordinates for each curve --- crypto/test/src/math/ec/test/ECPointPerformanceTest.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crypto/test') 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(' '); } -- cgit 1.5.1