Ignore:
Timestamp:
Jun 8, 2009, 10:00:21 PM (13 years ago)
Author:
Gerhard Junker
Message:

#58

File:
1 edited

Legend:

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

    r226 r349  
    444444              pos += decrypt.TransformBlock(inputdata, pos, decrypt.InputBlockSize, outputData, pos);
    445445            }
    446             byte[] final = decrypt.TransformFinalBlock(inputdata, pos, 16);
     446            if (inputdata.Length > 0)
     447            {
     448              byte[] final = decrypt.TransformFinalBlock(inputdata, pos, 16);
    447449
    448450              for (int i = pos; i < outputData.Length; i++)
    449451                outputData[i] = final[i - pos];
     452            }
    450453
    451454            decrypt.Dispose();
Note: See TracChangeset for help on using the changeset viewer.