summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1Sequence.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-06 23:39:42 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-06 23:39:42 +0700
commitf6f0935f51e33f1ccd01fb4d167abc23a4c9b1d1 (patch)
treec1d42127be4455f042e895ac9d0b12d3d98d9460 /crypto/src/asn1/Asn1Sequence.cs
parentTrim the stack trace (diff)
downloadBouncyCastle.NET-ed25519-f6f0935f51e33f1ccd01fb4d167abc23a4c9b1d1.tar.xz
Rewrite DerExternal
Diffstat (limited to 'crypto/src/asn1/Asn1Sequence.cs')
-rw-r--r--crypto/src/asn1/Asn1Sequence.cs8
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();
     }
 }