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

◆ AddAlgorithm()

static void System.Security.Cryptography.CryptoConfig.AddAlgorithm ( Type algorithm,
params string[] names )
inlinestatic

Definition at line 196 of file CryptoConfig.cs.

197 {
198 if (algorithm == null)
199 {
200 throw new ArgumentNullException("algorithm");
201 }
202 if (!algorithm.IsVisible)
203 {
205 }
206 if (names == null)
207 {
208 throw new ArgumentNullException("names");
209 }
210 string[] array = new string[names.Length];
211 Array.Copy(names, array, array.Length);
212 string[] array2 = array;
213 foreach (string value in array2)
214 {
215 if (string.IsNullOrEmpty(value))
216 {
218 }
219 }
220 string[] array3 = array;
221 foreach (string key in array3)
222 {
224 }
225 }
static string Cryptography_AlgorithmTypesMustBeVisible
Definition SR.cs:166
static string Cryptography_AddNullOrEmptyName
Definition SR.cs:168
Definition SR.cs:7
static readonly ConcurrentDictionary< string, Type > appNameHT

References System.Security.Cryptography.CryptoConfig.appNameHT, System.array, System.Array.Copy(), System.SR.Cryptography_AddNullOrEmptyName, System.SR.Cryptography_AlgorithmTypesMustBeVisible, System.key, and System.value.