Ignore:
Timestamp:
Feb 26, 2010, 2:22:04 PM (12 years ago)
Author:
arnold
Message:

P2PManager

  • Enlarged KeyPatternSize range to 1.000, because the new DES/AES-Implementation runs so fast, that a KeyPattern with KeyPatternSize of 150 will be processed in approximately 40 seconds on a modern PC
  • Embellished Layout
  • Enhanced information display (total processing time)
  • Jobs in progress change their color every second between Yellow and LightGray

Samples:

  • Changed from CFB to CBC, because this modus is much faster than CFB!
  • Changed KeyPatternSize to 150, because the new DES/AES Implementation runs much faster
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeyPatternJob/DistributableKeyPatternJob.cs

    r1182 r1199  
    2525    public class DistributableKeyPatternJob : IDistributableJob
    2626    {
     27        public event LastJobAllocated OnLastJobAllocated;
     28        public event LastResultReceived OnLastResultReceived;
     29
    2730        #region Variables and Properties
    2831
     
    136139                    serializedJob = jobPart.Serialize();
    137140                    this.allocatedPatterns.Add(jobId, jobPart);
     141
     142                    if (this.patternPool.Count() == 0)
     143                        if (OnLastJobAllocated != null)
     144                            OnLastJobAllocated(jobId);
    138145                }
    139146            }
     
    203210            //else
    204211            //    throw(new Exception("Received result from a job, which isn't in 'patternsInProgress' List."));
     212            if (this.patternPool.Count() == 0 && this.allocatedPatterns.Count == 0 && this.patternBuffer.Count == 0)
     213            {
     214                if (OnLastResultReceived != null)
     215                    OnLastResultReceived(jobId);
     216            }
     217
    205218            return returnTimeSpan;
    206219        }
Note: See TracChangeset for help on using the changeset viewer.