summary refs log tree commit diff
path: root/crypto/src/asn1/DERSetGenerator.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/DERSetGenerator.cs
parentObsolete BerOutputStream (diff)
downloadBouncyCastle.NET-ed25519-bd5c69224e0c177298607503ed4e2a50776a8370.tar.xz
Obsolete DerOutputStream
Diffstat (limited to 'crypto/src/asn1/DERSetGenerator.cs')
-rw-r--r--crypto/src/asn1/DERSetGenerator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/DERSetGenerator.cs b/crypto/src/asn1/DERSetGenerator.cs
index a25dd7de8..6b4d03eec 100644
--- a/crypto/src/asn1/DERSetGenerator.cs
+++ b/crypto/src/asn1/DERSetGenerator.cs
@@ -24,13 +24,13 @@ namespace Org.BouncyCastle.Asn1
 		public override void AddObject(
 			Asn1Encodable obj)
 		{
-			new DerOutputStream(_bOut).WriteObject(obj);
+            Asn1OutputStream.Create(_bOut, Asn1Encodable.Der).WriteObject(obj);
 		}
 
         public override void AddObject(
             Asn1Object obj)
         {
-            new DerOutputStream(_bOut).WriteObject(obj);
+            Asn1OutputStream.Create(_bOut, Asn1Encodable.Der).WriteObject(obj);
         }
 
         public override Stream GetRawOutputStream()