diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-25 18:02:45 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-25 18:02:45 +0700 |
commit | 510ceb7d6b857d8d50059fc63fccf64eeb207bf4 (patch) | |
tree | 24afdb9eb9b37b590797d530585df76f644ced81 /crypto/src/asn1/DLSet.cs | |
parent | Mark BER parser classes Obsolete (for removal from public API) (diff) | |
download | BouncyCastle.NET-ed25519-510ceb7d6b857d8d50059fc63fccf64eeb207bf4.tar.xz |
Make DL encoding public in Asn1 API
Diffstat (limited to 'crypto/src/asn1/DLSet.cs')
-rw-r--r-- | crypto/src/asn1/DLSet.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crypto/src/asn1/DLSet.cs b/crypto/src/asn1/DLSet.cs index 4f44718cb..ad9901533 100644 --- a/crypto/src/asn1/DLSet.cs +++ b/crypto/src/asn1/DLSet.cs @@ -2,12 +2,12 @@ namespace Org.BouncyCastle.Asn1 { - internal class DLSet + public class DLSet : DerSet { - internal static new readonly DLSet Empty = new DLSet(); + public static new readonly DLSet Empty = new DLSet(); - internal static new DLSet FromVector(Asn1EncodableVector elementVector) + public static new DLSet FromVector(Asn1EncodableVector elementVector) { return elementVector.Count < 1 ? Empty : new DLSet(elementVector); } @@ -15,7 +15,7 @@ namespace Org.BouncyCastle.Asn1 /** * create an empty set */ - internal DLSet() + public DLSet() : base() { } @@ -23,12 +23,12 @@ namespace Org.BouncyCastle.Asn1 /** * create a set containing one object */ - internal DLSet(Asn1Encodable element) + public DLSet(Asn1Encodable element) : base(element) { } - internal DLSet(params Asn1Encodable[] elements) + public DLSet(params Asn1Encodable[] elements) : base(elements, false) { } @@ -36,7 +36,7 @@ namespace Org.BouncyCastle.Asn1 /** * create a set containing a vector of objects. */ - internal DLSet(Asn1EncodableVector elementVector) + public DLSet(Asn1EncodableVector elementVector) : base(elementVector, false) { } @@ -52,7 +52,7 @@ namespace Org.BouncyCastle.Asn1 return base.GetEncoding(encoding); return new ConstructedDLEncoding(Asn1Tags.Universal, Asn1Tags.Set, - Asn1OutputStream.GetContentsEncodings(encoding, m_elements)); + Asn1OutputStream.GetContentsEncodings(Asn1OutputStream.EncodingDL, m_elements)); } internal override IAsn1Encoding GetEncodingImplicit(int encoding, int tagClass, int tagNo) @@ -61,7 +61,7 @@ namespace Org.BouncyCastle.Asn1 return base.GetEncodingImplicit(encoding, tagClass, tagNo); return new ConstructedDLEncoding(tagClass, tagNo, - Asn1OutputStream.GetContentsEncodings(encoding, m_elements)); + Asn1OutputStream.GetContentsEncodings(Asn1OutputStream.EncodingDL, m_elements)); } } } |