diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-10-14 16:29:14 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-10-14 16:29:14 +0700 |
commit | b31a21061c5a42bc4325a911bcc18169feaddbbf (patch) | |
tree | a611ace1d4c1337794b0f4e7ee2f4661a4b02589 /crypto/src/cms | |
parent | Obsolete DerOutputStream (diff) | |
download | BouncyCastle.NET-ed25519-b31a21061c5a42bc4325a911bcc18169feaddbbf.tar.xz |
Add Asn1Encodable.EncodeTo methods
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) { |