~ubuntu-branches/ubuntu/precise/krb5/precise-updates

« back to all changes in this revision

Viewing changes to src/lib/crypto/crypto_tests/t_str2key.c

  • Committer: Package Import Robot
  • Author(s): Sam Hartman
  • Date: 2011-12-01 19:34:41 UTC
  • mfrom: (28.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20111201193441-9tipg3aru1jsidyv
Tags: 1.10+dfsg~alpha1-6
* Fix segfault with unknown hostnames in krb5_sname_to_principal,
  Closes: #650671
* Indicate that this library breaks libsmbclient versions that depend on
  krb5_locate_kdc, Closes: #650603, #650611

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
 
2
/* lib/crypto/crypto_tests/t_str2key.c - String-to-key test vectors */
2
3
/*
3
 
 * lib/crypto/crypto_tests/t_str2key.c
4
 
 *
5
4
 * Copyright (C) 2010 by the Massachusetts Institute of Technology.
6
5
 * All rights reserved.
7
6
 *
23
22
 * M.I.T. makes no representations about the suitability of
24
23
 * this software for any purpose.  It is provided "as is" without express
25
24
 * or implied warranty.
26
 
 *
27
 
 *
28
 
 * String-to-key test vectors
29
25
 */
30
26
 
31
27
#include "k5-int.h"
37
33
    krb5_data params;
38
34
    krb5_data expected_key;
39
35
} test_cases[] = {
 
36
    /* AFS string-to-key tests from old t_afss2k.c. */
 
37
    {
 
38
        ENCTYPE_DES_CBC_CRC,
 
39
        "",
 
40
        "Sodium Chloride",
 
41
        { KV5M_DATA, 1, "\1" },
 
42
        { KV5M_DATA, 8, "\xA4\xD0\xD0\x9B\x86\x92\xB0\xC2" }
 
43
    },
 
44
    {
 
45
        ENCTYPE_DES_CBC_CRC,
 
46
        "M",
 
47
        "Sodium Chloride",
 
48
        { KV5M_DATA, 1, "\1" },
 
49
        { KV5M_DATA, 8, "\xF1\xF2\x9E\xAB\xD0\xEF\xDF\x73" }
 
50
    },
 
51
    {
 
52
        ENCTYPE_DES_CBC_CRC,
 
53
        "My",
 
54
        "Sodium Chloride",
 
55
        { KV5M_DATA, 1, "\1" },
 
56
        { KV5M_DATA, 8, "\xD6\x85\x61\xC4\xF2\x94\xF4\xA1" }
 
57
    },
 
58
    {
 
59
        ENCTYPE_DES_CBC_CRC,
 
60
        "My ",
 
61
        "Sodium Chloride",
 
62
        { KV5M_DATA, 1, "\1" },
 
63
        { KV5M_DATA, 8, "\xD0\xE3\xA7\x83\x94\x61\xE0\xD0" }
 
64
    },
 
65
    {
 
66
        ENCTYPE_DES_CBC_CRC,
 
67
        "My P",
 
68
        "Sodium Chloride",
 
69
        { KV5M_DATA, 1, "\1" },
 
70
        { KV5M_DATA, 8, "\xD5\x62\xCD\x94\x61\xCB\x97\xDF" }
 
71
    },
 
72
    {
 
73
        ENCTYPE_DES_CBC_CRC,
 
74
        "My Pa",
 
75
        "Sodium Chloride",
 
76
        { KV5M_DATA, 1, "\1" },
 
77
        { KV5M_DATA, 8, "\x9E\xA2\xA2\xEC\xA8\x8C\x6B\x8F" }
 
78
    },
 
79
    {
 
80
        ENCTYPE_DES_CBC_CRC,
 
81
        "My Pas",
 
82
        "Sodium Chloride",
 
83
        { KV5M_DATA, 1, "\1" },
 
84
        { KV5M_DATA, 8, "\xE3\x91\x6D\xD3\x85\xF1\x67\xC4" }
 
85
    },
 
86
    {
 
87
        ENCTYPE_DES_CBC_CRC,
 
88
        "My Pass",
 
89
        "Sodium Chloride",
 
90
        { KV5M_DATA, 1, "\1" },
 
91
        { KV5M_DATA, 8, "\xF4\xC4\x73\xC8\x8A\xE9\x94\x6D" }
 
92
    },
 
93
    {
 
94
        ENCTYPE_DES_CBC_CRC,
 
95
        "My Passw",
 
96
        "Sodium Chloride",
 
97
        { KV5M_DATA, 1, "\1" },
 
98
        { KV5M_DATA, 8, "\xA1\x9E\xB3\xAD\x6B\xE3\xAB\xD9" }
 
99
    },
 
100
    {
 
101
        ENCTYPE_DES_CBC_CRC,
 
102
        "My Passwo",
 
103
        "Sodium Chloride",
 
104
        { KV5M_DATA, 1, "\1" },
 
105
        { KV5M_DATA, 8, "\xAD\xA1\xCE\x10\x37\x83\xA7\x8C" }
 
106
    },
 
107
    {
 
108
        ENCTYPE_DES_CBC_CRC,
 
109
        "My Passwor",
 
110
        "Sodium Chloride",
 
111
        { KV5M_DATA, 1, "\1" },
 
112
        { KV5M_DATA, 8, "\xD3\x01\xD0\xF7\x3E\x7A\x49\x0B" }
 
113
    },
 
114
    {
 
115
        ENCTYPE_DES_CBC_CRC,
 
116
        "My Password",
 
117
        "Sodium Chloride",
 
118
        { KV5M_DATA, 1, "\1" },
 
119
        { KV5M_DATA, 8, "\xB6\x2A\x4A\xEC\x9D\x4C\x68\xDF" }
 
120
    },
 
121
    {
 
122
        ENCTYPE_DES_CBC_CRC,
 
123
        "",
 
124
        "NaCl",
 
125
        { KV5M_DATA, 1, "\1" },
 
126
        { KV5M_DATA, 8, "\x61\xEF\xE6\x83\xE5\x8A\x6B\x98" }
 
127
    },
 
128
    {
 
129
        ENCTYPE_DES_CBC_CRC,
 
130
        "M",
 
131
        "NaCl",
 
132
        { KV5M_DATA, 1, "\1" },
 
133
        { KV5M_DATA, 8, "\x68\xCD\x68\xAD\xC4\x86\xCD\xE5" }
 
134
    },
 
135
    {
 
136
        ENCTYPE_DES_CBC_CRC,
 
137
        "My",
 
138
        "NaCl",
 
139
        { KV5M_DATA, 1, "\1" },
 
140
        { KV5M_DATA, 8, "\x83\xA1\xC8\x86\x8F\x67\xD0\x62" }
 
141
    },
 
142
    {
 
143
        ENCTYPE_DES_CBC_CRC,
 
144
        "My ",
 
145
        "NaCl",
 
146
        { KV5M_DATA, 1, "\1" },
 
147
        { KV5M_DATA, 8, "\x9E\xC7\x8F\xA4\xA4\xB3\xE0\xD5" }
 
148
    },
 
149
    {
 
150
        ENCTYPE_DES_CBC_CRC,
 
151
        "My P",
 
152
        "NaCl",
 
153
        { KV5M_DATA, 1, "\1" },
 
154
        { KV5M_DATA, 8, "\xD9\x92\x86\x8F\x9D\x8C\x85\xE6" }
 
155
    },
 
156
    {
 
157
        ENCTYPE_DES_CBC_CRC,
 
158
        "My Pa",
 
159
        "NaCl",
 
160
        { KV5M_DATA, 1, "\1" },
 
161
        { KV5M_DATA, 8, "\xDA\xF2\x92\x83\xF4\x9B\xA7\xAD" }
 
162
    },
 
163
    {
 
164
        ENCTYPE_DES_CBC_CRC,
 
165
        "My Pas",
 
166
        "NaCl",
 
167
        { KV5M_DATA, 1, "\1" },
 
168
        { KV5M_DATA, 8, "\x91\xCD\xAD\xEF\x86\xDF\xD3\xA2" }
 
169
    },
 
170
    {
 
171
        ENCTYPE_DES_CBC_CRC,
 
172
        "My Pass",
 
173
        "NaCl",
 
174
        { KV5M_DATA, 1, "\1" },
 
175
        { KV5M_DATA, 8, "\x73\xD3\x67\x68\x8F\x6E\xE3\x73" }
 
176
    },
 
177
    {
 
178
        ENCTYPE_DES_CBC_CRC,
 
179
        "My Passw",
 
180
        "NaCl",
 
181
        { KV5M_DATA, 1, "\1" },
 
182
        { KV5M_DATA, 8, "\xC4\x61\x85\x9D\xAD\xF4\xDC\xB0" }
 
183
    },
 
184
    {
 
185
        ENCTYPE_DES_CBC_CRC,
 
186
        "My Passwo",
 
187
        "NaCl",
 
188
        { KV5M_DATA, 1, "\1" },
 
189
        { KV5M_DATA, 8, "\xE9\x02\x83\x16\x2C\xEC\xE0\x08" }
 
190
    },
 
191
    {
 
192
        ENCTYPE_DES_CBC_CRC,
 
193
        "My Passwor",
 
194
        "NaCl",
 
195
        { KV5M_DATA, 1, "\1" },
 
196
        { KV5M_DATA, 8, "\x61\xC8\x26\x29\xD9\x73\x6E\xB6" }
 
197
    },
 
198
    {
 
199
        ENCTYPE_DES_CBC_CRC,
 
200
        "My Password",
 
201
        "NaCl",
 
202
        { KV5M_DATA, 1, "\1" },
 
203
        { KV5M_DATA, 8, "\x8C\xA8\x9E\xC4\xA8\xDC\x31\x73" }
 
204
    },
 
205
 
 
206
    /* Test vectors from RFC 3961 appendix A.2. */
 
207
    {
 
208
        ENCTYPE_DES_CBC_CRC,
 
209
        "password",
 
210
        "ATHENA.MIT.EDUraeburn",
 
211
        { KV5M_DATA, 1, "\0" },
 
212
        { KV5M_DATA, 8, "\xCB\xC2\x2F\xAE\x23\x52\x98\xE3" }
 
213
    },
 
214
    {
 
215
        ENCTYPE_DES_CBC_CRC,
 
216
        "potatoe",
 
217
        "WHITEHOUSE.GOVdanny",
 
218
        { KV5M_DATA, 1, "\0" },
 
219
        { KV5M_DATA, 8, "\xDF\x3D\x32\xA7\x4F\xD9\x2A\x01" }
 
220
    },
 
221
    {
 
222
        ENCTYPE_DES_CBC_CRC,
 
223
        "\xF0\x9D\x84\x9E",
 
224
        "EXAMPLE.COMpianist",
 
225
        { KV5M_DATA, 1, "\0" },
 
226
        { KV5M_DATA, 8, "\x4F\xFB\x26\xBA\xB0\xCD\x94\x13" }
 
227
    },
 
228
    {
 
229
        ENCTYPE_DES_CBC_CRC,
 
230
        "\xC3\x9F",
 
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" }
 
234
    },
 
235
    {
 
236
        ENCTYPE_DES_CBC_CRC,
 
237
        "11119999",
 
238
        "AAAAAAAA",
 
239
        { KV5M_DATA, 1, "\0" },
 
240
        { KV5M_DATA, 8, "\x98\x40\x54\xd0\xf1\xa7\x3e\x31" }
 
241
    },
 
242
    {
 
243
        ENCTYPE_DES_CBC_CRC,
 
244
        "NNNN6666",
 
245
        "FFFFAAAA",
 
246
        { KV5M_DATA, 1, "\0" },
 
247
        { KV5M_DATA, 8, "\xC4\xBF\x6B\x25\xAD\xF7\xA4\xF8" }
 
248
    },
 
249
 
 
250
    /* Test vectors from RFC 3961 appendix A.4. */
 
251
    {
 
252
        ENCTYPE_DES3_CBC_SHA1,
 
253
        "password",
 
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" }
 
258
    },
 
259
    {
 
260
        ENCTYPE_DES3_CBC_SHA1,
 
261
        "potatoe",
 
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" }
 
266
    },
 
267
    {
 
268
        ENCTYPE_DES3_CBC_SHA1,
 
269
        "penny",
 
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" }
 
274
    },
 
275
    {
 
276
        ENCTYPE_DES3_CBC_SHA1,
 
277
        "\xC3\x9F",
 
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" }
 
282
    },
 
283
    {
 
284
        ENCTYPE_DES3_CBC_SHA1,
 
285
        "\xF0\x9D\x84\x9E",
 
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" }
 
290
    },
 
291
 
40
292
    /* Test vectors from RFC 3962 appendix B. */
41
 
    { 
 
293
    {
42
294
        ENCTYPE_AES128_CTS_HMAC_SHA1_96,
43
295
        "password",
44
296
        "ATHENA.MIT.EDUraeburn",
46
298
        { KV5M_DATA, 16,
47
299
          "\x42\x26\x3C\x6E\x89\xF4\xFC\x28\xB8\xDF\x68\xEE\x09\x79\x9F\x15" }
48
300
    },
49
 
    { 
 
301
    {
50
302
        ENCTYPE_AES256_CTS_HMAC_SHA1_96,
51
303
        "password",
52
304
        "ATHENA.MIT.EDUraeburn",
55
307
          "\xFE\x69\x7B\x52\xBC\x0D\x3C\xE1\x44\x32\xBA\x03\x6A\x92\xE6\x5B"
56
308
          "\xBB\x52\x28\x09\x90\xA2\xFA\x27\x88\x39\x98\xD7\x2A\xF3\x01\x61" }
57
309
    },
58
 
    { 
 
310
    {
59
311
        ENCTYPE_AES128_CTS_HMAC_SHA1_96,
60
312
        "password",
61
313
        "ATHENA.MIT.EDUraeburn",
63
315
        { KV5M_DATA, 16,
64
316
          "\xC6\x51\xBF\x29\xE2\x30\x0A\xC2\x7F\xA4\x69\xD6\x93\xBD\xDA\x13" }
65
317
    },
66
 
    { 
 
318
    {
67
319
        ENCTYPE_AES256_CTS_HMAC_SHA1_96,
68
320
        "password",
69
321
        "ATHENA.MIT.EDUraeburn",
72
324
          "\xA2\xE1\x6D\x16\xB3\x60\x69\xC1\x35\xD5\xE9\xD2\xE2\x5F\x89\x61"
73
325
          "\x02\x68\x56\x18\xB9\x59\x14\xB4\x67\xC6\x76\x22\x22\x58\x24\xFF" }
74
326
    },
75
 
    { 
 
327
    {
76
328
        ENCTYPE_AES128_CTS_HMAC_SHA1_96,
77
329
        "password",
78
330
        "ATHENA.MIT.EDUraeburn",
80
332
        { KV5M_DATA, 16,
81
333
          "\x4C\x01\xCD\x46\xD6\x32\xD0\x1E\x6D\xBE\x23\x0A\x01\xED\x64\x2A" }
82
334
    },
83
 
    { 
 
335
    {
84
336
        ENCTYPE_AES256_CTS_HMAC_SHA1_96,
85
337
        "password",
86
338
        "ATHENA.MIT.EDUraeburn",
89
341
          "\x55\xA6\xAC\x74\x0A\xD1\x7B\x48\x46\x94\x10\x51\xE1\xE8\xB0\xA7"
90
342
          "\x54\x8D\x93\xB0\xAB\x30\xA8\xBC\x3F\xF1\x62\x80\x38\x2B\x8C\x2A" }
91
343
    },
92
 
    { 
 
344
    {
93
345
        ENCTYPE_AES128_CTS_HMAC_SHA1_96,
94
346
        "password",
95
347
        "\x12\x34\x56\x78\x78\x56\x34\x12",
97
349
        { KV5M_DATA, 16,
98
350
          "\xE9\xB2\x3D\x52\x27\x37\x47\xDD\x5C\x35\xCB\x55\xBE\x61\x9D\x8E" }
99
351
    },
100
 
    { 
 
352
    {
101
353
        ENCTYPE_AES256_CTS_HMAC_SHA1_96,
102
354
        "password",
103
355
        "\x12\x34\x56\x78\x78\x56\x34\x12",
106
358
          "\x97\xA4\xE7\x86\xBE\x20\xD8\x1A\x38\x2D\x5E\xBC\x96\xD5\x90\x9C"
107
359
          "\xAB\xCD\xAD\xC8\x7C\xA4\x8F\x57\x45\x04\x15\x9F\x16\xC3\x6E\x31" }
108
360
    },
109
 
    { 
 
361
    {
110
362
        ENCTYPE_AES128_CTS_HMAC_SHA1_96,
111
363
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
112
364
        "pass phrase equals block size",
114
366
        { KV5M_DATA, 16,
115
367
          "\x59\xD1\xBB\x78\x9A\x82\x8B\x1A\xA5\x4E\xF9\xC2\x88\x3F\x69\xED" }
116
368
    },
117
 
    { 
 
369
    {
118
370
        ENCTYPE_AES256_CTS_HMAC_SHA1_96,
119
371
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
120
372
        "pass phrase equals block size",
123
375
          "\x89\xAD\xEE\x36\x08\xDB\x8B\xC7\x1F\x1B\xFB\xFE\x45\x94\x86\xB0"
124
376
          "\x56\x18\xB7\x0C\xBA\xE2\x20\x92\x53\x4E\x56\xC5\x53\xBA\x4B\x34" }
125
377
    },
126
 
    { 
 
378
    {
127
379
        ENCTYPE_AES128_CTS_HMAC_SHA1_96,
128
380
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
129
381
        "pass phrase exceeds block size",
131
383
        { KV5M_DATA, 16,
132
384
          "\xCB\x80\x05\xDC\x5F\x90\x17\x9A\x7F\x02\x10\x4C\x00\x18\x75\x1D" }
133
385
    },
134
 
    { 
 
386
    {
135
387
        ENCTYPE_AES256_CTS_HMAC_SHA1_96,
136
388
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
137
389
        "pass phrase exceeds block size",
140
392
          "\xD7\x8C\x5C\x9C\xB8\x72\xA8\xC9\xDA\xD4\x69\x7F\x0B\xB5\xB2\xD2"
141
393
          "\x14\x96\xC8\x2B\xEB\x2C\xAE\xDA\x21\x12\xFC\xEE\xA0\x57\x40\x1B" }
142
394
    },
143
 
    { 
 
395
    {
144
396
        ENCTYPE_AES128_CTS_HMAC_SHA1_96,
145
397
        "\xF0\x9D\x84\x9E",
146
398
        "EXAMPLE.COMpianist",
148
400
        { KV5M_DATA, 16,
149
401
          "\xF1\x49\xC1\xF2\xE1\x54\xA7\x34\x52\xD4\x3E\x7F\xE6\x2A\x56\xE5" }
150
402
    },
151
 
    { 
 
403
    {
152
404
        ENCTYPE_AES256_CTS_HMAC_SHA1_96,
153
405
        "\xF0\x9D\x84\x9E",
154
406
        "EXAMPLE.COMpianist",
160
412
 
161
413
#ifdef CAMELLIA
162
414
    /* The same inputs applied to Camellia enctypes. */
163
 
    { 
 
415
    {
164
416
        ENCTYPE_CAMELLIA128_CTS_CMAC,
165
417
        "password",
166
418
        "ATHENA.MIT.EDUraeburn",
168
420
        { KV5M_DATA, 16,
169
421
          "\x57\xD0\x29\x72\x98\xFF\xD9\xD3\x5D\xE5\xA4\x7F\xB4\xBD\xE2\x4B" }
170
422
    },
171
 
    { 
 
423
    {
172
424
        ENCTYPE_CAMELLIA256_CTS_CMAC,
173
425
        "password",
174
426
        "ATHENA.MIT.EDUraeburn",
177
429
          "\xB9\xD6\x82\x8B\x20\x56\xB7\xBE\x65\x6D\x88\xA1\x23\xB1\xFA\xC6"
178
430
          "\x82\x14\xAC\x2B\x72\x7E\xCF\x5F\x69\xAF\xE0\xC4\xDF\x2A\x6D\x2C" }
179
431
    },
180
 
    { 
 
432
    {
181
433
        ENCTYPE_CAMELLIA128_CTS_CMAC,
182
434
        "password",
183
435
        "ATHENA.MIT.EDUraeburn",
185
437
        { KV5M_DATA, 16,
186
438
          "\x73\xF1\xB5\x3A\xA0\xF3\x10\xF9\x3B\x1D\xE8\xCC\xAA\x0C\xB1\x52" }
187
439
    },
188
 
    { 
 
440
    {
189
441
        ENCTYPE_CAMELLIA256_CTS_CMAC,
190
442
        "password",
191
443
        "ATHENA.MIT.EDUraeburn",
194
446
          "\x83\xFC\x58\x66\xE5\xF8\xF4\xC6\xF3\x86\x63\xC6\x5C\x87\x54\x9F"
195
447
          "\x34\x2B\xC4\x7E\xD3\x94\xDC\x9D\x3C\xD4\xD1\x63\xAD\xE3\x75\xE3" }
196
448
    },
197
 
    { 
 
449
    {
198
450
        ENCTYPE_CAMELLIA128_CTS_CMAC,
199
451
        "password",
200
452
        "ATHENA.MIT.EDUraeburn",
202
454
        { KV5M_DATA, 16,
203
455
          "\x8E\x57\x11\x45\x45\x28\x55\x57\x5F\xD9\x16\xE7\xB0\x44\x87\xAA" }
204
456
    },
205
 
    { 
 
457
    {
206
458
        ENCTYPE_CAMELLIA256_CTS_CMAC,
207
459
        "password",
208
460
        "ATHENA.MIT.EDUraeburn",
211
463
          "\x77\xF4\x21\xA6\xF2\x5E\x13\x83\x95\xE8\x37\xE5\xD8\x5D\x38\x5B"
212
464
          "\x4C\x1B\xFD\x77\x2E\x11\x2C\xD9\x20\x8C\xE7\x2A\x53\x0B\x15\xE6" }
213
465
    },
214
 
    { 
 
466
    {
215
467
        ENCTYPE_CAMELLIA128_CTS_CMAC,
216
468
        "password",
217
469
        "\x12\x34\x56\x78\x78\x56\x34\x12",
219
471
        { KV5M_DATA, 16,
220
472
          "\x00\x49\x8F\xD9\x16\xBF\xC1\xC2\xB1\x03\x1C\x17\x08\x01\xB3\x81" }
221
473
    },
222
 
    { 
 
474
    {
223
475
        ENCTYPE_CAMELLIA256_CTS_CMAC,
224
476
        "password",
225
477
        "\x12\x34\x56\x78\x78\x56\x34\x12",
228
480
          "\x11\x08\x3A\x00\xBD\xFE\x6A\x41\xB2\xF1\x97\x16\xD6\x20\x2F\x0A"
229
481
          "\xFA\x94\x28\x9A\xFE\x8B\x27\xA0\x49\xBD\x28\xB1\xD7\x6C\x38\x9A" }
230
482
    },
231
 
    { 
 
483
    {
232
484
        ENCTYPE_CAMELLIA128_CTS_CMAC,
233
485
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
234
486
        "pass phrase equals block size",
236
488
        { KV5M_DATA, 16,
237
489
          "\x8B\xF6\xC3\xEF\x70\x9B\x98\x1D\xBB\x58\x5D\x08\x68\x43\xBE\x05" }
238
490
    },
239
 
    { 
 
491
    {
240
492
        ENCTYPE_CAMELLIA256_CTS_CMAC,
241
493
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
242
494
        "pass phrase equals block size",
245
497
          "\x11\x9F\xE2\xA1\xCB\x0B\x1B\xE0\x10\xB9\x06\x7A\x73\xDB\x63\xED"
246
498
          "\x46\x65\xB4\xE5\x3A\x98\xD1\x78\x03\x5D\xCF\xE8\x43\xA6\xB9\xB0" }
247
499
    },
248
 
    { 
 
500
    {
249
501
        ENCTYPE_CAMELLIA128_CTS_CMAC,
250
502
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
251
503
        "pass phrase exceeds block size",
253
505
        { KV5M_DATA, 16,
254
506
          "\x57\x52\xAC\x8D\x6A\xD1\xCC\xFE\x84\x30\xB3\x12\x87\x1C\x2F\x74" }
255
507
    },
256
 
    { 
 
508
    {
257
509
        ENCTYPE_CAMELLIA256_CTS_CMAC,
258
510
        "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
259
511
        "pass phrase exceeds block size",
262
514
          "\x61\x4D\x5D\xFC\x0B\xA6\xD3\x90\xB4\x12\xB8\x9A\xE4\xD5\xB0\x88"
263
515
          "\xB6\x12\xB3\x16\x51\x09\x94\x67\x9D\xDB\x43\x83\xC7\x12\x6D\xDF" }
264
516
    },
265
 
    { 
 
517
    {
266
518
        ENCTYPE_CAMELLIA128_CTS_CMAC,
267
519
        "\xf0\x9d\x84\x9e",
268
520
        "EXAMPLE.COMpianist",
270
522
        { KV5M_DATA, 16,
271
523
          "\xCC\x75\xC7\xFD\x26\x0F\x1C\x16\x58\x01\x1F\xCC\x0D\x56\x06\x16" }
272
524
    },
273
 
    { 
 
525
    {
274
526
        ENCTYPE_CAMELLIA256_CTS_CMAC,
275
527
        "\xf0\x9d\x84\x9e",
276
528
        "EXAMPLE.COMpianist",