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/SignerInformation.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/SignerInformation.cs')
-rw-r--r-- | crypto/src/cms/SignerInformation.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/cms/SignerInformation.cs b/crypto/src/cms/SignerInformation.cs index 116e349f0..24ba20037 100644 --- a/crypto/src/cms/SignerInformation.cs +++ b/crypto/src/cms/SignerInformation.cs @@ -744,7 +744,7 @@ namespace Org.BouncyCastle.Cms if (unsignedAttributes != null) { - unsignedAttr = new DerSet(unsignedAttributes.ToAsn1EncodableVector()); + unsignedAttr = DerSet.FromVector(unsignedAttributes.ToAsn1EncodableVector()); } return new SignerInformation( @@ -794,7 +794,7 @@ namespace Org.BouncyCastle.Cms sigs.Add(sigInf.ToSignerInfo()); } - v.Add(new Asn1.Cms.Attribute(CmsAttributes.CounterSignature, new DerSet(sigs))); + v.Add(new Asn1.Cms.Attribute(CmsAttributes.CounterSignature, DerSet.FromVector(sigs))); return new SignerInformation( new SignerInfo( @@ -803,7 +803,7 @@ namespace Org.BouncyCastle.Cms sInfo.AuthenticatedAttributes, sInfo.DigestEncryptionAlgorithm, sInfo.EncryptedDigest, - new DerSet(v)), + DerSet.FromVector(v)), signerInformation.contentType, signerInformation.content, null); |