Ignore:
Timestamp:
Jun 24, 2010, 1:15:16 PM (11 years ago)
Author:
Paul Lelgemann
Message:

o Refactoring in CrypP2P
o AES: NullReference in AES-Plugin fixed
o Small fixes in KeySearcher, StorageKeyGenerator uses IV and truncates input data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/KeySearcher.cs

    r1682 r1698  
    33using System.Text;
    44using Cryptool.P2P;
     5using Cryptool.P2P.Internal;
    56using Cryptool.PluginBase.Analysis;
    67using Cryptool.PluginBase;
     
    3435        /// </summary>
    3536        private int maxThread;
    36         private Mutex maxThreadMutex = new Mutex();
     37        private readonly Mutex maxThreadMutex = new Mutex();
    3738
    3839        private KeyQualityHelper keyQualityHelper;
    39         private P2PQuickWatchPresentation p2PQuickWatchPresentation;
    40         private LocalQuickWatchPresentation localQuickWatchPresentation;
    41 
    42         private KeyPattern.KeyPattern pattern = null;
     40        private readonly P2PQuickWatchPresentation p2PQuickWatchPresentation;
     41        private readonly LocalQuickWatchPresentation localQuickWatchPresentation;
     42
     43        private KeyPattern.KeyPattern pattern;
    4344        public KeyPattern.KeyPattern Pattern
    4445        {
     
    614615            GuiLogMessage("Launching p2p based bruteforce logic...", NotificationLevel.Info);
    615616            ValidateConnectionToPeerToPeerSystem();
    616             distributedBruteForceManager = new DistributedBruteForceManager(this, pattern, settings, keyQualityHelper,
    617                                                                      p2PQuickWatchPresentation);
    618             distributedBruteForceManager.Execute();
     617
     618            try
     619            {
     620                distributedBruteForceManager = new DistributedBruteForceManager(this, pattern, settings,
     621                                                                                keyQualityHelper,
     622                                                                                p2PQuickWatchPresentation);
     623                distributedBruteForceManager.Execute();
     624            }
     625            catch (NotConnectedException)
     626            {
     627                GuiLogMessage("P2P not connected.", NotificationLevel.Error);
     628            }
    619629        }
    620630
Note: See TracChangeset for help on using the changeset viewer.