summary refs log tree commit diff
path: root/crypto/src/asn1/BerSet.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 14:17:03 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 14:17:03 +0700
commitbd5c69224e0c177298607503ed4e2a50776a8370 (patch)
tree4efe6b206a421bbe9813544f6c17818496d59684 /crypto/src/asn1/BerSet.cs
parentObsolete BerOutputStream (diff)
downloadBouncyCastle.NET-ed25519-bd5c69224e0c177298607503ed4e2a50776a8370.tar.xz
Obsolete DerOutputStream
Diffstat (limited to 'crypto/src/asn1/BerSet.cs')
-rw-r--r--crypto/src/asn1/BerSet.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto/src/asn1/BerSet.cs b/crypto/src/asn1/BerSet.cs
index 4e752559d..95214fea9 100644
--- a/crypto/src/asn1/BerSet.cs
+++ b/crypto/src/asn1/BerSet.cs
@@ -44,24 +44,24 @@ namespace Org.BouncyCastle.Asn1
         {
         }
 
-        internal override void Encode(DerOutputStream derOut)
+        internal override void Encode(Asn1OutputStream asn1Out)
         {
-            if (derOut.IsBer)
+            if (asn1Out.IsBer)
             {
-                derOut.WriteByte(Asn1Tags.Set | Asn1Tags.Constructed);
-                derOut.WriteByte(0x80);
+                asn1Out.WriteByte(Asn1Tags.Set | Asn1Tags.Constructed);
+                asn1Out.WriteByte(0x80);
 
                 foreach (Asn1Encodable o in this)
 				{
-                    o.ToAsn1Object().Encode(derOut);
+                    o.ToAsn1Object().Encode(asn1Out);
                 }
 
-                derOut.WriteByte(0x00);
-                derOut.WriteByte(0x00);
+                asn1Out.WriteByte(0x00);
+                asn1Out.WriteByte(0x00);
             }
             else
             {
-                base.Encode(derOut);
+                base.Encode(asn1Out);
             }
         }
     }