Changeset 2445


Ignore:
Timestamp:
Jan 24, 2011, 2:14:12 PM (10 years ago)
Author:
Sven Rech
Message:

keysearcher:

  • deleted some of arnolds code
  • litte fix for server stopping
File:
1 edited

Legend:

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

    r2428 r2445  
    805805            finally
    806806            {
    807                 if (stop && serverThread != null)
     807                if (serverThread != null)
    808808                {
    809809                    //stop server here!
     
    15801580        {
    15811581            Pattern = new KeyPattern.KeyPattern(controlMaster.getKeyPattern());
    1582         }
    1583 
    1584         // added by Arnie - 2009.12.07
    1585         public delegate void BruteforcingEnded(LinkedList<ValueKey> top10List);
    1586         /// <summary>
    1587         /// This event gets thrown after Bruteforcing had ended. This is no evidence, that bruteforcing was successful.
    1588         /// But when the returned List is filled, we have (at least a part) of the possible best keys
    1589         /// </summary>
    1590         public event BruteforcingEnded OnBruteforcingEnded;
    1591 
    1592         // added by Arnie -2009.12.02
    1593         // for inheritance reasons
    1594         public void BruteforcePattern(KeyPattern.KeyPattern pattern, byte[] encryptedData, byte[] initVector, IControlEncryption encryptControl, IControlCost costControl)
    1595         {
    1596             /* Begin: New stuff because of changing the IControl data flow - Arnie 2010.01.18 */
    1597             this.encryptedData = encryptedData;
    1598             this.initVector = initVector;
    1599             /* End: New stuff because of changing the IControl data flow - Arnie 2010.01.18 */
    1600 
    1601             this.sender = encryptControl;
    1602             LinkedList<ValueKey> lstRet = bruteforcePattern(pattern);
    1603             if(OnBruteforcingEnded != null)
    1604                 OnBruteforcingEnded(lstRet);
    16051582        }
    16061583
Note: See TracChangeset for help on using the changeset viewer.