Ignore:
Timestamp:
Jun 9, 2009, 5:39:17 AM (13 years ago)
Author:
Gerhard Junker
Message:

Descriptions changed in TwoFish & Tiger

File:
1 edited

Legend:

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

    r349 r350  
    444444              pos += decrypt.TransformBlock(inputdata, pos, decrypt.InputBlockSize, outputData, pos);
    445445            }
    446             if (inputdata.Length > 0)
     446            if (inputdata.Length - pos > 0)
    447447            {
    448               byte[] final = decrypt.TransformFinalBlock(inputdata, pos, 16);
     448              byte[] final = decrypt.TransformFinalBlock(inputdata, pos, inputdata.Length - pos);
    449449
    450450              for (int i = pos; i < outputData.Length; i++)
Note: See TracChangeset for help on using the changeset viewer.