diff options
Diffstat (limited to 'crypto/src/cms')
-rw-r--r-- | crypto/src/cms/CMSSignedDataGenerator.cs | 2 |
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) { |