*/
struct docsis_test_data {
+ const char test_descr_uplink[128];
+ const char test_descr_downlink[128];
+
struct {
uint8_t data[32];
unsigned int len;
} ciphertext;
};
-struct docsis_test_data docsis_test_case_1 = {
+const struct docsis_test_data docsis_test_case_1 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (24-byte "
+ "frame, Small offset and runt block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(24-byte frame, Small offset and runt block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_2 = {
+const struct docsis_test_data docsis_test_case_2 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (25-byte "
+ "frame, Small offset and runt block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(25-byte frame, Small offset and runt block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_3 = {
+const struct docsis_test_data docsis_test_case_3 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (34-byte "
+ "frame, Small offset and full block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(34-byte frame, Small offset and full block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_4 = {
+const struct docsis_test_data docsis_test_case_4 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (35-byte "
+ "frame, Small offset and uneven decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(35-byte frame, Small offset and uneven encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_5 = {
+const struct docsis_test_data docsis_test_case_5 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (82-byte "
+ "frame, Small offset and full block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(82-byte frame, Small offset and full block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_6 = {
+const struct docsis_test_data docsis_test_case_6 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
+ "frame, Small offset and uneven decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(83-byte frame, Small offset and uneven encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_7 = {
+const struct docsis_test_data docsis_test_case_7 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
+ "frame, Big offset and uneven decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(83-byte frame, Big offset and uneven encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_8 = {
+const struct docsis_test_data docsis_test_case_8 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (24-byte "
+ "frame, No CRC, Small offset and runt block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(24-byte frame, No CRC, Small offset and runt block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_9 = {
+const struct docsis_test_data docsis_test_case_9 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
+ "frame, No CRC, Big offset and uneven decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(83-byte frame, No CRC, Big offset and uneven encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_10 = {
+const struct docsis_test_data docsis_test_case_10 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (24-byte "
+ "frame, No decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(24-byte frame, No encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_11 = {
+const struct docsis_test_data docsis_test_case_11 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
+ "frame, No decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(83-byte frame, No encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_12 = {
+const struct docsis_test_data docsis_test_case_12 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (24-byte "
+ "frame, No CRC, No decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(24-byte frame, No CRC, No encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_13 = {
+const struct docsis_test_data docsis_test_case_13 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-128 and CRC Verify (83-byte "
+ "frame, No CRC, No decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-128 "
+ "(83-byte frame, No CRC, No encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_14 = {
+const struct docsis_test_data docsis_test_case_14 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (24-byte "
+ "frame, Small offset and runt block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(24-byte frame, Small offset and runt block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_15 = {
+const struct docsis_test_data docsis_test_case_15 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (25-byte "
+ "frame, Small offset and runt block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(25-byte frame, Small offset and runt block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_16 = {
+const struct docsis_test_data docsis_test_case_16 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (34-byte "
+ "frame, Small offset and full block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(34-byte frame, Small offset and full block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_17 = {
+const struct docsis_test_data docsis_test_case_17 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (35-byte "
+ "frame, Small offset and uneven decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(35-byte frame, Small offset and uneven encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_18 = {
+const struct docsis_test_data docsis_test_case_18 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (82-byte "
+ "frame, Small offset and full block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(82-byte frame, Small offset and full block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_19 = {
+const struct docsis_test_data docsis_test_case_19 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
+ "frame, Small offset and uneven decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(83-byte frame, Small offset and uneven encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_20 = {
+const struct docsis_test_data docsis_test_case_20 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
+ "frame, Big offset and uneven decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(83-byte frame, Big offset and uneven encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_21 = {
+const struct docsis_test_data docsis_test_case_21 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (24-byte "
+ "frame, No CRC, Small offset and runt block decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(24-byte frame, No CRC, Small offset and runt block encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_22 = {
+const struct docsis_test_data docsis_test_case_22 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
+ "frame, No CRC, Big offset and uneven decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(83-byte frame, No CRC, Big offset and uneven encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_23 = {
+const struct docsis_test_data docsis_test_case_23 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (24-byte "
+ "frame, No decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(24-byte frame, No encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_24 = {
+const struct docsis_test_data docsis_test_case_24 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
+ "frame, No decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(83-byte frame, No encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_25 = {
+const struct docsis_test_data docsis_test_case_25 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (24-byte "
+ "frame, No CRC, No decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(24-byte frame, No CRC, No encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,
}
};
-struct docsis_test_data docsis_test_case_26 = {
+const struct docsis_test_data docsis_test_case_26 = {
+ .test_descr_uplink = {"Uplink AES-DOCSIS-BPI-256 and CRC Verify (83-byte "
+ "frame, No CRC, No decryption)"},
+ .test_descr_downlink = {"Downlink CRC Generate and AES-DOCSIS-BPI-256 "
+ "(83-byte frame, No CRC, No encryption)"},
.key = {
.data = {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xBB, 0xCC, 0xDD,