Esempio n. 1
0
 // - Test TransformBlock/TransformFinalBlock
 public void CheckE(string testName, byte[] key, byte[] data, byte[] result)
 {
     algo     = new MACTripleDES();
     algo.Key = key;
     byte[] copy = new byte [data.Length];
     // LAMESPEC or FIXME: TransformFinalBlock doesn't return HashValue !
     for (int i = 0; i < data.Length - 1; i++)
     {
         algo.TransformBlock(data, i, 1, copy, i);
     }
     algo.TransformFinalBlock(data, data.Length - 1, 1);
     AssertEquals(testName + "e", result, algo.Hash);
 }