Changeset 144


Ignore:
Timestamp:
Dec 11, 2008, 12:05:24 PM (13 years ago)
Author:
Gerhard Junker
Message:

Tiger: test methods reduced (removing doubled tests)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DevTestMethods/TigerTest.cs

    r141 r144  
    4646
    4747    [TestMethod]
    48     public void TigerTestMethod1()
    49     {
    50 
    51       string TEST_DATA = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq";
    52       byte[] TEST_HASH = {
    53                       0x0F, 0x7B, 0xF9, 0xA1, 0x9B, 0x9C, 0x58, 0xF2,
    54                       0xB7, 0x61, 0x0D, 0xF7, 0xE8, 0x4F, 0x0A, 0xC3,
    55                       0xA7, 0x1C, 0x63, 0x1E, 0x7B, 0x53, 0xF7, 0x8E};
    56 
    57      
    58       ASCIIEncoding enc = new ASCIIEncoding();
    59      
    60       HMACTIGER tg = new HMACTIGER();
    61 
    62       tg.Initialize();
    63 
    64       byte[] hash = tg.ComputeHash(enc.GetBytes(TEST_DATA));
    65 
    66       Assert.AreEqual(hash.Length, TEST_HASH.Length, "invalid hash length.");
    67 
    68       for (int i = 0; i < hash.Length; i++)
    69         Assert.AreEqual(hash[i], TEST_HASH[i], "Invalid hash value.");
    70     }
    71 
    72     [TestMethod]
    73     public void TigerTestMethod2()
     48    public void TigerTestMethod()
    7449    {
    7550      // test vectors from
Note: See TracChangeset for help on using the changeset viewer.