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/src/asn1/x9/X9ECParameters.cs | 25 +++---------------------- crypto/src/asn1/x9/X9ECPoint.cs | 5 ----- 2 files changed, 3 insertions(+), 27 deletions(-) (limited to 'crypto/src/asn1') 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) { } @@ -83,25 +83,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, 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(); -- cgit 1.4.1