summary refs log tree commit diff
path: root/crypto/src/cms/SignerInformation.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-24 12:57:09 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-24 12:57:09 +0700
commit521454273ff2d91222cf4b8ac6ab5f16c54b40df (patch)
treea996faffeebf62b4866a2e26a5c5fcf3407662c0 /crypto/src/cms/SignerInformation.cs
parentadjusted HQC and BIKE keys for latest BC Java changes (diff)
downloadBouncyCastle.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.cs6
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);