1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Intel Corporation
5 #ifndef TEST_CRYPTODEV_SECURITY_DOCSIS_TEST_VECTORS_H_
6 #define TEST_CRYPTODEV_SECURITY_DOCSIS_TEST_VECTORS_H_
9 * DOCSIS test data and cases
10 * - encrypt direction: CRC-Crypto
11 * - decrypt direction: Crypto-CRC
14 struct docsis_test_data {
15 const char test_descr_uplink[128];
16 const char test_descr_downlink[128];
24 uint8_t data[16] __rte_aligned(16);
31 unsigned int cipher_offset;
32 unsigned int crc_offset;
40 unsigned int cipher_offset;
41 unsigned int crc_offset;
47 const struct docsis_test_data docsis_test_case_1 = {
48 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (24-byte "
49 "frame, Small offset and runt block decryption)"},
50 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
51 "(24-byte frame, Small offset and runt block encryption)"},
54 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
55 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
61 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
62 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
69 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
71 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
72 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
74 0xFF, 0xFF, 0xFF, 0xFF
85 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
87 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
88 0x04, 0x03, 0x02, 0x01, 0x7A, 0xF0,
90 0x61, 0xF8, 0x63, 0x42
100 const struct docsis_test_data docsis_test_case_2 = {
101 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (25-byte "
102 "frame, Small offset and runt block decryption)"},
103 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
104 "(25-byte frame, Small offset and runt block encryption)"},
107 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
108 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
114 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
115 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
122 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
124 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
125 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA,
127 0xFF, 0xFF, 0xFF, 0xFF
138 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
140 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
141 0x04, 0x03, 0x02, 0x01, 0x7A, 0xF0, 0xDF,
143 0xFE, 0x12, 0x99, 0xE5
153 const struct docsis_test_data docsis_test_case_3 = {
154 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (34-byte "
155 "frame, Small offset and full block decryption)"},
156 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
157 "(34-byte frame, Small offset and full block encryption)"},
160 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
161 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
167 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
168 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
175 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
177 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
178 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
179 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
181 0xFF, 0xFF, 0xFF, 0xFF
192 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
194 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
195 0x04, 0x03, 0x02, 0x01, 0xD6, 0xE2, 0x70, 0x5C,
196 0xE6, 0x4D, 0xCC, 0x8C, 0x47, 0xB7, 0x09, 0xD6,
198 0x54, 0x85, 0xF8, 0x32
208 const struct docsis_test_data docsis_test_case_4 = {
209 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (35-byte "
210 "frame, Small offset and uneven decryption)"},
211 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
212 "(35-byte frame, Small offset and uneven encryption)"},
215 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
216 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
222 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
223 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
230 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
232 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
233 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
234 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
237 0xFF, 0xFF, 0xFF, 0xFF
248 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
250 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
251 0x04, 0x03, 0x02, 0x01, 0x92, 0x6A, 0xC2, 0xDC,
252 0xEE, 0x3B, 0x31, 0xEC, 0x03, 0xDE, 0x95, 0x33,
255 0xFE, 0x47, 0x3E, 0x22
265 const struct docsis_test_data docsis_test_case_5 = {
266 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (82-byte "
267 "frame, Small offset and full block decryption)"},
268 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
269 "(82-byte frame, Small offset and full block encryption)"},
272 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
273 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
279 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
280 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
287 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
289 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
290 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
291 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
292 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
293 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
294 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
295 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
296 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
297 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
299 0xFF, 0xFF, 0xFF, 0xFF
310 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
312 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
313 0x04, 0x03, 0x02, 0x01, 0x77, 0x74, 0x56, 0x05,
314 0xD1, 0x14, 0xA2, 0x8D, 0x2C, 0x9A, 0x11, 0xFC,
315 0x7D, 0xB0, 0xE7, 0x18, 0xCE, 0x75, 0x7C, 0x89,
316 0x14, 0x56, 0xE2, 0xF2, 0xB7, 0x47, 0x08, 0x27,
317 0xF7, 0x08, 0x7A, 0x13, 0x90, 0x81, 0x75, 0xB0,
318 0xC7, 0x91, 0x04, 0x83, 0xAD, 0x11, 0x46, 0x46,
319 0xF8, 0x54, 0x87, 0xA0, 0x42, 0xF3, 0x71, 0xA9,
320 0x8A, 0xCD, 0x59, 0x77, 0x67, 0x11, 0x1A, 0x87,
322 0xAB, 0xED, 0x2C, 0x26
332 const struct docsis_test_data docsis_test_case_6 = {
333 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
334 "frame, Small offset and uneven decryption)"},
335 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
336 "(83-byte frame, Small offset and uneven encryption)"},
339 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
340 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
346 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
347 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
354 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
356 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
357 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
358 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
359 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
360 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
361 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
362 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
363 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
364 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
367 0xFF, 0xFF, 0xFF, 0xFF
378 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
380 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
381 0x04, 0x03, 0x02, 0x01, 0x77, 0x74, 0x56, 0x05,
382 0xD1, 0x14, 0xA2, 0x8D, 0x2C, 0x9A, 0x11, 0xFC,
383 0x7D, 0xB0, 0xE7, 0x18, 0xCE, 0x75, 0x7C, 0x89,
384 0x14, 0x56, 0xE2, 0xF2, 0xB7, 0x47, 0x08, 0x27,
385 0xF7, 0x08, 0x7A, 0x13, 0x90, 0x81, 0x75, 0xB0,
386 0xC7, 0x91, 0x04, 0x83, 0xAD, 0x11, 0x46, 0x46,
387 0xF8, 0x54, 0x87, 0xA0, 0xA4, 0x0C, 0xC2, 0xF0,
388 0x81, 0x49, 0xA8, 0xA6, 0x6C, 0x48, 0xEB, 0x1F,
391 0x2F, 0xD4, 0x48, 0x18
401 const struct docsis_test_data docsis_test_case_7 = {
402 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
403 "frame, Big offset and uneven decryption)"},
404 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
405 "(83-byte frame, Big offset and uneven encryption)"},
408 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
409 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
415 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
416 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
423 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
425 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
426 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
427 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
428 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
429 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
430 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
431 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
432 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
433 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
436 0xFF, 0xFF, 0xFF, 0xFF
447 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
449 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
450 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
451 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
452 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
453 0xAA, 0xAA, 0x3B, 0x9F, 0x72, 0x4C, 0xB5, 0x72,
454 0x3E, 0x56, 0x54, 0x49, 0x13, 0x53, 0xC4, 0xAA,
455 0xCD, 0xEA, 0x6A, 0x88, 0x99, 0x07, 0x86, 0xF4,
456 0xCF, 0x03, 0x4E, 0xDF, 0x65, 0x61, 0x47, 0x5B,
457 0x2F, 0x81, 0x09, 0x12, 0x9A, 0xC2, 0x24, 0x8C,
460 0x11, 0xB4, 0x06, 0x33
470 const struct docsis_test_data docsis_test_case_8 = {
471 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (24-byte "
472 "frame, No CRC, Small offset and runt block decryption)"},
473 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
474 "(24-byte frame, No CRC, Small offset and runt block encryption)"},
477 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
478 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
484 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
485 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
492 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
494 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
495 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
497 0xFF, 0xFF, 0xFF, 0xFF
508 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
510 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
511 0x04, 0x03, 0x02, 0x01, 0x7A, 0xF0,
513 0x8A, 0x0F, 0x74, 0xE8
523 const struct docsis_test_data docsis_test_case_9 = {
524 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
525 "frame, No CRC, Big offset and uneven decryption)"},
526 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
527 "(83-byte frame, No CRC, Big offset and uneven encryption)"},
530 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
531 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
537 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
538 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
545 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
547 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
548 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
549 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
550 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
551 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
552 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
553 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
554 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
555 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
558 0xFF, 0xFF, 0xFF, 0xFF
569 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
571 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
572 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
573 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
574 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
575 0xAA, 0xAA, 0x3B, 0x9F, 0x72, 0x4C, 0xB5, 0x72,
576 0x3E, 0x56, 0x54, 0x49, 0x13, 0x53, 0xC4, 0xAA,
577 0xCD, 0xEA, 0x6A, 0x88, 0x99, 0x07, 0x86, 0xF4,
578 0xCF, 0x03, 0x4E, 0xDF, 0x65, 0x61, 0x47, 0x5B,
579 0x2F, 0x81, 0x09, 0x12, 0x9A, 0xC2, 0x24, 0x8C,
582 0x5D, 0x2B, 0x12, 0xF4
592 const struct docsis_test_data docsis_test_case_10 = {
593 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (24-byte "
594 "frame, No decryption)"},
595 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
596 "(24-byte frame, No encryption)"},
599 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
600 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
606 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
607 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
614 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
616 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
617 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
619 0xFF, 0xFF, 0xFF, 0xFF
630 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
632 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
633 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
635 0x14, 0x08, 0xE8, 0x55
645 const struct docsis_test_data docsis_test_case_11 = {
646 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
647 "frame, No decryption)"},
648 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
649 "(83-byte frame, No encryption)"},
652 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
653 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
659 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
660 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
667 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
669 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
670 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
671 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
672 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
673 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
674 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
675 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
676 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
677 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
680 0xFF, 0xFF, 0xFF, 0xFF
691 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
693 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
694 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
695 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
696 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
697 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
698 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
699 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
700 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
701 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
704 0xB3, 0x60, 0xEB, 0x38
714 const struct docsis_test_data docsis_test_case_12 = {
715 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (24-byte "
716 "frame, No CRC, No decryption)"},
717 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
718 "(24-byte frame, No CRC, No encryption)"},
721 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
722 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
728 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
729 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
736 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
738 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
739 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
741 0xFF, 0xFF, 0xFF, 0xFF
752 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
754 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
755 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
757 0xFF, 0xFF, 0xFF, 0xFF
767 const struct docsis_test_data docsis_test_case_13 = {
768 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
769 "frame, No CRC, No decryption)"},
770 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
771 "(83-byte frame, No CRC, No encryption)"},
774 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
775 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
781 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
782 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
789 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
791 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
792 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
793 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
794 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
795 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
796 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
797 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
798 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
799 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
802 0xFF, 0xFF, 0xFF, 0xFF
813 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
815 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
816 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
817 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
818 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
819 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
820 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
821 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
822 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
823 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
826 0xFF, 0xFF, 0xFF, 0xFF
836 const struct docsis_test_data docsis_test_case_14 = {
837 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (24-byte "
838 "frame, Small offset and runt block decryption)"},
839 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
840 "(24-byte frame, Small offset and runt block encryption)"},
843 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
844 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
845 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
846 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
852 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
853 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
860 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
862 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
863 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
865 0xFF, 0xFF, 0xFF, 0xFF
876 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
878 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
879 0x04, 0x03, 0x02, 0x01, 0x6A, 0x86,
881 0x9B, 0xB3, 0x1A, 0x26
891 const struct docsis_test_data docsis_test_case_15 = {
892 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (25-byte "
893 "frame, Small offset and runt block decryption)"},
894 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
895 "(25-byte frame, Small offset and runt block encryption)"},
898 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
899 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
900 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
901 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
907 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
908 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
915 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
917 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
918 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA,
920 0xFF, 0xFF, 0xFF, 0xFF
931 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
933 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
934 0x04, 0x03, 0x02, 0x01, 0x6A, 0x86, 0x25,
936 0xB5, 0x6B, 0xFD, 0xCB
946 const struct docsis_test_data docsis_test_case_16 = {
947 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (34-byte "
948 "frame, Small offset and full block decryption)"},
949 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
950 "(34-byte frame, Small offset and full block encryption)"},
953 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
954 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
955 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
956 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
962 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
963 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
970 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
972 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
973 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
974 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
976 0xFF, 0xFF, 0xFF, 0xFF
987 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
989 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
990 0x04, 0x03, 0x02, 0x01, 0xF6, 0xA1, 0x2E, 0x0A,
991 0xBB, 0x27, 0x82, 0x4F, 0x99, 0x0A, 0xE2, 0x3F,
993 0xEB, 0xB7, 0x89, 0xB0
1003 const struct docsis_test_data docsis_test_case_17 = {
1004 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (35-byte "
1005 "frame, Small offset and uneven decryption)"},
1006 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1007 "(35-byte frame, Small offset and uneven encryption)"},
1010 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1011 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1012 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1013 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1019 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1020 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1027 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1028 /* Ethernet frame */
1029 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1030 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1031 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1034 0xFF, 0xFF, 0xFF, 0xFF
1037 .cipher_offset = 18,
1045 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1046 /* Ethernet frame */
1047 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1048 0x04, 0x03, 0x02, 0x01, 0xE1, 0x30, 0x38, 0xC8,
1049 0xC4, 0x59, 0x8D, 0x43, 0x9A, 0xBE, 0xBE, 0x73,
1052 0x8C, 0xE1, 0x89, 0x8B
1055 .cipher_offset = 18,
1062 const struct docsis_test_data docsis_test_case_18 = {
1063 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (82-byte "
1064 "frame, Small offset and full block decryption)"},
1065 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1066 "(82-byte frame, Small offset and full block encryption)"},
1069 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1070 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1071 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1072 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1078 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1079 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1086 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1087 /* Ethernet frame */
1088 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1089 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1090 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1091 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1092 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1093 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1094 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1095 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1096 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1098 0xFF, 0xFF, 0xFF, 0xFF
1101 .cipher_offset = 18,
1109 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1110 /* Ethernet frame */
1111 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1112 0x04, 0x03, 0x02, 0x01, 0xE9, 0x12, 0x3B, 0x12,
1113 0x36, 0x56, 0x95, 0xA6, 0x97, 0xF1, 0x74, 0x68,
1114 0xBA, 0x58, 0x77, 0xEA, 0x43, 0x11, 0x85, 0xD4,
1115 0x7A, 0xF8, 0x1C, 0x11, 0x50, 0xD1, 0xF1, 0xBD,
1116 0x15, 0x4D, 0x99, 0xB5, 0x39, 0x74, 0x84, 0xDF,
1117 0xD4, 0x8B, 0xDC, 0xB7, 0x58, 0x1B, 0x22, 0xAB,
1118 0xF3, 0x29, 0xC6, 0xCB, 0x26, 0x07, 0x36, 0x6B,
1119 0x8C, 0xAC, 0x6E, 0x99, 0x37, 0x94, 0xDF, 0x31,
1121 0xA1, 0x7D, 0x70, 0xBB
1124 .cipher_offset = 18,
1131 const struct docsis_test_data docsis_test_case_19 = {
1132 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
1133 "frame, Small offset and uneven decryption)"},
1134 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1135 "(83-byte frame, Small offset and uneven encryption)"},
1138 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1139 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1140 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1141 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1147 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1148 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1155 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1156 /* Ethernet frame */
1157 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1158 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1159 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1160 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1161 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1162 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1163 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1164 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1165 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1168 0xFF, 0xFF, 0xFF, 0xFF
1171 .cipher_offset = 18,
1179 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1180 /* Ethernet frame */
1181 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1182 0x04, 0x03, 0x02, 0x01, 0xE9, 0x12, 0x3B, 0x12,
1183 0x36, 0x56, 0x95, 0xA6, 0x97, 0xF1, 0x74, 0x68,
1184 0xBA, 0x58, 0x77, 0xEA, 0x43, 0x11, 0x85, 0xD4,
1185 0x7A, 0xF8, 0x1C, 0x11, 0x50, 0xD1, 0xF1, 0xBD,
1186 0x15, 0x4D, 0x99, 0xB5, 0x39, 0x74, 0x84, 0xDF,
1187 0xD4, 0x8B, 0xDC, 0xB7, 0x58, 0x1B, 0x22, 0xAB,
1188 0xF3, 0x29, 0xC6, 0xCB, 0x13, 0xED, 0x08, 0xF5,
1189 0x1B, 0x4B, 0xD8, 0x79, 0x93, 0x26, 0x69, 0x03,
1192 0xC8, 0x8E, 0x02, 0x3A
1195 .cipher_offset = 18,
1202 const struct docsis_test_data docsis_test_case_20 = {
1203 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
1204 "frame, Big offset and uneven decryption)"},
1205 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1206 "(83-byte frame, Big offset and uneven encryption)"},
1209 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1210 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1211 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1212 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1218 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1219 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1226 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1227 /* Ethernet frame */
1228 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1229 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1230 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1231 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1232 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1233 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1234 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1235 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1236 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1239 0xFF, 0xFF, 0xFF, 0xFF
1242 .cipher_offset = 40,
1250 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1251 /* Ethernet frame */
1252 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1253 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1254 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1255 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1256 0xAA, 0xAA, 0x54, 0xB4, 0x55, 0x68, 0x06, 0xBF,
1257 0x00, 0x8B, 0x5F, 0x2C, 0x10, 0x4A, 0xBF, 0x5A,
1258 0xF2, 0x20, 0xD9, 0x77, 0x7F, 0x2D, 0x2B, 0x11,
1259 0xAC, 0xAF, 0x21, 0x36, 0xD2, 0xD4, 0x80, 0xF2,
1260 0x4F, 0x14, 0xA0, 0x3A, 0x66, 0xE5, 0xC5, 0xE2,
1263 0x0C, 0x89, 0x76, 0x26
1266 .cipher_offset = 40,
1273 const struct docsis_test_data docsis_test_case_21 = {
1274 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (24-byte "
1275 "frame, No CRC, Small offset and runt block decryption)"},
1276 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1277 "(24-byte frame, No CRC, Small offset and runt block encryption)"},
1280 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1281 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1282 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1283 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1289 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1290 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1297 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1298 /* Ethernet frame */
1299 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1300 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
1302 0xFF, 0xFF, 0xFF, 0xFF
1305 .cipher_offset = 18,
1313 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1314 /* Ethernet frame */
1315 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1316 0x04, 0x03, 0x02, 0x01, 0x6A, 0x86,
1318 0x70, 0x44, 0x0D, 0x8C
1321 .cipher_offset = 18,
1328 const struct docsis_test_data docsis_test_case_22 = {
1329 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
1330 "frame, No CRC, Big offset and uneven decryption)"},
1331 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1332 "(83-byte frame, No CRC, Big offset and uneven encryption)"},
1335 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1336 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1337 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1338 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1344 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1345 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1352 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1353 /* Ethernet frame */
1354 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1355 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1356 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1357 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1358 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1359 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1360 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1361 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1362 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1365 0xFF, 0xFF, 0xFF, 0xFF
1368 .cipher_offset = 40,
1376 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1377 /* Ethernet frame */
1378 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1379 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1380 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1381 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1382 0xAA, 0xAA, 0x54, 0xB4, 0x55, 0x68, 0x06, 0xBF,
1383 0x00, 0x8B, 0x5F, 0x2C, 0x10, 0x4A, 0xBF, 0x5A,
1384 0xF2, 0x20, 0xD9, 0x77, 0x7F, 0x2D, 0x2B, 0x11,
1385 0xAC, 0xAF, 0x21, 0x36, 0xD2, 0xD4, 0x80, 0xF2,
1386 0x4F, 0x14, 0xA0, 0x3A, 0x66, 0xE5, 0xC5, 0xE2,
1389 0x40, 0x16, 0x62, 0xE1
1392 .cipher_offset = 40,
1399 const struct docsis_test_data docsis_test_case_23 = {
1400 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (24-byte "
1401 "frame, No decryption)"},
1402 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1403 "(24-byte frame, No encryption)"},
1406 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1407 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1408 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1409 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1415 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1416 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1423 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1424 /* Ethernet frame */
1425 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1426 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
1428 0xFF, 0xFF, 0xFF, 0xFF
1431 .cipher_offset = 18,
1439 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1440 /* Ethernet frame */
1441 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1442 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
1444 0x14, 0x08, 0xE8, 0x55
1447 .cipher_offset = 18,
1454 const struct docsis_test_data docsis_test_case_24 = {
1455 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
1456 "frame, No decryption)"},
1457 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1458 "(83-byte frame, No encryption)"},
1461 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1462 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1463 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1464 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1470 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1471 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1478 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1479 /* Ethernet frame */
1480 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1481 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1482 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1483 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1484 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1485 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1486 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1487 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1488 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1491 0xFF, 0xFF, 0xFF, 0xFF
1494 .cipher_offset = 40,
1502 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1503 /* Ethernet frame */
1504 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1505 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1506 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1507 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1508 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1509 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1510 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1511 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1512 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1515 0xB3, 0x60, 0xEB, 0x38
1518 .cipher_offset = 40,
1525 const struct docsis_test_data docsis_test_case_25 = {
1526 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (24-byte "
1527 "frame, No CRC, No decryption)"},
1528 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1529 "(24-byte frame, No CRC, No encryption)"},
1532 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1533 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1534 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1535 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1541 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1542 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1549 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1550 /* Ethernet frame */
1551 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1552 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
1554 0xFF, 0xFF, 0xFF, 0xFF
1557 .cipher_offset = 18,
1565 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1566 /* Ethernet frame */
1567 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1568 0x04, 0x03, 0x02, 0x01, 0x08, 0x00,
1570 0xFF, 0xFF, 0xFF, 0xFF
1573 .cipher_offset = 18,
1580 const struct docsis_test_data docsis_test_case_26 = {
1581 .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
1582 "frame, No CRC, No decryption)"},
1583 .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
1584 "(83-byte frame, No CRC, No encryption)"},
1587 0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
1588 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
1589 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD,
1590 0xEE, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55
1596 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
1597 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11
1604 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1605 /* Ethernet frame */
1606 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1607 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1608 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1609 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1610 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1611 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1612 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1613 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1614 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1617 0xFF, 0xFF, 0xFF, 0xFF
1620 .cipher_offset = 40,
1628 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1629 /* Ethernet frame */
1630 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x06, 0x05,
1631 0x04, 0x03, 0x02, 0x01, 0x08, 0x00, 0xAA, 0xAA,
1632 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1633 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1634 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1635 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1636 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1637 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1638 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
1641 0xFF, 0xFF, 0xFF, 0xFF
1644 .cipher_offset = 40,
1651 #endif /* TEST_CRYPTODEV_SECURITY_DOCSIS_TEST_VECTORS_H_ */