summary refs log tree commit diff
path: root/crypto/src/asn1
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/src/asn1
parentRemove legacy TLS (diff)
downloadBouncyCastle.NET-ed25519-7ca8774497c8e5c46fb67369909d4d9a87cbeb3f.tar.xz
Remove per-ECPoint compression
Diffstat (limited to 'crypto/src/asn1')
-rw-r--r--crypto/src/asn1/x9/X9ECParameters.cs25
-rw-r--r--crypto/src/asn1/x9/X9ECPoint.cs5
2 files changed, 3 insertions, 27 deletions
diff --git a/crypto/src/asn1/x9/X9ECParameters.cs b/crypto/src/asn1/x9/X9ECParameters.cs
index aa84063b8..c484fc62d 100644
--- a/crypto/src/asn1/x9/X9ECParameters.cs
+++ b/crypto/src/asn1/x9/X9ECParameters.cs
@@ -67,9 +67,9 @@ namespace Org.BouncyCastle.Asn1.X9
         }
 
         public X9ECParameters(
-            ECCurve		curve,
-            ECPoint		g,
-            BigInteger	n)
+            ECCurve curve,
+            X9ECPoint g,
+            BigInteger n)
             : this(curve, g, n, null, null)
         {
         }
@@ -84,25 +84,6 @@ namespace Org.BouncyCastle.Asn1.X9
         }
 
         public X9ECParameters(
-            ECCurve		curve,
-            ECPoint		g,
-            BigInteger	n,
-            BigInteger	h)
-            : this(curve, g, n, h, null)
-        {
-        }
-
-        public X9ECParameters(
-            ECCurve		curve,
-            ECPoint		g,
-            BigInteger	n,
-            BigInteger	h,
-            byte[]		seed)
-            : this(curve, new X9ECPoint(g), n, h, seed)
-        {
-        }
-
-        public X9ECParameters(
             ECCurve     curve,
             X9ECPoint   g,
             BigInteger  n,
diff --git a/crypto/src/asn1/x9/X9ECPoint.cs b/crypto/src/asn1/x9/X9ECPoint.cs
index 7ef4f13bc..baa01835a 100644
--- a/crypto/src/asn1/x9/X9ECPoint.cs
+++ b/crypto/src/asn1/x9/X9ECPoint.cs
@@ -15,11 +15,6 @@ namespace Org.BouncyCastle.Asn1.X9
         private ECCurve c;
         private ECPoint p;
 
-        public X9ECPoint(ECPoint p)
-            : this(p, false)
-        {
-        }
-
         public X9ECPoint(ECPoint p, bool compressed)
         {
             this.p = p.Normalize();