diff options
Diffstat (limited to 'crypto/src/tsp/TSPAlgorithms.cs')
-rw-r--r-- | crypto/src/tsp/TSPAlgorithms.cs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/crypto/src/tsp/TSPAlgorithms.cs b/crypto/src/tsp/TSPAlgorithms.cs index 928468ed7..8d7e12ee4 100644 --- a/crypto/src/tsp/TSPAlgorithms.cs +++ b/crypto/src/tsp/TSPAlgorithms.cs @@ -1,4 +1,4 @@ -using System.Collections; +using System.Collections.Generic; using Org.BouncyCastle.Asn1.CryptoPro; using Org.BouncyCastle.Asn1.GM; @@ -35,20 +35,15 @@ namespace Org.BouncyCastle.Tsp public static readonly string SM3 = GMObjectIdentifiers.sm3.Id; - public static readonly IList Allowed; + public static readonly List<string> Allowed; static TspAlgorithms() { - string[] algs = new string[] + Allowed = new List<string>() { - Gost3411, Gost3411_2012_256, Gost3411_2012_512, MD5, RipeMD128, RipeMD160, RipeMD256, Sha1, Sha224, Sha256, Sha384, Sha512, SM3 + Gost3411, Gost3411_2012_256, Gost3411_2012_512, MD5, RipeMD128, RipeMD160, RipeMD256, Sha1, Sha224, + Sha256, Sha384, Sha512, SM3 }; - - Allowed = Platform.CreateArrayList(); - foreach (string alg in algs) - { - Allowed.Add(alg); - } } } } |