summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1OutputStream.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 17:03:04 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 17:03:04 +0700
commit2b93d0982010321dbbc51ecbef9c3adfb22e7860 (patch)
tree38fbf7ced481c78429877eebd7bd05e5ac458765 /crypto/src/asn1/Asn1OutputStream.cs
parentNull check and reformatting (diff)
downloadBouncyCastle.NET-ed25519-2b93d0982010321dbbc51ecbef9c3adfb22e7860.tar.xz
Add WriteElements method
Diffstat (limited to 'crypto/src/asn1/Asn1OutputStream.cs')
-rw-r--r--crypto/src/asn1/Asn1OutputStream.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1OutputStream.cs b/crypto/src/asn1/Asn1OutputStream.cs
index 240c7891b..5746d1c59 100644
--- a/crypto/src/asn1/Asn1OutputStream.cs
+++ b/crypto/src/asn1/Asn1OutputStream.cs
@@ -34,6 +34,14 @@ namespace Org.BouncyCastle.Asn1
             get { return true; }
         }
 
+        internal virtual void WriteElements(Asn1Encodable[] elements)
+        {
+            for (int i = 0, count = elements.Length; i < count; ++i)
+            {
+                elements[i].ToAsn1Object().Encode(this);
+            }
+        }
+
         public override void WriteObject(Asn1Encodable obj)
         {
             if (obj == null)