From 18c67ac1339c9ca4f3604f5e5d44da0263b9ad21 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 28 Jun 2022 11:01:05 +0700 Subject: Generics migration in Cms --- crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs') diff --git a/crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs b/crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs index c08b30787..261f67a15 100644 --- a/crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs +++ b/crypto/src/cms/CMSEnvelopedDataStreamGenerator.cs @@ -1,21 +1,16 @@ using System; -using System.Collections; +using System.Collections.Generic; using System.IO; using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.Cms; -using Org.BouncyCastle.Asn1.Nist; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Crypto; -using Org.BouncyCastle.Crypto.Engines; -using Org.BouncyCastle.Crypto.Generators; using Org.BouncyCastle.Crypto.IO; using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Security; -using Org.BouncyCastle.Security.Certificates; using Org.BouncyCastle.Utilities; using Org.BouncyCastle.Utilities.IO; -using Org.BouncyCastle.X509; namespace Org.BouncyCastle.Cms { @@ -287,7 +282,8 @@ namespace Org.BouncyCastle.Cms if (_outer.unprotectedAttributeGenerator != null) { - Asn1.Cms.AttributeTable attrTable = _outer.unprotectedAttributeGenerator.GetAttributes(Platform.CreateHashtable()); + Asn1.Cms.AttributeTable attrTable = _outer.unprotectedAttributeGenerator.GetAttributes( + new Dictionary()); Asn1Set unprotectedAttrs = new BerSet(attrTable.ToAsn1EncodableVector()); -- cgit 1.4.1