summary refs log tree commit diff
path: root/crypto/src/asn1
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-11 14:46:43 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-11 14:46:43 +0700
commitb0e306a328fa8815867ad3a7520b360cf83a2e5d (patch)
tree40e9020ea89eb4344fc32e98719e1d6b0fc8e774 /crypto/src/asn1
parentPlatform guards for Stream code (diff)
downloadBouncyCastle.NET-ed25519-b0e306a328fa8815867ad3a7520b360cf83a2e5d.tar.xz
Reduce internal usage of ISet<T>
Diffstat (limited to 'crypto/src/asn1')
-rw-r--r--crypto/src/asn1/x509/ExtendedKeyUsage.cs2
-rw-r--r--crypto/src/asn1/x509/X509ExtensionsGenerator.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/x509/ExtendedKeyUsage.cs b/crypto/src/asn1/x509/ExtendedKeyUsage.cs
index 08962ab72..4e4c3c212 100644
--- a/crypto/src/asn1/x509/ExtendedKeyUsage.cs
+++ b/crypto/src/asn1/x509/ExtendedKeyUsage.cs
@@ -38,7 +38,7 @@ namespace Org.BouncyCastle.Asn1.X509
             return GetInstance(X509Extensions.GetExtensionParsedValue(extensions, X509Extensions.ExtendedKeyUsage));
         }
 
-        internal readonly ISet<DerObjectIdentifier> m_usageTable = new HashSet<DerObjectIdentifier>();
+        internal readonly HashSet<DerObjectIdentifier> m_usageTable = new HashSet<DerObjectIdentifier>();
         internal readonly Asn1Sequence seq;
 
         private ExtendedKeyUsage(Asn1Sequence seq)
diff --git a/crypto/src/asn1/x509/X509ExtensionsGenerator.cs b/crypto/src/asn1/x509/X509ExtensionsGenerator.cs
index 7ea6084af..02c5f6996 100644
--- a/crypto/src/asn1/x509/X509ExtensionsGenerator.cs
+++ b/crypto/src/asn1/x509/X509ExtensionsGenerator.cs
@@ -10,7 +10,7 @@ namespace Org.BouncyCastle.Asn1.X509
             new Dictionary<DerObjectIdentifier, X509Extension>();
         private List<DerObjectIdentifier> m_ordering = new List<DerObjectIdentifier>();
 
-        private static readonly ISet<DerObjectIdentifier> m_dupsAllowed = new HashSet<DerObjectIdentifier>()
+        private static readonly HashSet<DerObjectIdentifier> m_dupsAllowed = new HashSet<DerObjectIdentifier>()
         {
             X509Extensions.SubjectAlternativeName,
             X509Extensions.IssuerAlternativeName,