blob: db076d782c35808cb5141b1e1c26240a69225577 [file] [log] [blame]
Neels Hofmeyr8cde6622017-01-31 02:10:40 +01001
2===== test_gen_vectors_2g_only
3aud3g.u.umts.sqn == 0
4DAUC rand 39fa2f4e3d523d8619a73b4f65c3e14d
5DAUC compute vector [0]/1: 2G only
6rc == 1
7auth vector ==
8 rand: 39fa2f4e3d523d8619a73b4f65c3e14d
9 autn: 00000000000000000000000000000000
10 ck: 00000000000000000000000000000000
11 ik: 00000000000000000000000000000000
12 res: 00000000000000000000000000000000
13 res_len: 00
14 kc: 241a5b16aeb8e400
15 sres: 429d5b27
16 auth_types: 01000000
17
18aud3g.u.umts.sqn == 0
19DAUC rand 39fa2f4e3d523d8619a73b4f65c3e14d
20DAUC compute vector [0]/1: 2G only
21rc == 1
22auth vector ==
23 rand: 39fa2f4e3d523d8619a73b4f65c3e14d
24 autn: 00000000000000000000000000000000
25 ck: 00000000000000000000000000000000
26 ik: 00000000000000000000000000000000
27 res: 00000000000000000000000000000000
28 res_len: 00
29 kc: 241a5b16aeb8e400
30 sres: 429d5b27
31 auth_types: 01000000
32
33===== test_gen_vectors_2g_only: SUCCESS
34
35
36===== test_gen_vectors_2g_plus_3g
37aud3g.u.umts.sqn == 0
38DAUC rand 39fa2f4e3d523d8619a73b4f65c3e14d
39DAUC compute vector [0]/1: separate 2G + 3G
40rc == 1
41auth vector ==
42 rand: 39fa2f4e3d523d8619a73b4f65c3e14d
43 autn: 8704f5ba55f30000d2ee44b22c8ea919
44 ck: f64735036e5871319c679f4742a75ea1
45 ik: 27497388b6cb044648f396aa155b95ef
46 res: e229c19e791f2e410000000000000000
47 res_len: 08
48 kc: 241a5b16aeb8e400
49 sres: 429d5b27
50 auth_types: 03000000
51
52aud3g.u.umts.sqn == 1
53aud3g.u.umts.sqn == 0
54DAUC rand 39fa2f4e3d523d8619a73b4f65c3e14d
55DAUC compute vector [0]/1: separate 2G + 3G
56rc == 1
57aud3g.u.umts.sqn == 1
58auth vector ==
59 rand: 39fa2f4e3d523d8619a73b4f65c3e14d
60 autn: 8704f5ba55f30000d2ee44b22c8ea919
61 ck: f64735036e5871319c679f4742a75ea1
62 ik: 27497388b6cb044648f396aa155b95ef
63 res: e229c19e791f2e410000000000000000
64 res_len: 08
65 kc: 241a5b16aeb8e400
66 sres: 429d5b27
67 auth_types: 03000000
68
69===== test_gen_vectors_2g_plus_3g: SUCCESS
70
71
Neels Hofmeyr00c06972017-01-31 01:19:27 +010072===== test_gen_vectors_3g_only
Neels Hofmeyr8cde6622017-01-31 02:10:40 +010073aud3g.u.umts.sqn == 0
74DAUC rand 39fa2f4e3d523d8619a73b4f65c3e14d
75DAUC compute vector [0]/1: 3G only
76rc == 1
77auth vector ==
78 rand: 39fa2f4e3d523d8619a73b4f65c3e14d
79 autn: 8704f5ba55f30000d2ee44b22c8ea919
80 ck: f64735036e5871319c679f4742a75ea1
81 ik: 27497388b6cb044648f396aa155b95ef
82 res: e229c19e791f2e410000000000000000
83 res_len: 08
84 kc: 059a4f668f6fbe39
85 sres: 9b36efdf
86 auth_types: 03000000
87
88aud3g.u.umts.sqn == 1
89aud3g.u.umts.sqn == 0
90DAUC rand 39fa2f4e3d523d8619a73b4f65c3e14d
91DAUC compute vector [0]/1: 3G only
92rc == 1
93aud3g.u.umts.sqn == 1
94auth vector ==
95 rand: 39fa2f4e3d523d8619a73b4f65c3e14d
96 autn: 8704f5ba55f30000d2ee44b22c8ea919
97 ck: f64735036e5871319c679f4742a75ea1
98 ik: 27497388b6cb044648f396aa155b95ef
99 res: e229c19e791f2e410000000000000000
100 res_len: 08
101 kc: 059a4f668f6fbe39
102 sres: 9b36efdf
103 auth_types: 03000000
104
Neels Hofmeyrec9036b2017-02-21 21:56:11 +0100105- test AUTS resync
106aud3g.u.umts.sqn == 0
107DAUC rand 897210a0f7de278f0b8213098e098a3f
108DAUC compute vector [0]/1: 3G only
109rc == 1
110aud3g.u.umts.sqn == 25
111auth vector ==
112 rand: 897210a0f7de278f0b8213098e098a3f
113 autn: c6b9790dad4b00000cf322869ea6a481
114 ck: e9922bd036718ed9e40bd1d02c3b81a5
115 ik: f19c20ca863137f8892326d959ec5e01
116 res: 9af5a557902d2db80000000000000000
117 res_len: 08
118 kc: 7526fc13c5976685
119 sres: 0ad888ef
120 auth_types: 03000000
121
Neels Hofmeyr428c9472017-02-21 22:50:59 +0100122- verify N vectors with AUTS resync == N vectors without AUTS
123First just set rand and sqn = 24, and compute 3 vectors
124aud3g.u.umts.sqn == 24
125DAUC rand 897210a0f7de278f0b8213098e098a3f
126DAUC compute vector [0]/3: 3G only
127DAUC rand 9a8321b108ef38a01c93241a9f1a9b50
128DAUC compute vector [1]/3: 3G only
129DAUC rand ab9432c2190049b12da4352bb02bac61
130DAUC compute vector [2]/3: 3G only
131rc == 3
132aud3g.u.umts.sqn == 27
133[0]: auth vector ==
134 rand: 897210a0f7de278f0b8213098e098a3f
135 autn: c6b9790dad4b00000cf322869ea6a481
136 ck: e9922bd036718ed9e40bd1d02c3b81a5
137 ik: f19c20ca863137f8892326d959ec5e01
138 res: 9af5a557902d2db80000000000000000
139 res_len: 08
140 kc: 7526fc13c5976685
141 sres: 0ad888ef
142 auth_types: 03000000
143
144[1]: auth vector ==
145 rand: 9a8321b108ef38a01c93241a9f1a9b50
146 autn: 79a5113eb0910000be6020540503ffc5
147 ck: 3686f05df057d1899c66ae4eb18cf941
148 ik: 79f21ed53bcb47787de57d136ff803a5
149 res: 43023475cb29292c0000000000000000
150 res_len: 08
151 kc: aef73dd515e86c15
152 sres: 882b1d59
153 auth_types: 03000000
154
155[2]: auth vector ==
156 rand: ab9432c2190049b12da4352bb02bac61
157 autn: 24b018d46c3b00009c7e1b47f3a19b2b
158 ck: d86c3191a36fc0602e48202ef2080964
159 ik: 648dab72016181406243420649e63dc9
160 res: 010cab11cc63a6e40000000000000000
161 res_len: 08
162 kc: f0eaf8cb19e0758d
163 sres: cd6f0df5
164 auth_types: 03000000
165
166Now reach sqn = 24 with AUTS and expect the same
167DAUC rand 897210a0f7de278f0b8213098e098a3f
168DAUC compute vector [0]/3: 3G only
169DAUC rand 9a8321b108ef38a01c93241a9f1a9b50
170DAUC compute vector [1]/3: 3G only
171DAUC rand ab9432c2190049b12da4352bb02bac61
172DAUC compute vector [2]/3: 3G only
173THERE IS A BUG AND THE TEST PASSES THE WRONG VECTORS UNTIL THAT IS FIXED
174The SQN should increment with each new vector.
175[0]: auth vector ==
176 rand: 897210a0f7de278f0b8213098e098a3f
177 autn: c6b9790dad4b00000cf322869ea6a481
178 ck: e9922bd036718ed9e40bd1d02c3b81a5
179 ik: f19c20ca863137f8892326d959ec5e01
180 res: 9af5a557902d2db80000000000000000
181 res_len: 08
182 kc: 7526fc13c5976685
183 sres: 0ad888ef
184 auth_types: 03000000
185
186[1]: auth vector ==
187 rand: 9a8321b108ef38a01c93241a9f1a9b50
188 autn: 79a5113eb0900000f7e138537aa0962b
189 ck: 3686f05df057d1899c66ae4eb18cf941
190 ik: 79f21ed53bcb47787de57d136ff803a5
191 res: 43023475cb29292c0000000000000000
192 res_len: 08
193 kc: aef73dd515e86c15
194 sres: 882b1d59
195 auth_types: 03000000
196
197[2]: auth vector ==
198 rand: ab9432c2190049b12da4352bb02bac61
199 autn: 24b018d46c390000d88e11730d0367ac
200 ck: d86c3191a36fc0602e48202ef2080964
201 ik: 648dab72016181406243420649e63dc9
202 res: 010cab11cc63a6e40000000000000000
203 res_len: 08
204 kc: f0eaf8cb19e0758d
205 sres: cd6f0df5
206 auth_types: 03000000
207
Neels Hofmeyr00c06972017-01-31 01:19:27 +0100208===== test_gen_vectors_3g_only: SUCCESS
209
Neels Hofmeyr569d3222017-02-21 22:57:11 +0100210
211===== test_gen_vectors_bad_args
212
213- no auth data (a)
214DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
215rc == -1
216
217- no auth data (b)
218DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
219rc == -1
220
221- no auth data (c)
222DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
223rc == -1
224
225- no auth data (d)
226DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
227rc == -1
228
229- no auth data (e)
230DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
231rc == -1
232
233- no auth data (f)
234DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
235rc == -1
236
237- no auth data (g)
238DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
239rc == -1
240
241- no auth data (h)
242DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
243rc == -1
244
245- no auth data (i)
246DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
247rc == -1
248
249- no auth data (j)
250DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
251rc == -1
252
253- no auth data (k)
254DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
255rc == -1
256
257- no auth data (l)
258DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
259rc == -1
260
261- no auth data (m)
262DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
263rc == -1
264
265- no auth data (n)
266DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
267rc == -1
268
269- no auth data (o)
270DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
271rc == -1
272
273- no auth data (p)
274DAUC auc_compute_vectors() called with neither 2G nor 3G auth data available
275rc == -1
276
277- wrong auth data type (a)
278DAUC auc_compute_vectors() called with non-2G auth data passed for aud2g arg
279rc == -1
280
281- wrong auth data type (b)
282DAUC auc_compute_vectors() called with non-2G auth data passed for aud2g arg
283rc == -1
284
285- wrong auth data type (c)
286DAUC auc_compute_vectors() called with non-2G auth data passed for aud2g arg
287rc == -1
288
289- wrong auth data type (d)
290DAUC auc_compute_vectors() called with non-2G auth data passed for aud2g arg
291rc == -1
292
293- wrong auth data type (e)
294DAUC auc_compute_vectors() called with non-3G auth data passed for aud3g arg
295rc == -1
296
297- wrong auth data type (f)
298DAUC auc_compute_vectors() called with non-3G auth data passed for aud3g arg
299rc == -1
300
301- wrong auth data type (g)
302DAUC auc_compute_vectors() called with non-3G auth data passed for aud3g arg
303rc == -1
304
305- wrong auth data type (h)
306DAUC auc_compute_vectors() called with non-3G auth data passed for aud3g arg
307rc == -1
308
309- wrong auth data type (i)
310DAUC auc_compute_vectors() called with non-2G auth data passed for aud2g arg
311rc == -1
312
313- wrong auth data type (j)
314DAUC auc_compute_vectors() called with non-2G auth data passed for aud2g arg
315rc == -1
316
317- wrong auth data type (k)
318DAUC auc_compute_vectors() called with non-3G auth data passed for aud3g arg
319rc == -1
320
321- AUTS for 2G-only (a)
322DAUC auc_compute_vectors() with AUTS called but no 3G auth data passed
323rc == -1
324
325- AUTS for 2G-only (b)
326DAUC auc_compute_vectors() with AUTS called but no 3G auth data passed
327rc == -1
328
329- AUTS for 2G-only (c)
330DAUC auc_compute_vectors() with AUTS called but no 3G auth data passed
331rc == -1
332
333- AUTS for 2G-only (d)
334DAUC auc_compute_vectors() with AUTS called but no 3G auth data passed
335rc == -1
336
337- incomplete AUTS (a)
338DAUC auc_compute_vectors() with only one of AUTS and AUTS_RAND given, need both or neither
339rc == -1
340
341- incomplete AUTS (b)
342DAUC auc_compute_vectors() with only one of AUTS and AUTS_RAND given, need both or neither
343rc == -1
344
345- incomplete AUTS (c)
346DAUC auc_compute_vectors() with only one of AUTS and AUTS_RAND given, need both or neither
347rc == -1
348
349- incomplete AUTS (d)
350DAUC auc_compute_vectors() with only one of AUTS and AUTS_RAND given, need both or neither
351rc == -1
352===== test_gen_vectors_bad_args: SUCCESS
353