summary refs log tree commit diff
path: root/crypto/src/cms
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/cms
parentObsolete BerOutputStream (diff)
downloadBouncyCastle.NET-ed25519-bd5c69224e0c177298607503ed4e2a50776a8370.tar.xz
Obsolete DerOutputStream
Diffstat (limited to 'crypto/src/cms')
-rw-r--r--crypto/src/cms/CMSSignedDataGenerator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/cms/CMSSignedDataGenerator.cs b/crypto/src/cms/CMSSignedDataGenerator.cs
index f2676a440..beabab911 100644
--- a/crypto/src/cms/CMSSignedDataGenerator.cs
+++ b/crypto/src/cms/CMSSignedDataGenerator.cs
@@ -165,8 +165,8 @@ namespace Org.BouncyCastle.Cms
 
 					signedAttr = outer.GetAttributeSet(signed);
 
-					// sig must be composed from the DER encoding.
-					new DerOutputStream(sigStr).WriteObject(signedAttr);
+                    // sig must be composed from the DER encoding.
+                    Asn1OutputStream.Create(sigStr, Asn1Encodable.Der).WriteObject(signedAttr);
 				}
                 else if (content != null)
                 {