summary refs log tree commit diff
path: root/crypto/src/asn1/BerOctetString.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/BerOctetString.cs')
-rw-r--r--crypto/src/asn1/BerOctetString.cs17
1 files changed, 8 insertions, 9 deletions
diff --git a/crypto/src/asn1/BerOctetString.cs b/crypto/src/asn1/BerOctetString.cs
index 1478488a6..2140faef1 100644
--- a/crypto/src/asn1/BerOctetString.cs
+++ b/crypto/src/asn1/BerOctetString.cs
@@ -121,29 +121,28 @@ namespace Org.BouncyCastle.Asn1
 			return GetEnumerator();
 		}
 
-        internal override void Encode(
-            DerOutputStream derOut)
+        internal override void Encode(Asn1OutputStream asn1Out)
         {
-            if (derOut.IsBer)
+            if (asn1Out.IsBer)
             {
-                derOut.WriteByte(Asn1Tags.Constructed | Asn1Tags.OctetString);
+                asn1Out.WriteByte(Asn1Tags.Constructed | Asn1Tags.OctetString);
 
-                derOut.WriteByte(0x80);
+                asn1Out.WriteByte(0x80);
 
                 //
                 // write out the octet array
                 //
                 foreach (Asn1OctetString oct in this)
                 {
-                    oct.Encode(derOut);
+                    oct.Encode(asn1Out);
                 }
 
-				derOut.WriteByte(0x00);
-                derOut.WriteByte(0x00);
+				asn1Out.WriteByte(0x00);
+                asn1Out.WriteByte(0x00);
             }
             else
             {
-                base.Encode(derOut);
+                base.Encode(asn1Out);
             }
         }