diff --git a/crypto/src/asn1/sec/ECPrivateKeyStructure.cs b/crypto/src/asn1/sec/ECPrivateKeyStructure.cs
index aec8e0af0..769ab2970 100644
--- a/crypto/src/asn1/sec/ECPrivateKeyStructure.cs
+++ b/crypto/src/asn1/sec/ECPrivateKeyStructure.cs
@@ -23,9 +23,7 @@ namespace Org.BouncyCastle.Asn1.Sec
return new ECPrivateKeyStructure(Asn1Sequence.GetInstance(obj));
}
- [Obsolete("Use 'GetInstance' instead")]
- public ECPrivateKeyStructure(
- Asn1Sequence seq)
+ private ECPrivateKeyStructure(Asn1Sequence seq)
{
if (seq == null)
throw new ArgumentNullException("seq");
@@ -33,18 +31,6 @@ namespace Org.BouncyCastle.Asn1.Sec
this.seq = seq;
}
- [Obsolete("Use constructor which takes 'orderBitLength' instead, to guarantee correct encoding")]
- public ECPrivateKeyStructure(
- BigInteger key)
- {
- if (key == null)
- throw new ArgumentNullException("key");
-
- this.seq = new DerSequence(
- new DerInteger(1),
- new DerOctetString(key.ToByteArrayUnsigned()));
- }
-
public ECPrivateKeyStructure(
int orderBitLength,
BigInteger key)
@@ -52,40 +38,6 @@ namespace Org.BouncyCastle.Asn1.Sec
{
}
- [Obsolete("Use constructor which takes 'orderBitLength' instead, to guarantee correct encoding")]
- public ECPrivateKeyStructure(
- BigInteger key,
- Asn1Encodable parameters)
- : this(key, null, parameters)
- {
- }
-
- [Obsolete("Use constructor which takes 'orderBitLength' instead, to guarantee correct encoding")]
- public ECPrivateKeyStructure(
- BigInteger key,
- DerBitString publicKey,
- Asn1Encodable parameters)
- {
- if (key == null)
- throw new ArgumentNullException("key");
-
- Asn1EncodableVector v = new Asn1EncodableVector(
- new DerInteger(1),
- new DerOctetString(key.ToByteArrayUnsigned()));
-
- if (parameters != null)
- {
- v.Add(new DerTaggedObject(true, 0, parameters));
- }
-
- if (publicKey != null)
- {
- v.Add(new DerTaggedObject(true, 1, publicKey));
- }
-
- this.seq = new DerSequence(v);
- }
-
public ECPrivateKeyStructure(
int orderBitLength,
BigInteger key,
|