summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/asn1/test/X9Test.cs2
-rw-r--r--crypto/test/src/math/ec/test/ECAlgorithmsTest.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/test/src/asn1/test/X9Test.cs b/crypto/test/src/asn1/test/X9Test.cs
index db2541f7c..0d2c58f0f 100644
--- a/crypto/test/src/asn1/test/X9Test.cs
+++ b/crypto/test/src/asn1/test/X9Test.cs
@@ -65,7 +65,7 @@ namespace Org.BouncyCastle.Asn1.Tests
 
             X9ECPoint x9P = new X9ECPoint(ecP.Curve, p);
 
-            if (!Arrays.AreEqual(p.GetOctets(), x9P.Point.GetEncoded()))
+            if (!Arrays.AreEqual(p.GetOctets(), x9P.GetPointEncoding()))
             {
                 Fail("point encoding not preserved");
             }
diff --git a/crypto/test/src/math/ec/test/ECAlgorithmsTest.cs b/crypto/test/src/math/ec/test/ECAlgorithmsTest.cs
index 8956998ec..a6cef7e9d 100644
--- a/crypto/test/src/math/ec/test/ECAlgorithmsTest.cs
+++ b/crypto/test/src/math/ec/test/ECAlgorithmsTest.cs
@@ -166,7 +166,7 @@ namespace Org.BouncyCastle.Math.EC.Tests
                 else if (curve.SupportsCoordinateSystem(coord))
                 {
                     ECCurve c = curve.Configure().SetCoordinateSystem(coord).Create();
-                    x9s.Add(new X9ECParameters(c, c.ImportPoint(x9.G), x9.N, x9.H));
+                    x9s.Add(new X9ECParameters(c, new X9ECPoint(c.ImportPoint(x9.G), false), x9.N, x9.H));
                 }
             }
         }