summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1Encodable.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/Asn1Encodable.cs
parentObsolete BerOutputStream (diff)
downloadBouncyCastle.NET-ed25519-bd5c69224e0c177298607503ed4e2a50776a8370.tar.xz
Obsolete DerOutputStream
Diffstat (limited to 'crypto/src/asn1/Asn1Encodable.cs')
-rw-r--r--crypto/src/asn1/Asn1Encodable.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/Asn1Encodable.cs b/crypto/src/asn1/Asn1Encodable.cs
index f70b3a4cb..f3c0f725f 100644
--- a/crypto/src/asn1/Asn1Encodable.cs
+++ b/crypto/src/asn1/Asn1Encodable.cs
@@ -11,7 +11,7 @@ namespace Org.BouncyCastle.Asn1
 		public byte[] GetEncoded()
         {
             MemoryStream bOut = new MemoryStream();
-            Asn1OutputStream aOut = new Asn1OutputStream(bOut);
+            Asn1OutputStream aOut = Asn1OutputStream.Create(bOut);
 
             ToAsn1Object().Encode(aOut);
 
@@ -23,7 +23,7 @@ namespace Org.BouncyCastle.Asn1
             if (encoding.Equals(Der))
             {
                 MemoryStream bOut = new MemoryStream();
-                DerOutputStream dOut = new DerOutputStream(bOut);
+                Asn1OutputStream dOut = Asn1OutputStream.Create(bOut, Der);
 
                 Asn1Object asn1Object = ToAsn1Object();