Changeset 954 for branches/eraser6/Manager/EntropySource.cs
- Timestamp:
- 5/1/2009 4:58:23 AM (4 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Manager/EntropySource.cs (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Manager/EntropySource.cs
r944 r954 136 136 /// </summary> 137 137 /// <returns>A mutable list, with an instance of each EntropySource.</returns> 138 public static Dictionary<Guid, EntropySource> GetAll() 139 { 140 lock (ManagerLibrary.Instance.EntropySourceManager.sources) 141 return ManagerLibrary.Instance.EntropySourceManager.sources; 138 public static Dictionary<Guid, EntropySource> Items 139 { 140 get 141 { 142 lock (ManagerLibrary.Instance.EntropySourceManager.sources) 143 return ManagerLibrary.Instance.EntropySourceManager.sources; 144 } 142 145 } 143 146 … … 480 483 private enum PRFAlgorithms 481 484 { 482 M D5,483 S HA1,484 R IPEMD160,485 S HA256,486 S HA384,487 S HA512,485 Md5, 486 Sha1, 487 Ripemd160, 488 Sha256, 489 Sha384, 490 Sha512, 488 491 }; 489 492 … … 497 500 498 501 //Then start the thread which maintains the pool. 499 Thread = new Thread(delegate() 500 { 501 this.Main(); 502 } 503 ); 502 Thread = new Thread(Main); 504 503 Thread.Start(); 505 504 } … … 559 558 560 559 //Apply whitening effect 561 PRFAlgorithm = PRFAlgorithms.R IPEMD160;560 PRFAlgorithm = PRFAlgorithms.Ripemd160; 562 561 MixPool(); 563 PRFAlgorithm = PRFAlgorithms.S HA512;562 PRFAlgorithm = PRFAlgorithms.Sha512; 564 563 } 565 564 … … 702 701 switch (PRFAlgorithm) 703 702 { 704 case PRFAlgorithms.M D5:703 case PRFAlgorithms.Md5: 705 704 type = typeof(MD5CryptoServiceProvider); 706 705 break; 707 case PRFAlgorithms.S HA1:706 case PRFAlgorithms.Sha1: 708 707 type = typeof(SHA1Managed); 709 708 break; 710 case PRFAlgorithms.R IPEMD160:709 case PRFAlgorithms.Ripemd160: 711 710 type = typeof(RIPEMD160Managed); 712 711 break; 713 case PRFAlgorithms.S HA256:712 case PRFAlgorithms.Sha256: 714 713 type = typeof(SHA256Managed); 715 714 break; 716 case PRFAlgorithms.S HA384:715 case PRFAlgorithms.Sha384: 717 716 type = typeof(SHA384Managed); 718 717 break; … … 737 736 /// PRF algorithm identifier 738 737 /// </summary> 739 private PRFAlgorithms PRFAlgorithm = PRFAlgorithms.S HA512;738 private PRFAlgorithms PRFAlgorithm = PRFAlgorithms.Sha512; 740 739 741 740 /// <summary>
Note: See TracChangeset
for help on using the changeset viewer.
