summary refs log tree commit diff
path: root/crypto/src/asn1/BEROctetStringGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/BEROctetStringGenerator.cs')
-rw-r--r--crypto/src/asn1/BEROctetStringGenerator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/BEROctetStringGenerator.cs b/crypto/src/asn1/BEROctetStringGenerator.cs
index 0bef886f2..de039014b 100644
--- a/crypto/src/asn1/BEROctetStringGenerator.cs
+++ b/crypto/src/asn1/BEROctetStringGenerator.cs
@@ -48,7 +48,7 @@ namespace Org.BouncyCastle.Asn1
 			private byte[] _buf;
 			private int    _off;
 			private readonly BerOctetStringGenerator _gen;
-			private readonly DerOutputStream _derOut;
+			private readonly Asn1OutputStream _derOut;
 
 			internal BufferedBerOctetStream(
 				BerOctetStringGenerator	gen,
@@ -57,7 +57,7 @@ namespace Org.BouncyCastle.Asn1
 				_gen = gen;
 				_buf = buf;
 				_off = 0;
-				_derOut = new DerOutputStream(_gen.Out);
+				_derOut = Asn1OutputStream.Create(_gen.Out, Asn1Encodable.Der);
 			}
 
 			public override void WriteByte(