diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-06 23:39:42 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-06 23:39:42 +0700 |
commit | f6f0935f51e33f1ccd01fb4d167abc23a4c9b1d1 (patch) | |
tree | c1d42127be4455f042e895ac9d0b12d3d98d9460 /crypto/src/asn1/Asn1Sequence.cs | |
parent | Trim the stack trace (diff) | |
download | BouncyCastle.NET-ed25519-f6f0935f51e33f1ccd01fb4d167abc23a4c9b1d1.tar.xz |
Rewrite DerExternal
Diffstat (limited to 'crypto/src/asn1/Asn1Sequence.cs')
-rw-r--r-- | crypto/src/asn1/Asn1Sequence.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1Sequence.cs b/crypto/src/asn1/Asn1Sequence.cs index 286b731f5..ecc773a1a 100644 --- a/crypto/src/asn1/Asn1Sequence.cs +++ b/crypto/src/asn1/Asn1Sequence.cs @@ -128,6 +128,11 @@ namespace Org.BouncyCastle.Asn1 this.elements = Asn1EncodableVector.CloneElements(elements); } + internal Asn1Sequence(Asn1Encodable[] elements, bool clone) + { + this.elements = clone ? Asn1EncodableVector.CloneElements(elements) : elements; + } + protected internal Asn1Sequence(Asn1EncodableVector elementVector) { if (null == elementVector) @@ -248,5 +253,8 @@ namespace Org.BouncyCastle.Asn1 { return CollectionUtilities.ToString(elements); } + + // TODO[asn1] Preferably return an Asn1External (doesn't exist yet) + internal abstract DerExternal ToAsn1External(); } } |