summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@gmail.com>2022-06-21 21:14:47 +0700
committerPeter Dettman <peter.dettman@gmail.com>2022-06-21 21:14:47 +0700
commit7ca8774497c8e5c46fb67369909d4d9a87cbeb3f (patch)
treee7ab545ca1b51d48f3506ccbf310c34275d2f8ac /crypto/test
parentRemove legacy TLS (diff)
downloadBouncyCastle.NET-ed25519-7ca8774497c8e5c46fb67369909d4d9a87cbeb3f.tar.xz
Remove per-ECPoint compression
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)); } } }