diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-24 12:57:09 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-07-24 12:57:09 +0700 |
commit | 521454273ff2d91222cf4b8ac6ab5f16c54b40df (patch) | |
tree | a996faffeebf62b4866a2e26a5c5fcf3407662c0 /crypto/src/cms/CMSSignedDataStreamGenerator.cs | |
parent | adjusted HQC and BIKE keys for latest BC Java changes (diff) | |
download | BouncyCastle.NET-ed25519-521454273ff2d91222cf4b8ac6ab5f16c54b40df.tar.xz |
Use Asn1Set FromVector utility methods
Diffstat (limited to 'crypto/src/cms/CMSSignedDataStreamGenerator.cs')
-rw-r--r-- | crypto/src/cms/CMSSignedDataStreamGenerator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/cms/CMSSignedDataStreamGenerator.cs b/crypto/src/cms/CMSSignedDataStreamGenerator.cs index 4883fc3f9..ad82540eb 100644 --- a/crypto/src/cms/CMSSignedDataStreamGenerator.cs +++ b/crypto/src/cms/CMSSignedDataStreamGenerator.cs @@ -563,7 +563,7 @@ namespace Org.BouncyCastle.Cms digestAlgs.Add(new AlgorithmIdentifier(new DerObjectIdentifier(digestOid), DerNull.Instance)); } - new DerSet(digestAlgs).EncodeTo(sigGen.GetRawOutputStream()); + DerSet.FromVector(digestAlgs).EncodeTo(sigGen.GetRawOutputStream()); BerSequenceGenerator eiGen = new BerSequenceGenerator(sigGen.GetRawOutputStream()); eiGen.AddObject(contentTypeOid); @@ -903,7 +903,7 @@ namespace Org.BouncyCastle.Cms } } - WriteToGenerator(_sigGen, new DerSet(signerInfos)); + WriteToGenerator(_sigGen, DerSet.FromVector(signerInfos)); _sigGen.Dispose(); _sGen.Dispose(); |