From 7ca8774497c8e5c46fb67369909d4d9a87cbeb3f Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 21 Jun 2022 21:14:47 +0700 Subject: Remove per-ECPoint compression --- crypto/test/src/asn1/test/X9Test.cs | 2 +- crypto/test/src/math/ec/test/ECAlgorithmsTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/test/src') 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)); } } } -- cgit 1.5.1