Ignore:
Timestamp:
Feb 26, 2010, 1:27:59 AM (12 years ago)
Author:
Sven Rech
Message:

more speed for bruteforcing by using unsafe code in AES and DES (just temporary)

File:
1 edited

Legend:

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

    r1192 r1193  
    523523                return null;
    524524
    525             return NativeCryptography.Crypto.decryptAES(ciphertext, key, bits, size, ((AESSettings)plugin.Settings).Mode);
     525            unsafe
     526            {
     527                fixed (byte* inp = ciphertext)
     528                fixed (byte* akey = key)
     529                {
     530                    return NativeCryptography.Crypto.decryptAES(inp, akey, bits, size, ((AESSettings)plugin.Settings).Mode);
     531                }
     532            }
    526533        }
    527534
Note: See TracChangeset for help on using the changeset viewer.