public void CheckE (string testName, byte[] key, byte[] data, byte[] result) { algo = new HMACMD5 (); 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); Assert.AreEqual (result, algo.Hash, testName + "e"); }