Changeset 316 for trunk/DevTestMethods


Ignore:
Timestamp:
May 19, 2009, 11:58:26 AM (13 years ago)
Author:
Gerhard Junker
Message:

Comments removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DevTestMethods/TwofishTest.cs

    r157 r316  
    107107      };
    108108
    109       byte[] iv =   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
    110109
    111110      ASCIIEncoding enc = new ASCIIEncoding();
     
    113112      for (int i = 0; i < source.Length; i++)
    114113      {
     114        byte[] iv = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
     115       
    115116        testContextInstance.WriteLine(" Test " + i.ToString());
    116117        testContextInstance.WriteLine(" data = " + source[i]);
     
    124125
    125126        byte[] plain = ConvertHexToByte(source[i]);
    126 
    127         //int olength = plain.Length;
    128         //olength += (16 - (olength % 16));
    129        
    130         //byte[] code = new byte[olength];
    131 
    132         //int pos = 0;
    133         //while (plain.Length > 16)
    134         //{
    135         //  encrypt.TransformBlock(plain, pos, 16, ref code, pos);
    136         //}
    137127       
    138128        byte[] code = encrypt.TransformFinalBlock(plain, 0, plain.Length);
Note: See TracChangeset for help on using the changeset viewer.