Changeset 865 for trunk/CrypPlugins/SDES


Ignore:
Timestamp:
Nov 17, 2009, 9:31:19 PM (12 years ago)
Author:
Sven Rech
Message:

some big optimizations to the keypattern mechanism of the keysearcher.
The keysearcher itself should have zero performace overhead now.
But bruteforcing AES and DES is still very slow.
By profiling, we found out that the Microsoft Crypto implementations are to blame, because they aren't optimized for speed.
So the next step would be to replace those implementations....

File:
1 edited

Legend:

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

    r819 r865  
    616616        /// <param name="key"></param>
    617617        /// <returns></returns>
    618         public byte[] getKeyFromString(string key)
     618        public byte[] getKeyFromString(string key, ref int[] arrayPointers, ref int[] arraySuccessors, ref int[] arrayUppers)
    619619        {
    620620            byte[] bkey = new byte[10];
    621621            int count = 0;
    622622            foreach (char c in key)
    623                 if (c == '0')
     623                if (c == '*')
     624                    return null;    //blocks not supported yet
     625                else if (c == '0')
    624626                    bkey[count++] = 0;
    625627                else
Note: See TracChangeset for help on using the changeset viewer.