rl_tests.htm
18.5 KB
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./rl_tests_files/filelist.xml">
<title>RL test enumeration</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>pramila</o:Author>
<o:Template>Normal</o:Template>
<o:LastAuthor>pramila</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>84</o:TotalTime>
<o:LastPrinted>2003-08-08T22:53:00Z</o:LastPrinted>
<o:Created>2003-08-23T17:35:00Z</o:Created>
<o:LastSaved>2003-08-23T17:35:00Z</o:LastSaved>
<o:Pages>2</o:Pages>
<o:Words>475</o:Words>
<o:Characters>2708</o:Characters>
<o:Company>RouteFree</o:Company>
<o:Lines>22</o:Lines>
<o:Paragraphs>5</o:Paragraphs>
<o:CharactersWithSpaces>3325</o:CharactersWithSpaces>
<o:Version>9.2720</o:Version>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
h1
{mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:1;
font-size:16.0pt;
font-family:Arial;
mso-font-kerning:16.0pt;}
h2
{mso-style-next:Normal;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.25in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:2;
font-size:12.0pt;
font-family:"Times New Roman";}
p.MsoBodyTextIndent, li.MsoBodyTextIndent, div.MsoBodyTextIndent
{margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.25in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:600142187;
mso-list-type:hybrid;
mso-list-template-ids:-691661398 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
margin-left:1.0in;
text-indent:-.25in;
font-family:Symbol;}
@list l1
{mso-list-id:640156655;
mso-list-type:hybrid;
mso-list-template-ids:975889084 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
margin-left:1.0in;
text-indent:-.25in;
font-family:Symbol;}
@list l2
{mso-list-id:818040062;
mso-list-type:hybrid;
mso-list-template-ids:-1004106674 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
margin-left:1.0in;
text-indent:-.25in;
font-family:Symbol;}
@list l3
{mso-list-id:916211291;
mso-list-type:hybrid;
mso-list-template-ids:-1216725926 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l3:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
margin-left:1.0in;
text-indent:-.25in;
font-family:Symbol;}
@list l4
{mso-list-id:1091656206;
mso-list-type:hybrid;
mso-list-template-ids:990683674 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l4:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:.75in;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;
font-family:Symbol;}
@list l5
{mso-list-id:1540894792;
mso-list-type:hybrid;
mso-list-template-ids:-192127440 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l5:level1
{mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l6
{mso-list-id:1576085609;
mso-list-type:hybrid;
mso-list-template-ids:-59079820 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l6:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
margin-left:1.0in;
text-indent:-.25in;
font-family:Symbol;}
@list l7
{mso-list-id:1767264443;
mso-list-type:hybrid;
mso-list-template-ids:-1167930418 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l7:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
margin-left:1.5in;
text-indent:-.25in;
font-family:Symbol;}
@list l8
{mso-list-id:1786580505;
mso-list-type:hybrid;
mso-list-template-ids:366649412 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l8:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:.75in;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;
font-family:Symbol;}
@list l9
{mso-list-id:1830170075;
mso-list-type:hybrid;
mso-list-template-ids:-729363770 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l9:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
margin-left:1.0in;
text-indent:-.25in;
font-family:Symbol;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
</head>
<body lang=EN-US style='tab-interval:.5in'>
<div class=Section1>
<h1>RL test enumeration</h1>
<p class=MsoNormal style='margin-left:.25in'><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=MsoBodyTextIndent>In all cases, set virage version numbers to known
values, run test, check virage values, and PASS or FAIL return value.</p>
<p class=MsoNormal style='margin-left:.25in'><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<h2>Single RLValidation</h2>
<p class=MsoNormal style='margin-left:.25in'>Check all the paths in ValidateRl.
Pick any one RL (example CARL)</p>
<p class=MsoNormal style='margin-left:.25in'>Version number checks</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l8 level1 lfo2;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>pass in null header, virage = 0, check for return PASS,
no change to Virage</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l8 level1 lfo2;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>pass in null header, ticket version number > 0,
return FAIL, no change in Virage</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l8 level1 lfo2;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>pass in rl with version number < virage version
number, check for return FAIL, no change</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l8 level1 lfo2;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>pass in ticket with version number < virage version
number, check for return FAIL, no change</p>
<p class=MsoNormal style='margin-left:.5in'>set virage version numbers to 0,
1,1.</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l8 level1 lfo2;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>pass in good CARL, check return PASS, virage set to (1,
0, 0)</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l8 level1 lfo2;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>pass in good XSRL, check return PASS, virage set to (1,
1, 0)</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l8 level1 lfo2;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>pass in good CPRL, check return PASS, virage set to (1,
1, 1)</p>
<p class=MsoNormal style='margin-left:.5in'>set virage version numbers to N, N,
N</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l4 level1 lfo4;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>repeat and check results are (N+1, 0, 0),<span
style="mso-spacerun: yes"> </span>(N+1, 1, 0) and (N+1, 0, 1)</p>
<p class=MsoNormal style='margin-left:.5in'>Signature Checks</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l4 level1 lfo4;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>randomly alter sign on the RL, check return FAIL, check
no change to virage</p>
<p class=MsoNormal style='margin-left:.5in'>Cert Chain Signature Check</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l4 level1 lfo4;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>randomly alter signer cert signature, return FAIL,
check no change to virage</p>
<p class=MsoNormal style='margin-left:.5in'>Name negative checks</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l4 level1 lfo4;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>change issuer name on CPCA to XSCA, call it CP
revocation list type, return FAIL, no change to virage</p>
<p class=MsoNormal style='margin-left:.75in;text-indent:-.25in;mso-list:l4 level1 lfo4;
tab-stops:list .75in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>change issuer name on XSCA to CPCA, call it XS
revocation list type, return FAIL, no change to virage</p>
<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>Pick one CP and XS RL and do the
tests for names and version number. No need to repeat signature checks.</p>
<p class=MsoNormal style='margin-left:.5in'><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<h2>RL Chain Validation</h2>
<p class=MsoNormal><span style='mso-tab-count:1'> </span>Since all
the Rl internal validation is tested, this amounts to testing that a CARL
revoked CA cannot issue an RL.</p>
<p class=MsoNormal><span style='mso-tab-count:1'> </span>Testing 2
lines in ticketBundleRevoked(): 4 cases</p>
<p class=MsoNormal style='text-indent:.5in'>Negative test:</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l1 level1 lfo5;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>CARL has CPCAx, and CPCAx is signer on CPRL, return
FAIL, no change to virage.(*)</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l1 level1 lfo5;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>CARL has XSCAx and XSCAx is signer on XSRL, return
FAIL, no change to virage.</p>
<p class=MsoNormal style='margin-left:.5in'>Positive test:</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo7;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>CARL has several random CPCAn, CPCAn is not signer of
CPRL, return PASS, update virage.(*)</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo7;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>CARL has several random XSCAn, XSCAn is not signer of
XSRL, return PASS, update virage.</p>
<p class=MsoNormal style='margin-left:.25in;text-indent:.25in'>The positive
tests above also validate that ticketBundleRevoked calls the validateRl
correctly.</p>
<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<h2>Ticket Chain Validation</h2>
<p class=MsoNormal style='margin-left:.5in'>This amounts to testing that the 4
signers on the ticket bundle, TS, TSCA, CP, CPCA are not on the respective
revocation lists.</p>
<p class=MsoNormal style='margin-left:.5in'>No need to check update to virage.
Same version numbers on virage and crls and ticket.</p>
<p class=MsoNormal style='margin-left:.5in'>This is the only test that needs a
valid ticket bundle to be sent in.<span style="mso-spacerun: yes">
</span>generate good ticket bundles with server names changed as follows:</p>
<p class=MsoNormal><span style='mso-tab-count:1'> </span>Testing 4
lines in ticketBundleRevoked(): 8 cases.</p>
<p class=MsoNormal><span style='mso-tab-count:1'> </span>Negative
test:</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l6 level1 lfo9;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>CARL has CPCAx and CPCAx is signer on metadata chain CA
cert. No other RL, return FAIL(*)</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l6 level1 lfo9;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>CARL has XSCAx and XSCAx is signer on ticket chain CA
cert. No other RL, return FAIL</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l6 level1 lfo9;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>CPRL has CPx and CPx is signer on metadata chain. No
other RL, return FAIL (*)</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l6 level1 lfo9;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>XSRL has XSx and XSx is signer on ticket chain. No
other RL, return FAIL.</p>
<p class=MsoNormal style='margin-left:.5in'>Positive test:</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l2 level1 lfo10;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>CARL has several random names, not the specific ticket
chain CA or metadata chain CA, return PASS (*)</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l2 level1 lfo10;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>CPRL has random name, not on the specific metadata
chain CP, return PASS.(*)</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in;mso-list:l2 level1 lfo10;
tab-stops:list 1.0in'><![if !supportLists]><span style='font-family:Symbol'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>XSRL has random name, not on the specific ticket chain
XS, return PASS.</p>
<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<h2>System App Chain Validation</h2>
<p class=MsoNormal><span style='mso-tab-count:1'> </span>A good
system app bundle is created and signer names are changed to do all the 6 tests
marked with (*). </p>
<p class=MsoNormal style='text-indent:.5in'><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
</div>
</body>
</html>