get the wrong results after executing the file src/lib/crypto/crypto_test/t_decrypt

旺邑 523068995 at qq.com
Thu Nov 10 20:19:51 EST 2016


Dear professor,
     I have downloaded the source code of krb5-1.13.4 from your page and  added my own test case to the file src/lib/crypto/crypto_test/t_decrypt.c. Here is my test case:
    {
        ENCTYPE_AES256_CTS_HMAC_SHA1_96,
        "", 3,
        { KV5M_DATA, 32,
          "\x10\x6E\x3D\x8C\xAC\x27\xC3\xE8\xAC\x9C\x01\x94\x7B\x77\x3F\x73"
          "\xB2\x3B\x29\xE6\xEB\xC5\x49\x84\xA7\xB5\xD2\xE3\x2F\xF4\x59\x46" },
        { KV5M_DATA, 283,
          "\xFF\xA4\x48\xC5\x39\x3D\x35\x0B\xEB\x6A\x5C\xDD\x98\xE3\x76\xA7"
          "\x3B\x0E\xA0\x5C\x11\xF8\x2C\x28\xD7\xE4\x2B\x48\x91\x0D\xEC\x0B"
          "\x21\x04\x7F\xE7\x94\x8D\x32\xB9\x64\x97\x25\x55\x0C\x29\x60\xFA"
          "\x37\x69\x5D\x58\x7C\x09\x6A\x02\x14\x4C\xA8\x92\x19\x69\xAF\x85"
          "\xF4\xF7\x32\xF0\x67\x85\xB0\x9B\x25\xEA\x09\x93\xD1\x95\xB7\x3B"
          "\xE6\xAC\x01\xDE\xA0\x1F\x3F\x7B\x74\xCC\xCA\xF7\x9E\x05\xF6\x4F"
          "\xF8\xE5\x64\x9D\x2D\x98\xA9\x95\xBE\x2F\xF0\x47\xD1\x49\x92\x01"
          "\x17\xFB\x7F\x35\x66\x0C\x7B\xFF\x88\x1B\x17\xAC\xAE\xB3\x07\xFF"
          "\xAD\x32\x2F\x45\x77\x34\x58\x98\xE0\x2E\xE4\xB8\x69\xD2\xF4\x3D"
          "\x38\x7E\xB9\xF7\xE1\x3C\x0E\xD9\x8A\xCE\xD3\x98\x2D\x7C\xDA\xD9"
          "\x28\x1D\xB6\x73\xDD\x04\x6C\xA1\x95\xF1\x49\xE2\x27\x99\x2B\x1C"
          "\x7B\x43\xEC\x67\x4B\xD6\x7F\x43\x5E\x06\x3E\xB9\x80\xED\x51\x92"
          "\x7B\xF5\x1B\x82\x76\xA1\xF6\x2E\x38\xAC\xEE\x82\xD5\xC0\x20\x62"
          "\xE3\x51\x1A\x70\xA9\x8D\x4D\xD6\xCF\x84\x37\x09\xE1\x30\x5A\xBB"
          "\x20\xD3\x1A\xFD\xE0\x09\x72\x64\xD3\x93\xA3\xAC\x32\x99\x33\x08"
          "\x75\xCB\x04\xAE\x7E\x35\xDD\xCC\x80\x77\x66\x43\xB3\xBB\xEF\x63"
          "\xBF\x8D\x61\xB6\x14\xA8\x58\x86\x2B\x67\x53\x6D\x9A\x52\x99\x17"
          "\x65\x15\x8D\x3C\xA0\xF9\x04\x94\xF7\x05\xFD" }
    }.
 Then I compile the file again and use the command "./t_decrypt" to execute it. However, the result of my test case is all zero. I also find that the results of some other test cases in that file are zero too.  Could you please give me some advice?


More information about the krbdev mailing list