1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
AT_BANNER([AES-128 unit tests])
m4_define([AES128_CHECK],
[AT_SETUP([$1])
AT_KEYWORDS([aes128])
AT_CHECK([ovstest test-aes128 $2 $3], [0], [$4
], [])
AT_CLEANUP])
AES128_CHECK(
[wikipedia test vector 1],
[00010203050607080a0b0c0d0f101112],
[506812a45f08c889b97f5980038b8359],
[d8f532538289ef7d06b506a4fd5be9c9])
AES128_CHECK(
[wikipedia test vector 2],
[95A8EE8E89979B9EFDCBC6EB9797528D],
[4ec137a426dabf8aa0beb8bc0c2b89d6],
[d9b65d1232ba0199cdbd487b2a1fd646])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 0],
[10a58869d74be5a374cf867cfb473859],
[00000000000000000000000000000000],
[6d251e6944b051e04eaa6fb4dbf78465])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 1],
[caea65cdbb75e9169ecd22ebe6e54675],
[00000000000000000000000000000000],
[6e29201190152df4ee058139def610bb])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 2],
[a2e2fa9baf7d20822ca9f0542f764a41],
[00000000000000000000000000000000],
[c3b44b95d9d2f25670eee9a0de099fa3])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 3],
[b6364ac4e1de1e285eaf144a2415f7a0],
[00000000000000000000000000000000],
[5d9b05578fc944b3cf1ccf0e746cd581])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 4],
[64cf9c7abc50b888af65f49d521944b2],
[00000000000000000000000000000000],
[f7efc89d5dba578104016ce5ad659c05])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 5],
[47d6742eefcc0465dc96355e851b64d9],
[00000000000000000000000000000000],
[0306194f666d183624aa230a8b264ae7])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 6],
[3eb39790678c56bee34bbcdeccf6cdb5],
[00000000000000000000000000000000],
[858075d536d79ccee571f7d7204b1f67])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 7],
[64110a924f0743d500ccadae72c13427],
[00000000000000000000000000000000],
[35870c6a57e9e92314bcb8087cde72ce])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 8],
[18d8126516f8a12ab1a36d9f04d68e51],
[00000000000000000000000000000000],
[6c68e9be5ec41e22c825b7c7affb4363])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 9],
[f530357968578480b398a3c251cd1093],
[00000000000000000000000000000000],
[f5df39990fc688f1b07224cc03e86cea])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 10],
[da84367f325d42d601b4326964802e8e],
[00000000000000000000000000000000],
[bba071bcb470f8f6586e5d3add18bc66])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 11],
[e37b1c6aa2846f6fdb413f238b089f23],
[00000000000000000000000000000000],
[43c9f7e62f5d288bb27aa40ef8fe1ea8])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 12],
[6c002b682483e0cabcc731c253be5674],
[00000000000000000000000000000000],
[3580d19cff44f1014a7c966a69059de5])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 13],
[143ae8ed6555aba96110ab58893a8ae1],
[00000000000000000000000000000000],
[806da864dd29d48deafbe764f8202aef])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 14],
[b69418a85332240dc82492353956ae0c],
[00000000000000000000000000000000],
[a303d940ded8f0baff6f75414cac5243])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 15],
[71b5c08a1993e1362e4d0ce9b22b78d5],
[00000000000000000000000000000000],
[c2dabd117f8a3ecabfbb11d12194d9d0])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 16],
[e234cdca2606b81f29408d5f6da21206],
[00000000000000000000000000000000],
[fff60a4740086b3b9c56195b98d91a7b])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 17],
[13237c49074a3da078dc1d828bb78c6f],
[00000000000000000000000000000000],
[8146a08e2357f0caa30ca8c94d1a0544])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 18],
[3071a2a48fe6cbd04f1a129098e308f8],
[00000000000000000000000000000000],
[4b98e06d356deb07ebb824e5713f7be3])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 19],
[90f42ec0f68385f2ffc5dfc03a654dce],
[00000000000000000000000000000000],
[7a20a53d460fc9ce0423a7a0764c6cf2])
AES128_CHECK(
[NIST KAT ECBKeySbox128e vector 20],
[febd9a24d8b65c1c787d50a4ed3619a9],
[00000000000000000000000000000000],
[f4a70d8af877f9b02b4c40df57d45b17])
|