Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DefaultNameHT

Dictionary<string, object> System.Security.Cryptography.CryptoConfig.DefaultNameHT
staticgetprivate

Definition at line 72 of file CryptoConfig.cs.

73 {
74 get
75 {
76 if (s_defaultNameHT != null)
77 {
78 return s_defaultNameHT;
79 }
80 Dictionary<string, object> dictionary = new Dictionary<string, object>(89, StringComparer.OrdinalIgnoreCase);
81 Type typeFromHandle = typeof(HMACMD5);
82 Type typeFromHandle2 = typeof(HMACSHA1);
83 Type typeFromHandle3 = typeof(HMACSHA256);
84 Type typeFromHandle4 = typeof(HMACSHA384);
85 Type typeFromHandle5 = typeof(HMACSHA512);
86 Type typeFromHandle6 = typeof(RijndaelManaged);
87 Type typeFromHandle7 = typeof(AesManaged);
88 Type typeFromHandle8 = typeof(SHA256Managed);
89 Type typeFromHandle9 = typeof(SHA384Managed);
90 Type typeFromHandle10 = typeof(SHA512Managed);
91 string value = "System.Security.Cryptography.SHA1CryptoServiceProvider, System.Security.Cryptography.Csp";
92 string value2 = "System.Security.Cryptography.MD5CryptoServiceProvider,System.Security.Cryptography.Csp";
93 string value3 = "System.Security.Cryptography.RSACryptoServiceProvider, System.Security.Cryptography.Csp";
94 string value4 = "System.Security.Cryptography.DSACryptoServiceProvider, System.Security.Cryptography.Csp";
95 string value5 = "System.Security.Cryptography.DESCryptoServiceProvider, System.Security.Cryptography.Csp";
96 string value6 = "System.Security.Cryptography.TripleDESCryptoServiceProvider, System.Security.Cryptography.Csp";
97 string value7 = "System.Security.Cryptography.RC2CryptoServiceProvider, System.Security.Cryptography.Csp";
98 string value8 = "System.Security.Cryptography.RNGCryptoServiceProvider, System.Security.Cryptography.Csp";
99 string value9 = "System.Security.Cryptography.AesCryptoServiceProvider, System.Security.Cryptography.Csp";
100 string value10 = "System.Security.Cryptography.ECDsaCng, System.Security.Cryptography.Cng";
101 dictionary.Add("RandomNumberGenerator", value8);
102 dictionary.Add("System.Security.Cryptography.RandomNumberGenerator", value8);
103 dictionary.Add("SHA", value);
104 dictionary.Add("SHA1", value);
105 dictionary.Add("System.Security.Cryptography.SHA1", value);
106 dictionary.Add("System.Security.Cryptography.HashAlgorithm", value);
107 dictionary.Add("MD5", value2);
108 dictionary.Add("System.Security.Cryptography.MD5", value2);
109 dictionary.Add("SHA256", typeFromHandle8);
110 dictionary.Add("SHA-256", typeFromHandle8);
111 dictionary.Add("System.Security.Cryptography.SHA256", typeFromHandle8);
112 dictionary.Add("SHA384", typeFromHandle9);
113 dictionary.Add("SHA-384", typeFromHandle9);
114 dictionary.Add("System.Security.Cryptography.SHA384", typeFromHandle9);
116 dictionary.Add("SHA-512", typeFromHandle10);
117 dictionary.Add("System.Security.Cryptography.SHA512", typeFromHandle10);
118 dictionary.Add("System.Security.Cryptography.HMAC", typeFromHandle2);
119 dictionary.Add("System.Security.Cryptography.KeyedHashAlgorithm", typeFromHandle2);
120 dictionary.Add("HMACMD5", typeFromHandle);
121 dictionary.Add("System.Security.Cryptography.HMACMD5", typeFromHandle);
122 dictionary.Add("HMACSHA1", typeFromHandle2);
123 dictionary.Add("System.Security.Cryptography.HMACSHA1", typeFromHandle2);
124 dictionary.Add("HMACSHA256", typeFromHandle3);
125 dictionary.Add("System.Security.Cryptography.HMACSHA256", typeFromHandle3);
126 dictionary.Add("HMACSHA384", typeFromHandle4);
127 dictionary.Add("System.Security.Cryptography.HMACSHA384", typeFromHandle4);
128 dictionary.Add("HMACSHA512", typeFromHandle5);
129 dictionary.Add("System.Security.Cryptography.HMACSHA512", typeFromHandle5);
130 dictionary.Add("RSA", value3);
131 dictionary.Add("System.Security.Cryptography.RSA", value3);
132 dictionary.Add("System.Security.Cryptography.AsymmetricAlgorithm", value3);
133 if (!OperatingSystem.IsIOS() && !OperatingSystem.IsTvOS())
134 {
135 dictionary.Add("DSA", value4);
136 dictionary.Add("System.Security.Cryptography.DSA", value4);
137 }
138 if (OperatingSystem.IsWindows())
139 {
140 dictionary.Add("ECDsa", value10);
141 }
142 dictionary.Add("ECDsaCng", value10);
143 dictionary.Add("System.Security.Cryptography.ECDsaCng", value10);
144 dictionary.Add("DES", value5);
145 dictionary.Add("System.Security.Cryptography.DES", value5);
146 dictionary.Add("3DES", value6);
147 dictionary.Add("TripleDES", value6);
148 dictionary.Add("Triple DES", value6);
149 dictionary.Add("System.Security.Cryptography.TripleDES", value6);
150 dictionary.Add("RC2", value7);
151 dictionary.Add("System.Security.Cryptography.RC2", value7);
152 dictionary.Add("Rijndael", typeFromHandle6);
153 dictionary.Add("System.Security.Cryptography.Rijndael", typeFromHandle6);
154 dictionary.Add("System.Security.Cryptography.SymmetricAlgorithm", typeFromHandle6);
155 dictionary.Add("AES", value9);
156 dictionary.Add("AesCryptoServiceProvider", value9);
157 dictionary.Add("System.Security.Cryptography.AesCryptoServiceProvider", value9);
158 dictionary.Add("AesManaged", typeFromHandle7);
159 dictionary.Add("System.Security.Cryptography.AesManaged", typeFromHandle7);
160 dictionary.Add("http://www.w3.org/2000/09/xmldsig#sha1", value);
161 dictionary.Add("http://www.w3.org/2001/04/xmlenc#sha256", typeFromHandle8);
162 dictionary.Add("http://www.w3.org/2001/04/xmlenc#sha512", typeFromHandle10);
163 dictionary.Add("http://www.w3.org/2001/04/xmlenc#des-cbc", value5);
164 dictionary.Add("http://www.w3.org/2001/04/xmlenc#tripledes-cbc", value6);
165 dictionary.Add("http://www.w3.org/2001/04/xmlenc#kw-tripledes", value6);
166 dictionary.Add("http://www.w3.org/2001/04/xmlenc#aes128-cbc", typeFromHandle6);
167 dictionary.Add("http://www.w3.org/2001/04/xmlenc#kw-aes128", typeFromHandle6);
168 dictionary.Add("http://www.w3.org/2001/04/xmlenc#aes192-cbc", typeFromHandle6);
169 dictionary.Add("http://www.w3.org/2001/04/xmlenc#kw-aes192", typeFromHandle6);
170 dictionary.Add("http://www.w3.org/2001/04/xmlenc#aes256-cbc", typeFromHandle6);
171 dictionary.Add("http://www.w3.org/2001/04/xmlenc#kw-aes256", typeFromHandle6);
172 dictionary.Add("http://www.w3.org/2000/09/xmldsig#hmac-sha1", typeFromHandle2);
173 dictionary.Add("http://www.w3.org/2001/04/xmldsig-more#md5", value2);
174 dictionary.Add("http://www.w3.org/2001/04/xmldsig-more#sha384", typeFromHandle9);
175 dictionary.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-md5", typeFromHandle);
176 dictionary.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-sha256", typeFromHandle3);
177 dictionary.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-sha384", typeFromHandle4);
178 dictionary.Add("http://www.w3.org/2001/04/xmldsig-more#hmac-sha512", typeFromHandle5);
179 dictionary.Add("2.5.29.10", "System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension, System.Security.Cryptography.X509Certificates");
180 dictionary.Add("2.5.29.19", "System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension, System.Security.Cryptography.X509Certificates");
181 dictionary.Add("2.5.29.14", "System.Security.Cryptography.X509Certificates.X509SubjectKeyIdentifierExtension, System.Security.Cryptography.X509Certificates");
182 dictionary.Add("2.5.29.15", "System.Security.Cryptography.X509Certificates.X509KeyUsageExtension, System.Security.Cryptography.X509Certificates");
183 dictionary.Add("2.5.29.37", "System.Security.Cryptography.X509Certificates.X509EnhancedKeyUsageExtension, System.Security.Cryptography.X509Certificates");
184 dictionary.Add("X509Chain", "System.Security.Cryptography.X509Certificates.X509Chain, System.Security.Cryptography.X509Certificates");
185 dictionary.Add("1.2.840.113549.1.9.3", "System.Security.Cryptography.Pkcs.Pkcs9ContentType, System.Security.Cryptography.Pkcs");
186 dictionary.Add("1.2.840.113549.1.9.4", "System.Security.Cryptography.Pkcs.Pkcs9MessageDigest, System.Security.Cryptography.Pkcs");
187 dictionary.Add("1.2.840.113549.1.9.5", "System.Security.Cryptography.Pkcs.Pkcs9SigningTime, System.Security.Cryptography.Pkcs");
188 dictionary.Add("1.3.6.1.4.1.311.88.2.1", "System.Security.Cryptography.Pkcs.Pkcs9DocumentName, System.Security.Cryptography.Pkcs");
189 dictionary.Add("1.3.6.1.4.1.311.88.2.2", "System.Security.Cryptography.Pkcs.Pkcs9DocumentDescription, System.Security.Cryptography.Pkcs");
191 return s_defaultNameHT;
192 }
193 }
void Add(TKey key, TValue value)
static volatile Dictionary< string, object > s_defaultNameHT

Referenced by System.Security.Cryptography.CryptoConfig.CreateFromName().