testarray 42 lib/crypto/hmacmd5test.c } testarray[8]; testarray 47 lib/crypto/hmacmd5test.c testarray[0].key = data_blob_repeat_byte(0x0b, 16); testarray 48 lib/crypto/hmacmd5test.c testarray[0].data = data_blob_string_const("Hi There"); testarray 49 lib/crypto/hmacmd5test.c testarray[0].md5 = strhex_to_data_blob(tctx, "9294727a3638bb1c13f48ef8158bfc9d"); testarray 51 lib/crypto/hmacmd5test.c testarray[1].key = data_blob_string_const("Jefe"); testarray 52 lib/crypto/hmacmd5test.c testarray[1].data = data_blob_string_const("what do ya want for nothing?"); testarray 53 lib/crypto/hmacmd5test.c testarray[1].md5 = strhex_to_data_blob(tctx, "750c783e6ab0b503eaa86e310a5db738"); testarray 55 lib/crypto/hmacmd5test.c testarray[2].key = data_blob_repeat_byte(0xaa, 16); testarray 56 lib/crypto/hmacmd5test.c testarray[2].data = data_blob_repeat_byte(0xdd, 50); testarray 57 lib/crypto/hmacmd5test.c testarray[2].md5 = strhex_to_data_blob(tctx, "56be34521d144c88dbb8c733f0e8b3f6"); testarray 59 lib/crypto/hmacmd5test.c testarray[3].key = strhex_to_data_blob(tctx, "0102030405060708090a0b0c0d0e0f10111213141516171819"); testarray 60 lib/crypto/hmacmd5test.c testarray[3].data = data_blob_repeat_byte(0xcd, 50); testarray 61 lib/crypto/hmacmd5test.c testarray[3].md5 = strhex_to_data_blob(tctx, "697eaf0aca3a3aea3a75164746ffaa79"); testarray 63 lib/crypto/hmacmd5test.c testarray[4].key = data_blob_repeat_byte(0x0c, 16); testarray 64 lib/crypto/hmacmd5test.c testarray[4].data = data_blob_string_const("Test With Truncation"); testarray 65 lib/crypto/hmacmd5test.c testarray[4].md5 = strhex_to_data_blob(tctx, "56461ef2342edc00f9bab995690efd4c"); testarray 67 lib/crypto/hmacmd5test.c testarray[5].key = data_blob_repeat_byte(0xaa, 80); testarray 68 lib/crypto/hmacmd5test.c testarray[5].data = data_blob_string_const("Test Using Larger Than Block-Size Key - Hash Key First"); testarray 69 lib/crypto/hmacmd5test.c testarray[5].md5 = strhex_to_data_blob(tctx, "6b1ab7fe4bd7bf8f0b62e6ce61b9d0cd"); testarray 71 lib/crypto/hmacmd5test.c testarray[6].key = data_blob_repeat_byte(0xaa, 80); testarray 72 lib/crypto/hmacmd5test.c testarray[6].data = data_blob_string_const("Test Using Larger Than Block-Size Key " testarray 74 lib/crypto/hmacmd5test.c testarray[6].md5 = strhex_to_data_blob(tctx, "6f630fad67cda0ee1fb1f562db3aa53e"); testarray 76 lib/crypto/hmacmd5test.c testarray[7].key = data_blob(NULL, 0); testarray 78 lib/crypto/hmacmd5test.c for (i=0; testarray[i].key.data; i++) { testarray 83 lib/crypto/hmacmd5test.c hmac_md5_init_rfc2104(testarray[i].key.data, testarray[i].key.length, &ctx); testarray 84 lib/crypto/hmacmd5test.c hmac_md5_update(testarray[i].data.data, testarray[i].data.length, &ctx); testarray 87 lib/crypto/hmacmd5test.c e = memcmp(testarray[i].md5.data, testarray 89 lib/crypto/hmacmd5test.c MIN(testarray[i].md5.length, sizeof(md5))); testarray 92 lib/crypto/hmacmd5test.c dump_data(0, testarray[i].key.data, testarray[i].key.length); testarray 93 lib/crypto/hmacmd5test.c dump_data(0, testarray[i].data.data, testarray[i].data.length); testarray 94 lib/crypto/hmacmd5test.c dump_data(0, testarray[i].md5.data, testarray[i].md5.length); testarray 35 lib/crypto/md4test.c } testarray[] = { testarray 60 lib/crypto/md4test.c for (i=0; i < ARRAY_SIZE(testarray); i++) { testarray 66 lib/crypto/md4test.c data = data_blob_string_const(testarray[i].data); testarray 67 lib/crypto/md4test.c md4blob = strhex_to_data_blob(NULL, testarray[i].md4); testarray 35 lib/crypto/md5test.c } testarray[] = { testarray 64 lib/crypto/md5test.c for (i=0; i < ARRAY_SIZE(testarray); i++) { testarray 72 lib/crypto/md5test.c data = data_blob_string_const(testarray[i].data); testarray 73 lib/crypto/md5test.c md5blob = strhex_to_data_blob(NULL, testarray[i].md5);