30 int main(
int argc,
char **argv)
34 static const uint8_t rkey[2][16] = {
36 { 0x10, 0xa5, 0x88, 0x69, 0xd7, 0x4b, 0xe5, 0xa3,
37 0x74, 0xcf, 0x86, 0x7c, 0xfb, 0x47, 0x38, 0x59 }
39 static const uint8_t rpt[2][16] = {
40 { 0x6a, 0x84, 0x86, 0x7c, 0xd7, 0x7e, 0x12, 0xad,
41 0x07, 0xea, 0x1b, 0xe8, 0x95, 0xc5, 0x3f, 0xa3 },
44 static const uint8_t rct[2][16] = {
45 { 0x73, 0x22, 0x81, 0xc0, 0xa0, 0xaa, 0xb8, 0xf7,
46 0xa5, 0x4a, 0x0c, 0x67, 0xa0, 0xc4, 0x5e, 0xcf },
47 { 0x6d, 0x25, 0x1e, 0x69, 0x44, 0xb0, 0x51, 0xe0,
48 0x4e, 0xaa, 0x6f, 0xb4, 0xdb, 0xf7, 0x84, 0x65 }
61 for (
i = 0;
i < 2;
i++) {
64 for (j = 0; j < 16; j++) {
65 if (rpt[
i][j] !=
temp[j]) {
67 j, rpt[
i][j],
temp[j]);
74 if (argc > 1 && !strcmp(argv[1],
"-t")) {
75 struct AVAES *ae, *ad;
91 for (
i = 0;
i < 10000;
i++) {
92 for (j = 0; j < 32; j++)
94 for (j = 0; j < 16; j++)
110 for (j = 0; j < 16; j++) {