summary refs log tree commit diff
path: root/crypto/src/cms/CMSEnvelopedDataGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms/CMSEnvelopedDataGenerator.cs')
-rw-r--r--crypto/src/cms/CMSEnvelopedDataGenerator.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/cms/CMSEnvelopedDataGenerator.cs b/crypto/src/cms/CMSEnvelopedDataGenerator.cs
index 62fff7412..902a97cc5 100644
--- a/crypto/src/cms/CMSEnvelopedDataGenerator.cs
+++ b/crypto/src/cms/CMSEnvelopedDataGenerator.cs
@@ -117,12 +117,12 @@ namespace Org.BouncyCastle.Cms
                 Asn1.Cms.AttributeTable attrTable = unprotectedAttributeGenerator.GetAttributes(
                     new Dictionary<CmsAttributeTableParameter, object>());
 
-                unprotectedAttrSet = new BerSet(attrTable.ToAsn1EncodableVector());
+                unprotectedAttrSet = BerSet.FromVector(attrTable.ToAsn1EncodableVector());
             }
 
 			ContentInfo contentInfo = new ContentInfo(
                 CmsObjectIdentifiers.EnvelopedData,
-                new EnvelopedData(null, new DerSet(recipientInfos), eci, unprotectedAttrSet));
+                new EnvelopedData(null, DerSet.FromVector(recipientInfos), eci, unprotectedAttrSet));
 
             return new CmsEnvelopedData(contentInfo);
         }
@@ -209,12 +209,12 @@ namespace Org.BouncyCastle.Cms
                 Asn1.Cms.AttributeTable attrTable = unprotectedAttributeGenerator.GetAttributes(
                     new Dictionary<CmsAttributeTableParameter, object>());
 
-                unprotectedAttrSet = new BerSet(attrTable.ToAsn1EncodableVector());
+                unprotectedAttrSet = BerSet.FromVector(attrTable.ToAsn1EncodableVector());
             }
 
             ContentInfo contentInfo = new ContentInfo(
                 CmsObjectIdentifiers.EnvelopedData,
-                new EnvelopedData(null, new DerSet(recipientInfos), eci, unprotectedAttrSet));
+                new EnvelopedData(null, DerSet.FromVector(recipientInfos), eci, unprotectedAttrSet));
 
             return new CmsEnvelopedData(contentInfo);
         }