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 16:29:14 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-10-14 16:29:14 +0700
commitb31a21061c5a42bc4325a911bcc18169feaddbbf (patch)
treea611ace1d4c1337794b0f4e7ee2f4661a4b02589 /crypto/src/cms
parentObsolete DerOutputStream (diff)
downloadBouncyCastle.NET-ed25519-b31a21061c5a42bc4325a911bcc18169feaddbbf.tar.xz
Add Asn1Encodable.EncodeTo methods
Diffstat (limited to 'crypto/src/cms')
-rw-r--r--crypto/src/cms/CMSSignedDataGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/cms/CMSSignedDataGenerator.cs b/crypto/src/cms/CMSSignedDataGenerator.cs
index beabab911..f2d54baa6 100644
--- a/crypto/src/cms/CMSSignedDataGenerator.cs
+++ b/crypto/src/cms/CMSSignedDataGenerator.cs
@@ -166,7 +166,7 @@ namespace Org.BouncyCastle.Cms
 					signedAttr = outer.GetAttributeSet(signed);
 
                     // sig must be composed from the DER encoding.
-                    Asn1OutputStream.Create(sigStr, Asn1Encodable.Der).WriteObject(signedAttr);
+                    signedAttr.EncodeTo(sigStr, Asn1Encodable.Der);
 				}
                 else if (content != null)
                 {