Example #1
0
		public static void RegisterProvider(int type, HashAlgorithm hal)
		{
			if (type < 0)
			{
				return;
			}

			if (!IsExtended(type))
			{
				Providers[type] = new CryptoHashCodeProvider(type, hal);
			}
			else
			{
				if (ExtendedProviders.ContainsKey(type))
				{
					ExtendedProviders[type] = new CryptoHashCodeProvider(type, hal);
				}
				else
				{
					ExtendedProviders.Add(type, new CryptoHashCodeProvider(type, hal));
				}
			}
		}
Example #2
0
        public static void RegisterProvider(int type, HashAlgorithm hal)
        {
            if (type < 0)
            {
                return;
            }

            if (!IsExtended(type))
            {
                Providers[type] = new CryptoHashCodeProvider(type, hal);
            }
            else
            {
                if (ExtendedProviders.ContainsKey(type))
                {
                    ExtendedProviders[type] = new CryptoHashCodeProvider(type, hal);
                }
                else
                {
                    ExtendedProviders.Add(type, new CryptoHashCodeProvider(type, hal));
                }
            }
        }
Example #3
0
		static CryptoService()
		{
			Providers = new CryptoHashCodeProvider[Enum.GetNames(typeof(CryptoHashType)).Length];
			ExtendedProviders = new Dictionary<int, CryptoHashCodeProvider>();
		}
Example #4
0
 public static void RegisterProvider(CryptoHashType type, HashAlgorithm hal)
 {
     Providers[(int)type] = new CryptoHashCodeProvider((int)type, hal);
 }
Example #5
0
		static CryptoService()
		{
			Providers = new CryptoHashCodeProvider[6];
			ExtendedProviders = new Dictionary<int, CryptoHashCodeProvider>();
		}
Example #6
0
 static CryptoService()
 {
     Providers         = new CryptoHashCodeProvider[6];
     ExtendedProviders = new Dictionary <int, CryptoHashCodeProvider>();
 }
Example #7
0
		public static void RegisterProvider(CryptoHashType type, HashAlgorithm hal)
		{
			Providers[(int)type] = new CryptoHashCodeProvider((int)type, hal);
		}
Example #8
0
 public static void RegisterProvider(int type, HashAlgorithm hal)
 {
     Providers[type] = new CryptoHashCodeProvider(type, hal);
 }
Example #9
0
 static CryptoService()
 {
     Providers         = new CryptoHashCodeProvider[Enum.GetNames(typeof(CryptoHashType)).Length];
     ExtendedProviders = new Dictionary <int, CryptoHashCodeProvider>();
 }
Example #10
0
		public static void RegisterProvider(int type, HashAlgorithm hal)
		{
			Providers[type] = new CryptoHashCodeProvider(type, hal);
		}