Changeset 834


Ignore:
Timestamp:
Nov 9, 2009, 6:36:13 PM (12 years ago)
Author:
kopal
Message:

KeySearcher bugfix - now not using "zero-padding" if "bytesToUse" is bigger than the text to analyze

File:
1 edited

Legend:

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

    r786 r834  
    139139                    return;
    140140                }
     141
     142                if (bytesToUse > this.InputText.Length)
     143                {
     144                    bytesToUse = 0;
     145                }
     146
    141147                byte[] array;
    142148
     
    375381           
    376382            if (bytesToUse > text.Length)
    377                 bytesToUse = text.Length;
     383                bytesToUse = 0;
    378384
    379385            byte[] array;
Note: See TracChangeset for help on using the changeset viewer.