38
34
krb5_data expected_key;
36
/* AFS string-to-key tests from old t_afss2k.c. */
41
{ KV5M_DATA, 1, "\1" },
42
{ KV5M_DATA, 8, "\xA4\xD0\xD0\x9B\x86\x92\xB0\xC2" }
48
{ KV5M_DATA, 1, "\1" },
49
{ KV5M_DATA, 8, "\xF1\xF2\x9E\xAB\xD0\xEF\xDF\x73" }
55
{ KV5M_DATA, 1, "\1" },
56
{ KV5M_DATA, 8, "\xD6\x85\x61\xC4\xF2\x94\xF4\xA1" }
62
{ KV5M_DATA, 1, "\1" },
63
{ KV5M_DATA, 8, "\xD0\xE3\xA7\x83\x94\x61\xE0\xD0" }
69
{ KV5M_DATA, 1, "\1" },
70
{ KV5M_DATA, 8, "\xD5\x62\xCD\x94\x61\xCB\x97\xDF" }
76
{ KV5M_DATA, 1, "\1" },
77
{ KV5M_DATA, 8, "\x9E\xA2\xA2\xEC\xA8\x8C\x6B\x8F" }
83
{ KV5M_DATA, 1, "\1" },
84
{ KV5M_DATA, 8, "\xE3\x91\x6D\xD3\x85\xF1\x67\xC4" }
90
{ KV5M_DATA, 1, "\1" },
91
{ KV5M_DATA, 8, "\xF4\xC4\x73\xC8\x8A\xE9\x94\x6D" }
97
{ KV5M_DATA, 1, "\1" },
98
{ KV5M_DATA, 8, "\xA1\x9E\xB3\xAD\x6B\xE3\xAB\xD9" }
104
{ KV5M_DATA, 1, "\1" },
105
{ KV5M_DATA, 8, "\xAD\xA1\xCE\x10\x37\x83\xA7\x8C" }
111
{ KV5M_DATA, 1, "\1" },
112
{ KV5M_DATA, 8, "\xD3\x01\xD0\xF7\x3E\x7A\x49\x0B" }
118
{ KV5M_DATA, 1, "\1" },
119
{ KV5M_DATA, 8, "\xB6\x2A\x4A\xEC\x9D\x4C\x68\xDF" }
125
{ KV5M_DATA, 1, "\1" },
126
{ KV5M_DATA, 8, "\x61\xEF\xE6\x83\xE5\x8A\x6B\x98" }
132
{ KV5M_DATA, 1, "\1" },
133
{ KV5M_DATA, 8, "\x68\xCD\x68\xAD\xC4\x86\xCD\xE5" }
139
{ KV5M_DATA, 1, "\1" },
140
{ KV5M_DATA, 8, "\x83\xA1\xC8\x86\x8F\x67\xD0\x62" }
146
{ KV5M_DATA, 1, "\1" },
147
{ KV5M_DATA, 8, "\x9E\xC7\x8F\xA4\xA4\xB3\xE0\xD5" }
153
{ KV5M_DATA, 1, "\1" },
154
{ KV5M_DATA, 8, "\xD9\x92\x86\x8F\x9D\x8C\x85\xE6" }
160
{ KV5M_DATA, 1, "\1" },
161
{ KV5M_DATA, 8, "\xDA\xF2\x92\x83\xF4\x9B\xA7\xAD" }
167
{ KV5M_DATA, 1, "\1" },
168
{ KV5M_DATA, 8, "\x91\xCD\xAD\xEF\x86\xDF\xD3\xA2" }
174
{ KV5M_DATA, 1, "\1" },
175
{ KV5M_DATA, 8, "\x73\xD3\x67\x68\x8F\x6E\xE3\x73" }
181
{ KV5M_DATA, 1, "\1" },
182
{ KV5M_DATA, 8, "\xC4\x61\x85\x9D\xAD\xF4\xDC\xB0" }
188
{ KV5M_DATA, 1, "\1" },
189
{ KV5M_DATA, 8, "\xE9\x02\x83\x16\x2C\xEC\xE0\x08" }
195
{ KV5M_DATA, 1, "\1" },
196
{ KV5M_DATA, 8, "\x61\xC8\x26\x29\xD9\x73\x6E\xB6" }
202
{ KV5M_DATA, 1, "\1" },
203
{ KV5M_DATA, 8, "\x8C\xA8\x9E\xC4\xA8\xDC\x31\x73" }
206
/* Test vectors from RFC 3961 appendix A.2. */
210
"ATHENA.MIT.EDUraeburn",
211
{ KV5M_DATA, 1, "\0" },
212
{ KV5M_DATA, 8, "\xCB\xC2\x2F\xAE\x23\x52\x98\xE3" }
217
"WHITEHOUSE.GOVdanny",
218
{ KV5M_DATA, 1, "\0" },
219
{ KV5M_DATA, 8, "\xDF\x3D\x32\xA7\x4F\xD9\x2A\x01" }
224
"EXAMPLE.COMpianist",
225
{ KV5M_DATA, 1, "\0" },
226
{ KV5M_DATA, 8, "\x4F\xFB\x26\xBA\xB0\xCD\x94\x13" }
231
"ATHENA.MIT.EDUJuri\xC5\xA1\x69\xC4\x87",
232
{ KV5M_DATA, 1, "\0" },
233
{ KV5M_DATA, 8, "\x62\xC8\x1A\x52\x32\xB5\xE6\x9D" }
239
{ KV5M_DATA, 1, "\0" },
240
{ KV5M_DATA, 8, "\x98\x40\x54\xd0\xf1\xa7\x3e\x31" }
246
{ KV5M_DATA, 1, "\0" },
247
{ KV5M_DATA, 8, "\xC4\xBF\x6B\x25\xAD\xF7\xA4\xF8" }
250
/* Test vectors from RFC 3961 appendix A.4. */
252
ENCTYPE_DES3_CBC_SHA1,
254
"ATHENA.MIT.EDUraeburn",
255
{ KV5M_DATA, 0, NULL },
256
{ KV5M_DATA, 24, "\x85\x0B\xB5\x13\x58\x54\x8C\xD0\x5E\x86\x76\x8C"
257
"\x31\x3E\x3B\xFE\xF7\x51\x19\x37\xDC\xF7\x2C\x3E" }
260
ENCTYPE_DES3_CBC_SHA1,
262
"WHITEHOUSE.GOVdanny",
263
{ KV5M_DATA, 0, NULL },
264
{ KV5M_DATA, 24, "\xDF\xCD\x23\x3D\xD0\xA4\x32\x04\xEA\x6D\xC4\x37"
265
"\xFB\x15\xE0\x61\xB0\x29\x79\xC1\xF7\x4F\x37\x7A" }
268
ENCTYPE_DES3_CBC_SHA1,
270
"EXAMPLE.COMbuckaroo",
271
{ KV5M_DATA, 0, NULL },
272
{ KV5M_DATA, 24, "\x6D\x2F\xCD\xF2\xD6\xFB\xBC\x3D\xDC\xAD\xB5\xDA"
273
"\x57\x10\xA2\x34\x89\xB0\xD3\xB6\x9D\x5D\x9D\x4A" }
276
ENCTYPE_DES3_CBC_SHA1,
278
"ATHENA.MIT.EDUJuri\xC5\xA1\x69\xC4\x87",
279
{ KV5M_DATA, 0, NULL },
280
{ KV5M_DATA, 24, "\x16\xD5\xA4\x0E\x1C\xE3\xBA\xCB\x61\xB9\xDC\xE0"
281
"\x04\x70\x32\x4C\x83\x19\x73\xA7\xB9\x52\xFE\xB0" }
284
ENCTYPE_DES3_CBC_SHA1,
286
"EXAMPLE.COMpianist",
287
{ KV5M_DATA, 0, NULL },
288
{ KV5M_DATA, 24, "\x85\x76\x37\x26\x58\x5D\xBC\x1C\xCE\x6E\xC4\x3E"
289
"\x1F\x75\x1F\x07\xF1\xC4\xCB\xB0\x98\xF4\x0B\x19" }
40
292
/* Test vectors from RFC 3962 appendix B. */
42
294
ENCTYPE_AES128_CTS_HMAC_SHA1_96,
44
296
"ATHENA.MIT.EDUraeburn",