Generalise the existing support for performing CBC-mode block cipher tests, and update the code to use okx() for neater reporting of test results. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
||
25 | 25 |
|
26 | 26 |
|
27 | 27 |
|
28 |
|
|
28 |
|
|
29 | 29 |
|
30 | 30 |
|
31 | 31 |
|
|
||
41 | 41 |
|
42 | 42 |
|
43 | 43 |
|
44 |
|
|
44 |
|
|
45 | 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 |
|
|
46 |
|
|
47 |
|
|
126 | 48 |
|
127 | 49 |
|
128 | 50 |
|
|
||
144 | 66 |
|
145 | 67 |
|
146 | 68 |
|
147 |
|
|
148 |
|
|
69 |
|
|
70 |
|
|
149 | 71 |
|
150 | 72 |
|
151 | 73 |
|
|
||
169 | 91 |
|
170 | 92 |
|
171 | 93 |
|
172 |
|
|
94 |
|
|
173 | 95 |
|
174 | 96 |
|
175 |
|
|
176 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
177 | 100 |
|
178 | 101 |
|
179 |
|
|
180 |
|
|
102 |
|
|
103 |
|
|
181 | 104 |
|
182 | 105 |
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
188 |
|
|
189 |
|
|
190 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
|
191 | 112 |
|
192 | 113 |
|
193 |
|
|
194 |
|
|
195 |
|
|
196 |
|
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
197 | 118 |
|
|
||
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 |
|
|
||
25 | 25 |
|
26 | 26 |
|
27 | 27 |
|
28 |
|
|
28 |
|
|
29 | 29 |
|
30 | 30 |
|
31 | 31 |
|
|
||
38 | 38 |
|
39 | 39 |
|
40 | 40 |
|
41 |
|
|
41 |
|
|
42 |
|
|
42 | 43 |
|
43 | 44 |
|
44 | 45 |
|
45 | 46 |
|
46 | 47 |
|
47 |
|
|
48 |
|
|
48 | 49 |
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
57 | 53 |
|
58 |
|
|
59 |
|
|
60 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
61 | 58 |
|
62 | 59 |
|
63 |
|
|
64 | 60 |
|
65 | 61 |
|
66 |
|
|
67 |
|
|
68 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
69 | 65 |
|
70 | 66 |
|
71 |
|
|
67 |
|
|
72 | 68 |
|
73 |
|
|
74 |
|
|
69 |
|
|
70 |
|
|
75 | 71 |
|
76 | 72 |
|
77 | 73 |
|
78 |
|
|
74 |
|
|
79 | 75 |
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
88 | 79 |
|
89 |
|
|
90 |
|
|
91 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
92 | 84 |
|
93 | 85 |
|
94 |
|
|
95 | 86 |
|
96 | 87 |
|
97 |
|
|
98 |
|
|
99 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
100 | 91 |
|
101 | 92 |
|
102 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
103 | 108 |
|
104 |
|
|
105 |
|
|
109 |
|
|
110 |
|
|
106 | 111 |
|
107 | 112 |
|
108 | 113 |
|
109 |
|
|
114 |
|
|
110 | 115 |
|
111 | 116 |
|
112 | 117 |
|
113 | 118 |
|
114 | 119 |
|
115 | 120 |
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
|
121 | 125 |
|
122 | 126 |
|
123 | 127 |
|
|
||
157 | 161 |
|
158 | 162 |
|
159 | 163 |
|
160 |
|
|
164 |
|
|
161 | 165 |
|
162 | 166 |
|
163 | 167 |
|
164 | 168 |
|
165 | 169 |
|
166 |
|
|
167 |
|
|
168 |
|
|
170 |
|
|
171 |
|
|
172 |
|
|
169 | 173 |
|
170 | 174 |
|
171 | 175 |
|
172 |
|
|
176 |
|
|
173 | 177 |
|
174 | 178 |
|
175 | 179 |
|
176 | 180 |
|
177 | 181 |
|
178 |
|
|
179 |
|
|
180 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
181 | 185 |
|
|
||
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 |
|
|
||
50 | 50 |
|
51 | 51 |
|
52 | 52 |
|
53 |
|
|
53 |
|
|
54 | 54 |
|
55 | 55 |
|
56 | 56 |
|