|
1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the License "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 // tcms.script |
|
17 |
|
18 LOAD_SUITE tpkcs7server |
|
19 |
|
20 //! @SYMTestCaseID SEC-CMS-SignedData-0000 |
|
21 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
22 //! The signing key: RSA key |
|
23 //! Signer identifier: issuer and serial number |
|
24 //! Signed data content: attached, |
|
25 //! Digest Algorithm: SHA1 |
|
26 //! Hash available: No |
|
27 //! Muti-signature: No |
|
28 //! Certificates provided by User: Yes |
|
29 //! Certificates Set: Yes |
|
30 //! @SYMPREQ PREQ968 |
|
31 //! @SYMTestPriority Critical |
|
32 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
33 //! @SYMTestExpectedResults successfully validated |
|
34 //! @SYMTestType UT |
|
35 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST0 |
|
36 |
|
37 |
|
38 |
|
39 //! @SYMTestCaseID SEC-CMS-SignedData-0001 |
|
40 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
41 //! The signing key: RSA key |
|
42 //! Signer identifier: issuer and serial number |
|
43 //! Signed data content: attached, |
|
44 //! Digest Algorithm: SHA1 |
|
45 //! Hash available: No |
|
46 //! Muti-signature: No |
|
47 //! Certificates provided by User: No |
|
48 //! Certificates Set: Yes |
|
49 //! @SYMPREQ PREQ968 |
|
50 //! @SYMTestPriority Critical |
|
51 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
52 //! @SYMTestExpectedResults successfully validated |
|
53 //! @SYMTestType UT |
|
54 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST1 |
|
55 |
|
56 |
|
57 //! @SYMTestCaseID SEC-CMS-SignedData-0001_1 |
|
58 //! @SYMTestCaseDesc Test creation of a attached CMS object without given the data content |
|
59 //! The signing key: RSA key |
|
60 //! Signer identifier: issuer and serial number |
|
61 //! Signed data content: attached, |
|
62 //! Digest Algorithm: SHA1 |
|
63 //! Hash available: No |
|
64 //! Muti-signature: No |
|
65 //! Certificates provided by User: No |
|
66 //! Certificates Set: Yes |
|
67 //! @SYMPREQ PREQ968 |
|
68 //! @SYMTestPriority Critical |
|
69 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
70 //! @SYMTestExpectedResults KErrArgument |
|
71 //! @SYMTestType UT |
|
72 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST1_1 |
|
73 |
|
74 //! @SYMTestCaseID SEC-CMS-SignedData-0002 |
|
75 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
76 //! The signing key: RSA key |
|
77 //! Signer identifier: issuer and serial number |
|
78 //! Signed data content: detached, |
|
79 //! Digest Algorithm: SHA1 |
|
80 //! Hash available: Yes |
|
81 //! DataDetached: Yes |
|
82 //! Muti-signature: No |
|
83 //! Certificates provided by User: No |
|
84 //! Certificates Set: Yes |
|
85 //! @SYMPREQ PREQ968 |
|
86 //! @SYMTestPriority Critical |
|
87 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
88 //! @SYMTestExpectedResults successfully validated |
|
89 //! @SYMTestType UT |
|
90 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST2 |
|
91 |
|
92 |
|
93 //! @SYMTestCaseID SEC-CMS-SignedData-0002_1 |
|
94 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
95 //! Test two step construction of signed data when hash is provided by user |
|
96 //! The signing key: RSA key |
|
97 //! Signer identifier: issuer and serial number |
|
98 //! Signed data content: detached, |
|
99 //! Digest Algorithm: SHA1 |
|
100 //! Hash available: Yes |
|
101 //! DataDetached: No |
|
102 //! Muti-signature: No |
|
103 //! Certificates provided by User: No |
|
104 //! Certificates Set: Yes |
|
105 //! TwoStepCreation: Yes |
|
106 //! @SYMPREQ PREQ968 |
|
107 //! @SYMTestPriority Critical |
|
108 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
109 //! @SYMTestExpectedResults successfully validated |
|
110 //! @SYMTestType UT |
|
111 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST2_1 |
|
112 |
|
113 |
|
114 //! @SYMTestCaseID SEC-CMS-SignedData-0002_2 |
|
115 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
116 //! Test two step construction of signed data when hash is provided by user |
|
117 //! The signing key: RSA key |
|
118 //! Signer identifier: issuer and serial number |
|
119 //! Signed data content: detached, |
|
120 //! Digest Algorithm: SHA1 |
|
121 //! Hash available: Yes |
|
122 //! DataDetached: Yes |
|
123 //! Muti-signature: No |
|
124 //! Certificates provided by User: No |
|
125 //! Certificates Set: Yes |
|
126 //! TwoStepCreation: Yes |
|
127 //! @SYMPREQ PREQ968 |
|
128 //! @SYMTestPriority Critical |
|
129 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
130 //! @SYMTestExpectedResults successfully validated |
|
131 //! @SYMTestType UT |
|
132 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST2_2 |
|
133 |
|
134 //! @SYMTestCaseID SEC-CMS-SignedData-0003 |
|
135 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
136 //! The signing key: RSA key |
|
137 //! Signer identifier: issuer and serial number |
|
138 //! Signed data content: detached, |
|
139 //! Digest Algorithm: SHA1 |
|
140 //! Hash available: No |
|
141 //! Muti-signature: No |
|
142 //! Certificates provided by User: No |
|
143 //! Certificates Set: Yes |
|
144 //! @SYMPREQ PREQ968 |
|
145 //! @SYMTestPriority Critical |
|
146 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
147 //! @SYMTestExpectedResults successfully validated |
|
148 //! @SYMTestType UT |
|
149 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3 |
|
150 |
|
151 //! @SYMTestCaseID SEC-CMS-SignedData-0003_1 |
|
152 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation when |
|
153 //! no provided hash nor provided data content. |
|
154 //! The signing key: RSA key |
|
155 //! Signer identifier: issuer and serial number |
|
156 //! Signed data content: detached, |
|
157 //! Digest Algorithm: SHA1 |
|
158 //! Hash available: No |
|
159 //! Muti-signature: No |
|
160 //! Certificates provided by User: No |
|
161 //! Certificates Set: Yes |
|
162 //! @SYMPREQ PREQ968 |
|
163 //! @SYMTestPriority Critical |
|
164 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
165 //! @SYMTestExpectedResults KErrArgument |
|
166 //! @SYMTestType UT |
|
167 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_1 |
|
168 |
|
169 //! @SYMTestCaseID SEC-CMS-SignedData-0003_2 |
|
170 //! @SYMTestCaseDesc Test Validateion a detached CMS sign data without given data content or hash |
|
171 //! The signing key: RSA key |
|
172 //! Signer identifier: issuer and serial number |
|
173 //! Signed data content: detached, |
|
174 //! Digest Algorithm: SHA1 |
|
175 //! Hash available: No |
|
176 //! Muti-signature: No |
|
177 //! Certificates provided by User: No |
|
178 //! Certificates Set: Yes |
|
179 //! ValidationDetachedWithoutInput: Yes |
|
180 //! @SYMPREQ PREQ968 |
|
181 //! @SYMTestPriority Critical |
|
182 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
183 //! @SYMTestExpectedResults KErrArgument |
|
184 //! @SYMTestType UT |
|
185 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_2 |
|
186 |
|
187 //! @SYMTestCaseID SEC-CMS-SignedData-0003_3 |
|
188 //! @SYMTestCaseDesc Test Validateion a detached CMS sign data without given data content or hash |
|
189 //! The signing key: RSA key |
|
190 //! Signer identifier: issuer and serial number |
|
191 //! Signed data content: detached, |
|
192 //! Digest Algorithm: SHA1 |
|
193 //! Hash available: No |
|
194 //! Muti-signature: No |
|
195 //! Certificates provided by User: Yes |
|
196 //! Certificates Set: Yes |
|
197 //! ValidationDetachedWithoutInput: Yes |
|
198 //! @SYMPREQ PREQ968 |
|
199 //! @SYMTestPriority Critical |
|
200 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
201 //! @SYMTestExpectedResults KErrArgument |
|
202 //! @SYMTestType UT |
|
203 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_3 |
|
204 |
|
205 //! @SYMTestCaseID SEC-CMS-SignedData-0003_4 |
|
206 //! @SYMTestCaseDesc Test Validateion a detached CMS sign data without given data content or hash |
|
207 //! The signing key: RSA key |
|
208 //! Signer identifier: issuer and serial number |
|
209 //! Signed data content: detached, |
|
210 //! Digest Algorithm: SHA1 |
|
211 //! Hash available: No |
|
212 //! Muti-signature: No |
|
213 //! Certificates provided by User: Yes |
|
214 //! Certificates Set: Yes |
|
215 //! @SYMPREQ PREQ968 |
|
216 //! @SYMTestPriority Critical |
|
217 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
218 //! @SYMTestExpectedResults KErrArgument |
|
219 //! @SYMTestType UT |
|
220 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_4 |
|
221 |
|
222 |
|
223 //! @SYMTestCaseID SEC-CMS-SignedData-0003_5 |
|
224 //! @SYMTestCaseDesc Test Validateion a detached CMS sign data without given data content or hash |
|
225 //! The signing key: RSA key |
|
226 //! Signer identifier: issuer and serial number |
|
227 //! Signed data content: detached, |
|
228 //! Digest Algorithm: SHA1 |
|
229 //! Hash available: Yes |
|
230 //! Muti-signature: No |
|
231 //! Certificates provided by User: Yes |
|
232 //! Certificates Set: Yes |
|
233 //! @SYMPREQ PREQ968 |
|
234 //! @SYMTestPriority Critical |
|
235 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
236 //! @SYMTestExpectedResults KErrArgument |
|
237 //! @SYMTestType UT |
|
238 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_5 |
|
239 |
|
240 //! @SYMTestCaseID SEC-CMS-SignedData-0004 |
|
241 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
242 //! The signing key: RSA key |
|
243 //! Signer identifier: issuer and serial number |
|
244 //! Signed data content: attached, |
|
245 //! Digest Algorithm: MD5 |
|
246 //! Hash available: No |
|
247 //! Muti-signature: No |
|
248 //! Certificates provided by User: No |
|
249 //! Certificates Set: Yes |
|
250 //! @SYMPREQ PREQ968 |
|
251 //! @SYMTestPriority Critical |
|
252 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
253 //! @SYMTestExpectedResults successfully validated |
|
254 //! @SYMTestType UT |
|
255 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST4 |
|
256 |
|
257 |
|
258 //! @SYMTestCaseID SEC-CMS-SignedData-0005 |
|
259 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
260 //! The signing key: RSA key |
|
261 //! Signer identifier: issuer and serial number |
|
262 //! Signed data content: detached, |
|
263 //! Digest Algorithm: MD5 |
|
264 //! Hash available: Yes |
|
265 //! Muti-signature: No |
|
266 //! Certificates provided by User: No |
|
267 //! Certificates Set: Yes |
|
268 //! @SYMPREQ PREQ968 |
|
269 //! @SYMTestPriority Critical |
|
270 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
271 //! @SYMTestExpectedResults successfully validated |
|
272 //! @SYMTestType UT |
|
273 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST5 |
|
274 |
|
275 |
|
276 //! @SYMTestCaseID SEC-CMS-SignedData-0006 |
|
277 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
278 //! The signing key: RSA key |
|
279 //! Signer identifier: issuer and serial number |
|
280 //! Signed data content: detached, |
|
281 //! Digest Algorithm: MD5 |
|
282 //! Hash available: No |
|
283 //! Muti-signature: No |
|
284 //! Certificates provided by User: No |
|
285 //! Certificates Set: Yes |
|
286 //! @SYMPREQ PREQ968 |
|
287 //! @SYMTestPriority Critical |
|
288 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
289 //! @SYMTestExpectedResults successfully validated |
|
290 //! @SYMTestType UT |
|
291 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST6 |
|
292 |
|
293 |
|
294 |
|
295 //! @SYMTestCaseID SEC-CMS-SignedData-0007 |
|
296 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
297 //! The signing key: RSA key |
|
298 //! Signer identifier: issuer and serial number |
|
299 //! Signed data content: attached, |
|
300 //! Digest Algorithm: MD2 |
|
301 //! Hash available: No |
|
302 //! Muti-signature: No |
|
303 //! Certificates provided by User: No |
|
304 //! Certificates Set: Yes |
|
305 //! @SYMPREQ PREQ968 |
|
306 //! @SYMTestPriority Critical |
|
307 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
308 //! @SYMTestExpectedResults successfully validated |
|
309 //! @SYMTestType UT |
|
310 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST7 |
|
311 |
|
312 |
|
313 //! @SYMTestCaseID SEC-CMS-SignedData-0008 |
|
314 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
315 //! The signing key: RSA key |
|
316 //! Signer identifier: issuer and serial number |
|
317 //! Signed data content: detached, |
|
318 //! Digest Algorithm: MD2 |
|
319 //! Hash available: Yes |
|
320 //! Muti-signature: No |
|
321 //! Certificates provided by User: No |
|
322 //! Certificates Set: Yes |
|
323 //! @SYMPREQ PREQ968 |
|
324 //! @SYMTestPriority Critical |
|
325 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
326 //! @SYMTestExpectedResults successfully validated |
|
327 //! @SYMTestType UT |
|
328 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST8 |
|
329 |
|
330 |
|
331 //! @SYMTestCaseID SEC-CMS-SignedData-0009 |
|
332 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
333 //! The signing key: RSA key |
|
334 //! Signer identifier: issuer and serial number |
|
335 //! Signed data content: detached, |
|
336 //! Digest Algorithm: MD2 |
|
337 //! Hash available: No |
|
338 //! Muti-signature: No |
|
339 //! Certificates provided by User: No |
|
340 //! Certificates Set: Yes |
|
341 //! @SYMPREQ PREQ968 |
|
342 //! @SYMTestPriority Critical |
|
343 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
344 //! @SYMTestExpectedResults successfully validated |
|
345 //! @SYMTestType UT |
|
346 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST9 |
|
347 |
|
348 |
|
349 |
|
350 |
|
351 |
|
352 |
|
353 |
|
354 |
|
355 |
|
356 |
|
357 |
|
358 |
|
359 |
|
360 |
|
361 |
|
362 //! @SYMTestCaseID SEC-CMS-SignedData-0010 |
|
363 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
364 //! The signing key: RSA key |
|
365 //! Signer identifier: subject key Id Extension |
|
366 //! Signed data content: attached, |
|
367 //! Digest Algorithm: SHA1 |
|
368 //! Hash available: No |
|
369 //! Muti-signature: No |
|
370 //! Certificates provided by User: No |
|
371 //! Certificates Set: Yes |
|
372 //! @SYMPREQ PREQ968 |
|
373 //! @SYMTestPriority Critical |
|
374 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
375 //! @SYMTestExpectedResults successfully validated |
|
376 //! @SYMTestType UT |
|
377 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST10 |
|
378 |
|
379 |
|
380 |
|
381 //! @SYMTestCaseID SEC-CMS-SignedData-0011 |
|
382 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
383 //! The signing key: RSA key |
|
384 //! Signer identifier: subject key Id Extension |
|
385 //! Signed data content: detached, |
|
386 //! Digest Algorithm: SHA1 |
|
387 //! Hash available: Yes |
|
388 //! Muti-signature: No |
|
389 //! Certificates provided by User: No |
|
390 //! Certificates Set: Yes |
|
391 //! @SYMPREQ PREQ968 |
|
392 //! @SYMTestPriority Critical |
|
393 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
394 //! @SYMTestExpectedResults successfully validated |
|
395 //! @SYMTestType UT |
|
396 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST11 |
|
397 |
|
398 |
|
399 //! @SYMTestCaseID SEC-CMS-SignedData-0012 |
|
400 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
401 //! The signing key: RSA key |
|
402 //! Signer identifier: subject key Id Extension |
|
403 //! Signed data content: detached, |
|
404 //! Digest Algorithm: SHA1 |
|
405 //! Hash available: No |
|
406 //! Muti-signature: No |
|
407 //! Certificates provided by User: No |
|
408 //! Certificates Set: Yes |
|
409 //! @SYMPREQ PREQ968 |
|
410 //! @SYMTestPriority Critical |
|
411 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
412 //! @SYMTestExpectedResults successfully validated |
|
413 //! @SYMTestType UT |
|
414 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST12 |
|
415 |
|
416 |
|
417 //! @SYMTestCaseID SEC-CMS-SignedData-0013 |
|
418 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
419 //! The signing key: RSA key |
|
420 //! Signer identifier: subject key Id Extension |
|
421 //! Signed data content: attached, |
|
422 //! Digest Algorithm: MD5 |
|
423 //! Hash available: No |
|
424 //! Muti-signature: No |
|
425 //! Certificates provided by User: No |
|
426 //! Certificates Set: Yes |
|
427 //! @SYMPREQ PREQ968 |
|
428 //! @SYMTestPriority Critical |
|
429 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
430 //! @SYMTestExpectedResults successfully validated |
|
431 //! @SYMTestType UT |
|
432 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST13 |
|
433 |
|
434 |
|
435 //! @SYMTestCaseID SEC-CMS-SignedData-0014 |
|
436 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
437 //! The signing key: RSA key |
|
438 //! Signer identifier: subject key Id Extension |
|
439 //! Signed data content: detached, |
|
440 //! Digest Algorithm: MD5 |
|
441 //! Hash available: Yes |
|
442 //! Muti-signature: No |
|
443 //! Certificates provided by User: No |
|
444 //! Certificates Set: Yes |
|
445 //! @SYMPREQ PREQ968 |
|
446 //! @SYMTestPriority Critical |
|
447 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
448 //! @SYMTestExpectedResults successfully validated |
|
449 //! @SYMTestType UT |
|
450 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST14 |
|
451 |
|
452 |
|
453 //! @SYMTestCaseID SEC-CMS-SignedData-0015 |
|
454 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
455 //! The signing key: RSA key |
|
456 //! Signer identifier: subject key Id Extension |
|
457 //! Signed data content: detached, |
|
458 //! Digest Algorithm: MD5 |
|
459 //! Hash available: No |
|
460 //! Muti-signature: No |
|
461 //! Certificates provided by User: No |
|
462 //! Certificates Set: Yes |
|
463 //! @SYMPREQ PREQ968 |
|
464 //! @SYMTestPriority Critical |
|
465 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
466 //! @SYMTestExpectedResults successfully validated |
|
467 //! @SYMTestType UT |
|
468 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST15 |
|
469 |
|
470 |
|
471 |
|
472 //! @SYMTestCaseID SEC-CMS-SignedData-0016 |
|
473 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
474 //! The signing key: RSA key |
|
475 //! Signer identifier: subject key Id Extension |
|
476 //! Signed data content: attached, |
|
477 //! Digest Algorithm: MD2 |
|
478 //! Hash available: No |
|
479 //! Muti-signature: No |
|
480 //! Certificates provided by User: No |
|
481 //! Certificates Set: Yes |
|
482 //! @SYMPREQ PREQ968 |
|
483 //! @SYMTestPriority Critical |
|
484 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
485 //! @SYMTestExpectedResults successfully validated |
|
486 //! @SYMTestType UT |
|
487 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST16 |
|
488 |
|
489 |
|
490 //! @SYMTestCaseID SEC-CMS-SignedData-0017 |
|
491 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
492 //! The signing key: RSA key |
|
493 //! Signer identifier: subject key Id Extension |
|
494 //! Signed data content: detached, |
|
495 //! Digest Algorithm: MD2 |
|
496 //! Hash available: Yes |
|
497 //! Muti-signature: No |
|
498 //! Certificates provided by User: No |
|
499 //! Certificates Set: Yes |
|
500 //! @SYMPREQ PREQ968 |
|
501 //! @SYMTestPriority Critical |
|
502 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
503 //! @SYMTestExpectedResults successfully validated |
|
504 //! @SYMTestType UT |
|
505 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST17 |
|
506 |
|
507 |
|
508 //! @SYMTestCaseID SEC-CMS-SignedData-0018 |
|
509 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
510 //! The signing key: RSA key |
|
511 //! Signer identifier: subject key Id Extension |
|
512 //! Signed data content: detached, |
|
513 //! Digest Algorithm: MD2 |
|
514 //! Hash available: No |
|
515 //! Muti-signature: No |
|
516 //! Certificates provided by User: No |
|
517 //! Certificates Set: Yes |
|
518 //! @SYMPREQ PREQ968 |
|
519 //! @SYMTestPriority Critical |
|
520 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
521 //! @SYMTestExpectedResults |
|
522 //! @SYMTestType UT |
|
523 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST18 |
|
524 |
|
525 |
|
526 //! @SYMTestCaseID SEC-CMS-SignedData-0019 |
|
527 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
528 //! The signing key: RSA key |
|
529 //! Signer identifier: subject key Id Extension |
|
530 //! Signed data content: detached, |
|
531 //! Digest Algorithm: MD2 |
|
532 //! Hash available: No |
|
533 //! Muti-signature: No |
|
534 //! Certificates provided by User: No |
|
535 //! Certificates Set: Yes |
|
536 //! Wrong root certificate |
|
537 //! @SYMPREQ PREQ968 |
|
538 //! @SYMTestPriority Critical |
|
539 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
540 //! @SYMTestExpectedResults Validation Fail |
|
541 //! @SYMTestType UT |
|
542 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST19 |
|
543 |
|
544 |
|
545 //! @SYMTestCaseID SEC-CMS-SignedData-0020 |
|
546 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
547 //! The signing key: RSA key |
|
548 //! Signer identifier: issuer and serial number |
|
549 //! Signed data content: attached, |
|
550 //! Digest Algorithm: SHA1 |
|
551 //! Hash available: No |
|
552 //! Muti-signature: No |
|
553 //! Certificates provided by User: Yes |
|
554 //! Certificates Set: No |
|
555 //! @SYMPREQ PREQ968 |
|
556 //! @SYMTestPriority Critical |
|
557 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
558 //! @SYMTestExpectedResults successfully validated |
|
559 //! @SYMTestType UT |
|
560 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST20 |
|
561 |
|
562 //! @SYMTestCaseID SEC-CMS-SignedData-0020-1 |
|
563 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
564 //! The signing key: RSA key |
|
565 //! Signer identifier: issuer and serial number |
|
566 //! Signed data content: attached, |
|
567 //! Digest Algorithm: SHA1 |
|
568 //! Hash available: No |
|
569 //! Muti-signature: No |
|
570 //! Certificates provided by User: Yes |
|
571 //! Certificates Set: No |
|
572 //! @SYMPREQ PREQ968 |
|
573 //! @SYMTestPriority Critical |
|
574 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
575 //! @SYMTestExpectedResults KErrNotFound |
|
576 //! @SYMTestType UT |
|
577 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST20_1 |
|
578 |
|
579 |
|
580 //! @SYMTestCaseID SEC-CMS-SignedData-0020-2 |
|
581 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
582 //! The signing key: RSA key |
|
583 //! Signer identifier: issuer and serial number |
|
584 //! Signed data content: attached, |
|
585 //! Digest Algorithm: SHA1 |
|
586 //! Hash available: No |
|
587 //! Muti-signature: No |
|
588 //! Certificates provided by User: No |
|
589 //! Certificates Set: No |
|
590 //! No Signer Info |
|
591 //! @SYMPREQ PREQ968 |
|
592 //! @SYMTestPriority Critical |
|
593 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
594 //! @SYMTestExpectedResults Encoding Check Successfully |
|
595 //! @SYMTestType UT |
|
596 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST20_2 |
|
597 |
|
598 |
|
599 //! @SYMTestCaseID SEC-CMS-SignedData-0021 |
|
600 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
601 //! The signing key: DSA key |
|
602 //! Signer identifier: subject key Id Extension |
|
603 //! Signed data content: attached, |
|
604 //! Digest Algorithm: SHA1 |
|
605 //! Hash available: No |
|
606 //! Muti-signature: No |
|
607 //! Certificates provided by User: No |
|
608 //! Certificates Set: Yes |
|
609 //! @SYMPREQ PREQ968 |
|
610 //! @SYMTestPriority Critical |
|
611 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
612 //! @SYMTestExpectedResults successfully validated |
|
613 //! @SYMTestType UT |
|
614 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST21 |
|
615 |
|
616 |
|
617 //! @SYMTestCaseID SEC-CMS-SignedData-0022 |
|
618 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
619 //! The signing key: DSA key |
|
620 //! Signer identifier: subject key Id Extension |
|
621 //! Signed data content: detached, |
|
622 //! Digest Algorithm: SHA1 |
|
623 //! Hash available: Yes |
|
624 //! Muti-signature: No |
|
625 //! Certificates provided by User: No |
|
626 //! Certificates Set: Yes |
|
627 //! @SYMPREQ PREQ968 |
|
628 //! @SYMTestPriority Critical |
|
629 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
630 //! @SYMTestExpectedResults successfully validated |
|
631 //! @SYMTestType UT |
|
632 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST22 |
|
633 |
|
634 //! @SYMTestCaseID SEC-CMS-SignedData-0023 |
|
635 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
636 //! The signing key: DSA key |
|
637 //! Signer identifier: subject key Id Extension |
|
638 //! Signed data content: detached, |
|
639 //! Digest Algorithm: MD2 |
|
640 //! Hash available: No |
|
641 //! Muti-signature: No |
|
642 //! Certificates provided by User: No |
|
643 //! Certificates Set: Yes |
|
644 //! @SYMPREQ PREQ968 |
|
645 //! @SYMTestPriority Critical |
|
646 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
647 //! @SYMTestExpectedResults successfully validated |
|
648 //! @SYMTestType UT |
|
649 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST23 |
|
650 |
|
651 |
|
652 |
|
653 //! @SYMTestCaseID SEC-CMS-SignedData-0024 |
|
654 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
655 //! The signing key: DSA key |
|
656 //! Signer identifier: issuer and serial number |
|
657 //! Signed data content: attached, |
|
658 //! Digest Algorithm: SHA1 |
|
659 //! Hash available: No |
|
660 //! Muti-signature: No |
|
661 //! Certificates provided by User: No |
|
662 //! Certificates Set: Yes |
|
663 //! @SYMPREQ PREQ968 |
|
664 //! @SYMTestPriority Critical |
|
665 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
666 //! @SYMTestExpectedResults successfully validated |
|
667 //! @SYMTestType UT |
|
668 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST24 |
|
669 |
|
670 |
|
671 //! @SYMTestCaseID SEC-CMS-SignedData-0025 |
|
672 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
673 //! The signing key: DSA key |
|
674 //! Signer identifier: issuer and serial number |
|
675 //! Signed data content: detached, |
|
676 //! Digest Algorithm: SHA1 |
|
677 //! Hash available: Yes |
|
678 //! Muti-signature: No |
|
679 //! Certificates provided by User: No |
|
680 //! Certificates Set: Yes |
|
681 //! @SYMPREQ PREQ968 |
|
682 //! @SYMTestPriority Critical |
|
683 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
684 //! @SYMTestExpectedResults successfully validated |
|
685 //! @SYMTestType UT |
|
686 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST25 |
|
687 |
|
688 //! @SYMTestCaseID SEC-CMS-SignedData-0026 |
|
689 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
690 //! The signing key: DSA key |
|
691 //! Signer identifier: issuer and serial number |
|
692 //! Signed data content: detached, |
|
693 //! Digest Algorithm: MD2 |
|
694 //! Hash available: No |
|
695 //! Muti-signature: No |
|
696 //! Certificates provided by User: No |
|
697 //! Certificates Set: Yes |
|
698 //! @SYMPREQ PREQ968 |
|
699 //! @SYMTestPriority Critical |
|
700 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
701 //! @SYMTestExpectedResults successfully validated |
|
702 //! @SYMTestType UT |
|
703 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST26 |
|
704 |
|
705 |
|
706 //! @SYMTestCaseID SEC-CMS-SignedData-0027 |
|
707 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
708 //! The signing key: DSA key, RSA key |
|
709 //! Signer identifier: issuer and serial number, subject key Id Extension |
|
710 //! Signed data content: detached, |
|
711 //! Digest Algorithm: SHA1, SHA1 |
|
712 //! Hash available: No |
|
713 //! Muti-signature: YES |
|
714 //! Certificates provided by User: No |
|
715 //! Certificates Set: Yes |
|
716 //! @SYMPREQ PREQ968 |
|
717 //! @SYMTestPriority Critical |
|
718 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
719 //! @SYMTestExpectedResults successfully validated |
|
720 //! @SYMTestType UT |
|
721 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST27 |
|
722 |
|
723 //! @SYMTestCaseID SEC-CMS-SignedData-0028 |
|
724 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
725 //! The signing key: DSA key, RSA key |
|
726 //! Signer identifier: issuer and serial number, subject key Id Extension |
|
727 //! Signed data content: attached, |
|
728 //! Digest Algorithm: SHA1, SHA1 |
|
729 //! Hash available: No |
|
730 //! Muti-signature: YES |
|
731 //! Certificates provided by User: Yes |
|
732 //! Certificates Set: Yes |
|
733 //! @SYMPREQ PREQ968 |
|
734 //! @SYMTestPriority Critical |
|
735 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
736 //! @SYMTestExpectedResults successfully validated |
|
737 //! @SYMTestType UT |
|
738 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST28 |
|
739 |
|
740 //! @SYMTestCaseID SEC-CMS-SignedData-0029 |
|
741 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
742 //! The signing key: RSA key, DSA key |
|
743 //! Signer identifier: subject key Id Extension, issuer and serial number |
|
744 //! Signed data content: attached, |
|
745 //! Digest Algorithm: SHA1, SHA1 |
|
746 //! Hash available: No |
|
747 //! Muti-signature: YES |
|
748 //! Certificates provided by User: No |
|
749 //! Certificates Set: Yes |
|
750 //! @SYMPREQ PREQ968 |
|
751 //! @SYMTestPriority Critical |
|
752 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
753 //! @SYMTestExpectedResults successfully validated |
|
754 //! @SYMTestType UT |
|
755 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST29 |
|
756 |
|
757 //! @SYMTestCaseID SEC-CMS-SignedData-0030 |
|
758 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
759 //! The signing key: RSA key, DSA key |
|
760 //! Signer identifier: subject key Id Extension, issuer and serial number |
|
761 //! Signed data content: attached, |
|
762 //! Digest Algorithm: SHA1, SHA1 |
|
763 //! Hash available: No |
|
764 //! Muti-signature: YES |
|
765 //! Certificates provided by User: Yes |
|
766 //! Certificates Set: Yes |
|
767 //! @SYMPREQ PREQ968 |
|
768 //! @SYMTestPriority Critical |
|
769 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
770 //! @SYMTestExpectedResults successfully validated |
|
771 //! @SYMTestType UT |
|
772 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST30 |
|
773 |
|
774 //! @SYMTestCaseID SEC-CMS-SignedData-0031 |
|
775 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
776 //! The signing key: RSA key, DSA key |
|
777 //! Signer identifier: subject key Id Extension, issuer and serial number |
|
778 //! Signed data content: attached, |
|
779 //! Digest Algorithm: Md5, SHA1 |
|
780 //! Hash available: No |
|
781 //! Muti-signature: YES |
|
782 //! Certificates provided by User: No |
|
783 //! Certificates Set: Yes |
|
784 //! @SYMPREQ PREQ968 |
|
785 //! @SYMTestPriority Critical |
|
786 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
787 //! @SYMTestExpectedResults successfully validated |
|
788 //! @SYMTestType UT |
|
789 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST31 |
|
790 |
|
791 |
|
792 //! @SYMTestCaseID SEC-CMS-SignedData-0032 |
|
793 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
794 //! The signing key: RSA key, DSA key |
|
795 //! Signer identifier: subject key Id Extension, issuer and serial number |
|
796 //! Signed data content: attached, |
|
797 //! Digest Algorithm: Md5, SHA1 |
|
798 //! Hash available: No |
|
799 //! Muti-signature: YES |
|
800 //! Certificates provided by User: No |
|
801 //! Certificates Set: Yes |
|
802 //! Additional Certificate: Yes, X509 certificate |
|
803 //! @SYMPREQ PREQ968 |
|
804 //! @SYMTestPriority Critical |
|
805 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
806 //! @SYMTestExpectedResults successfully validated |
|
807 //! @SYMTestType UT |
|
808 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST32 |
|
809 |
|
810 |
|
811 //! @SYMTestCaseID SEC-CMS-SignedData-0033 |
|
812 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
813 //! The signing key: RSA key, DSA key |
|
814 //! Signer identifier: subject key Id Extension, issuer and serial number |
|
815 //! Signed data content: attached, |
|
816 //! Digest Algorithm: Md5, SHA1 |
|
817 //! Hash available: No |
|
818 //! Muti-signature: YES |
|
819 //! Certificates provided by User: No |
|
820 //! Certificates Set: Yes |
|
821 //! Attribute Certificate: Yes |
|
822 //! @SYMPREQ PREQ968 |
|
823 //! @SYMTestPriority Critical |
|
824 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
825 //! @SYMTestExpectedResults successfully validated |
|
826 //! @SYMTestType UT |
|
827 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST33 |
|
828 |
|
829 //! @SYMTestCaseID SEC-CMS-SignedData-0034 |
|
830 //! @SYMTestCaseDesc Test CMS data Construction, encoding and decoding |
|
831 //! @SYMPREQ PREQ968 |
|
832 //! @SYMTestPriority Critical |
|
833 //! @SYMTestActions Test CMS data Construction, encoding and decoding |
|
834 //! @SYMTestExpectedResults successfully Encoding and Decoding |
|
835 //! @SYMTestType UT |
|
836 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tcms.ini TEST34 |
|
837 |
|
838 |
|
839 //! @SYMTestCaseID SEC-CMS-SignedData-0035 |
|
840 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
841 //! The signing key: RSA key, DSA key |
|
842 //! Signer identifier: subject key Id Extension, issuer and serial number |
|
843 //! Signed data content: attached, |
|
844 //! Digest Algorithm: Md5, SHA1 |
|
845 //! Hash available: No |
|
846 //! Muti-signature: YES |
|
847 //! Certificates provided by User: No |
|
848 //! Certificates Set: Yes |
|
849 //! Additional Certificate: Yes, duplicate cert |
|
850 //! @SYMPREQ PREQ968 |
|
851 //! @SYMTestPriority Critical |
|
852 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
853 //! This test try to add an existing certificate to the certificate set. The |
|
854 //! adding is ignaored. |
|
855 //! @SYMTestExpectedResults successfully validated |
|
856 //! @SYMTestType UT |
|
857 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST35 |
|
858 |
|
859 //! @SYMTestCaseID SEC-CMS-SignedData-0036 |
|
860 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
861 //! The signing key: RSA key, DSA key |
|
862 //! Signer identifier: subject key Id Extension, issuer and serial number |
|
863 //! Signed data content: attached, |
|
864 //! Digest Algorithm: Md5, SHA1 |
|
865 //! Hash available: No |
|
866 //! Muti-signature: YES |
|
867 //! Certificates provided by User: No |
|
868 //! Certificates Set: Yes |
|
869 //! Additional Certificate: Yes, , Encoded X509 certificate |
|
870 //! @SYMPREQ PREQ968 |
|
871 //! @SYMTestPriority Critical |
|
872 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
873 //! @SYMTestExpectedResults successfully validated |
|
874 //! @SYMTestType UT |
|
875 |
|
876 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST36 |
|
877 |
|
878 //! @SYMTestCaseID SEC-CMS-SignedData-0037 |
|
879 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
880 //! The signing key: RSA key, DSA key |
|
881 //! Signer identifier: subject key Id Extension, issuer and serial number |
|
882 //! Signed data content: attached, |
|
883 //! Digest Algorithm: Md5, SHA1 |
|
884 //! Hash available: No |
|
885 //! Muti-signature: YES |
|
886 //! Certificates provided by User: No |
|
887 //! Certificates Set: Yes |
|
888 //! Additional Certificate: Yes, Encoded Extended certificate |
|
889 //! @SYMPREQ PREQ968 |
|
890 //! @SYMTestPriority Critical |
|
891 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
892 //! @SYMTestExpectedResults KErrNotSupported |
|
893 //! @SYMTestType UT |
|
894 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST37 |
|
895 |
|
896 //! @SYMTestCaseID SEC-CMS-SignedData-0040 |
|
897 //! @SYMTestCaseDesc OOM Test CMS signed data construction, encoding, decoding and validation. |
|
898 //! The signing key: RSA key |
|
899 //! Signer identifier: issuer and serial number |
|
900 //! Signed data content: attached, |
|
901 //! Digest Algorithm: SHA1 |
|
902 //! Hash available: No |
|
903 //! Muti-signature: YES |
|
904 //! Certificates provided by User: No |
|
905 //! Certificates Set: Yes |
|
906 //! @SYMPREQ PREQ968 |
|
907 //! @SYMTestPriority Critical |
|
908 //! @SYMTestActions OOM Test CMS signed data construction, encoding, decoding and validation. |
|
909 //! @SYMTestExpectedResults successfully validated |
|
910 //! @SYMTestType UT |
|
911 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST40 |
|
912 |
|
913 |
|
914 //! @SYMTestCaseID SEC-CMS-SignedData-0041 |
|
915 //! @SYMTestCaseDesc OOM Test CMS signed data construction, encoding, decoding and validation. |
|
916 //! The signing key: RSA key, DSA key |
|
917 //! Signer identifier: subject key Id Extension, issuer and serial number |
|
918 //! Signed data content: attached, |
|
919 //! Digest Algorithm: Md5, SHA1 |
|
920 //! Hash available: No |
|
921 //! Muti-signature: YES |
|
922 //! Certificates provided by User: No |
|
923 //! Certificates Set: Yes |
|
924 //! Additional Certificate: Yes |
|
925 //! @SYMPREQ PREQ968 |
|
926 //! @SYMTestPriority Critical |
|
927 //! @SYMTestActions OOM Test CMS signed data construction, encoding, decoding and validation. |
|
928 //! @SYMTestExpectedResults successfully validated |
|
929 //! @SYMTestType UT |
|
930 RUN_TEST_STEP 300 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST41 |
|
931 |
|
932 //! @SYMTestCaseID SEC-CMS-SignedData-0042 |
|
933 //! @SYMTestCaseDesc OOM Test CMS signed data construction, encoding, decoding and validation. |
|
934 //! The signing key: DSA key |
|
935 //! Signer identifier: subject key Id Extension |
|
936 //! Signed data content: detached, |
|
937 //! Digest Algorithm: SHA1 |
|
938 //! Hash available: Yes |
|
939 //! Muti-signature: No |
|
940 //! Certificates provided by User: No |
|
941 //! Certificates Set: Yes |
|
942 //! @SYMPREQ PREQ968 |
|
943 //! @SYMTestPriority Critical |
|
944 //! @SYMTestActions OOM Test CMS signed data construction, encoding, decoding and validation. |
|
945 //! @SYMTestExpectedResults successfully validated |
|
946 //! @SYMTestType UT |
|
947 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST42 |
|
948 |
|
949 //! @SYMTestCaseID OOM SEC-CMS-SignedData-0043 |
|
950 //! @SYMTestCaseDesc Test CMS signed data construction, encoding, decoding and validation. |
|
951 //! The signing key: RSA key |
|
952 //! Signer identifier: issuer and serial number |
|
953 //! Signed data content: detached, |
|
954 //! Digest Algorithm: SHA1 |
|
955 //! Hash available: No |
|
956 //! Muti-signature: No |
|
957 //! Certificates provided by User: No |
|
958 //! Certificates Set: Yes |
|
959 //! @SYMPREQ PREQ968 |
|
960 //! @SYMTestPriority Critical |
|
961 //! @SYMTestActions OOM Test CMS signed data construction, encoding, decoding and validation. |
|
962 //! @SYMTestExpectedResults successfully validated |
|
963 //! @SYMTestType UT |
|
964 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST43 |
|
965 |
|
966 |
|
967 //! @SYMTestCaseID OOM SEC-CMS-SignedData-0044 |
|
968 //! @SYMTestCaseDesc Test decoding and validation CMS Signed data contains unsigned attributes |
|
969 //! The signing key: RSA key |
|
970 //! Signer identifier: subject key id extension |
|
971 //! Signed data content: attached |
|
972 //! Digest Algorithm: SHA1 |
|
973 //! Hash available: No |
|
974 //! Muti-signature: No |
|
975 //! Certificates provided by User: No |
|
976 //! Certificates Set: Yes |
|
977 //! @SYMPREQ PREQ968 |
|
978 //! @SYMTestPriority Critical |
|
979 //! @SYMTestActions Test decoding and validation CMS Signed data contains unsigned attributes |
|
980 //! @SYMTestExpectedResults successfully validated |
|
981 //! @SYMTestType UT |
|
982 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST44 |
|
983 |
|
984 //! @SYMTestCaseID OOM SEC-CMS-SignedData-0045 |
|
985 //! @SYMTestCaseDesc Test decoding CMS Signed data contains signed and unsigned attributes |
|
986 //! The signing key: RSA key |
|
987 //! Signer identifier: subject key id extension |
|
988 //! Signed data content: attached |
|
989 //! Digest Algorithm: SHA1 |
|
990 //! Hash available: No |
|
991 //! Muti-signature: No |
|
992 //! Certificates provided by User: No |
|
993 //! Certificates Set: Yes |
|
994 //! @SYMPREQ PREQ968 |
|
995 //! @SYMTestPriority Critical |
|
996 //! @SYMTestActions Test decoding and validation CMS Signed data contains unsigned attributes |
|
997 //! @SYMTestExpectedResults successfully decoded |
|
998 //! @SYMTestType UT |
|
999 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST45 |
|
1000 |
|
1001 //! @SYMTestCaseID SEC-CMS-SignedData-0046 |
|
1002 //! @SYMTestCaseDesc OOM Test CMS data Construction, encoding and decoding |
|
1003 //! @SYMPREQ PREQ968 |
|
1004 //! @SYMTestPriority Critical |
|
1005 //! @SYMTestActions OOM Test CMS data Construction, encoding and decoding |
|
1006 //! @SYMTestExpectedResults OOM Test pass |
|
1007 //! @SYMTestType UT |
|
1008 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tcms.ini TEST46 |
|
1009 |
|
1010 |
|
1011 |
|
1012 //! @SYMTestCaseID SEC-CMS-SignedData-0050 |
|
1013 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt Signature |
|
1014 //! @SYMPREQ PREQ968 |
|
1015 //! @SYMTestPriority High |
|
1016 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1017 //! @SYMTestExpectedResults validation fails |
|
1018 //! @SYMTestType UT |
|
1019 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST50 |
|
1020 |
|
1021 //! @SYMTestCaseID SEC-CMS-SignedData-0051 |
|
1022 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt Content data type oid. |
|
1023 //! @SYMPREQ PREQ968 |
|
1024 //! @SYMTestPriority High |
|
1025 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1026 //! @SYMTestExpectedResults KErrArgument |
|
1027 //! @SYMTestType UT |
|
1028 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST51 |
|
1029 |
|
1030 //! @SYMTestCaseID SEC-CMS-SignedData-0052 |
|
1031 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt Encapsulated Content data type oid. |
|
1032 //! @SYMPREQ PREQ968 |
|
1033 //! @SYMTestPriority High |
|
1034 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1035 //! @SYMTestExpectedResults KErrArgument |
|
1036 //! @SYMTestType UT |
|
1037 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST52 |
|
1038 |
|
1039 //! @SYMTestCaseID SEC-CMS-SignedData-0053 |
|
1040 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt data content. |
|
1041 //! @SYMPREQ PREQ968 |
|
1042 //! @SYMTestPriority High |
|
1043 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1044 //! @SYMTestExpectedResults KErrArgument |
|
1045 //! @SYMTestType UT |
|
1046 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST53 |
|
1047 |
|
1048 //! @SYMTestCaseID SEC-CMS-SignedData-0054 |
|
1049 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt signedata version. |
|
1050 //! @SYMPREQ PREQ968 |
|
1051 //! @SYMTestPriority High |
|
1052 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1053 //! @SYMTestExpectedResults KErrArgument |
|
1054 //! @SYMTestType UT |
|
1055 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST54 |
|
1056 |
|
1057 //! @SYMTestCaseID SEC-CMS-SignedData-0055 |
|
1058 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt signerinfo version. |
|
1059 //! @SYMPREQ PREQ968 |
|
1060 //! @SYMTestPriority High |
|
1061 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1062 //! @SYMTestExpectedResults KErrArgument |
|
1063 //! @SYMTestType UT |
|
1064 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST55 |
|
1065 |
|
1066 //! @SYMTestCaseID SEC-CMS-SignedData-0056 |
|
1067 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt excert set tag. |
|
1068 //! @SYMPREQ PREQ968 |
|
1069 //! @SYMTestPriority High |
|
1070 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1071 //! @SYMTestExpectedResults KErrArgument |
|
1072 //! @SYMTestType UT |
|
1073 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST56 |
|
1074 |
|
1075 //! @SYMTestCaseID SEC-CMS-SignedData-0057 |
|
1076 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt certificate tag. |
|
1077 //! @SYMPREQ PREQ968 |
|
1078 //! @SYMTestPriority High |
|
1079 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1080 //! @SYMTestExpectedResults KErrArgument |
|
1081 //! @SYMTestType UT |
|
1082 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST57 |
|
1083 |
|
1084 //! @SYMTestCaseID SEC-CMS-SignedData-0058 |
|
1085 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt algorithm OID. |
|
1086 //! @SYMPREQ PREQ968 |
|
1087 //! @SYMTestPriority High |
|
1088 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1089 //! @SYMTestExpectedResults KErrNotSupported |
|
1090 //! @SYMTestType UT |
|
1091 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST58 |
|
1092 |
|
1093 |
|
1094 |
|
1095 //! @SYMTestCaseID SEC-CMS-SignedData-0059 |
|
1096 //! @SYMTestCaseDesc Test encoding a CMS signed object with a corrupt attribute certificate |
|
1097 //! @SYMPREQ PREQ968 |
|
1098 //! @SYMTestPriority High |
|
1099 //! @SYMTestActions builds and Encodes a CMS signed data object |
|
1100 //! @SYMTestExpectedResults KErrArgument |
|
1101 //! @SYMTestType UT |
|
1102 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST59 |
|
1103 |
|
1104 //! @SYMTestCaseID SEC-CMS-SignedData-0060 |
|
1105 //! @SYMTestCaseDesc Test encoding a CMS signed object with a corrupt attribute certificate |
|
1106 //! @SYMPREQ PREQ968 |
|
1107 //! @SYMTestPriority High |
|
1108 //! @SYMTestActions builds and Encodes a CMS signed data object |
|
1109 //! @SYMTestExpectedResults KErrArgument |
|
1110 //! @SYMTestType UT |
|
1111 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST60 |
|
1112 |
|
1113 |
|
1114 //! @SYMTestCaseID SEC-CMS-SignedData-0061 |
|
1115 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt data block CMS in the signed data. |
|
1116 //! @SYMPREQ PREQ968 |
|
1117 //! @SYMTestPriority High |
|
1118 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1119 //! @SYMTestExpectedResults KErrArgument |
|
1120 //! @SYMTestType UT |
|
1121 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST61 |
|
1122 |
|
1123 |
|
1124 //! @SYMTestCaseID SEC-CMS-SignedData-0062 |
|
1125 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt length. |
|
1126 //! @SYMPREQ PREQ968 |
|
1127 //! @SYMTestPriority High |
|
1128 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1129 //! @SYMTestExpectedResults KErrArgument |
|
1130 //! @SYMTestType UT |
|
1131 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST62 |
|
1132 |
|
1133 //! @SYMTestCaseID SEC-CMS-SignedData-0063 |
|
1134 //! @SYMTestCaseDesc Test corrupt CMS data decoding. Corrupt Tag. |
|
1135 //! @SYMPREQ PREQ968 |
|
1136 //! @SYMTestPriority High |
|
1137 //! @SYMTestActions Test corrupt CMS data decoding. |
|
1138 //! @SYMTestExpectedResults KErrArgument |
|
1139 //! @SYMTestType UT |
|
1140 RUN_TEST_STEP 100 tpkcs7server CMSDataDecoding C:\tpkcs7\tcms.ini TEST63 |
|
1141 |
|
1142 |
|
1143 //! @SYMTestCaseID SEC-CMS-SignedData-0064 |
|
1144 //! @SYMTestCaseDesc Test corrupt CMS data decoding. Corrupt class. |
|
1145 //! @SYMPREQ PREQ968 |
|
1146 //! @SYMTestPriority High |
|
1147 //! @SYMTestActions Test corrupt CMS data decoding. |
|
1148 //! @SYMTestExpectedResults KErrArgument |
|
1149 //! @SYMTestType UT |
|
1150 RUN_TEST_STEP 100 tpkcs7server CMSDataDecoding C:\tpkcs7\tcms.ini TEST64 |
|
1151 |
|
1152 //! @SYMTestCaseID SEC-CMS-SignedData-0065 |
|
1153 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt explicit tag of encapsulated content info. |
|
1154 //! @SYMPREQ PREQ968 |
|
1155 //! @SYMTestPriority High |
|
1156 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1157 //! @SYMTestExpectedResults KErrArgument |
|
1158 //! @SYMTestType UT |
|
1159 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST65 |
|
1160 |
|
1161 //! @SYMTestCaseID SEC-CMS-SignedData-0066 |
|
1162 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt data content tag of encapsulated content info. |
|
1163 //! @SYMPREQ PREQ968 |
|
1164 //! @SYMTestPriority High |
|
1165 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1166 //! @SYMTestExpectedResults KErrArgument |
|
1167 //! @SYMTestType UT |
|
1168 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST66 |
|
1169 |
|
1170 //! @SYMTestCaseID SEC-CMS-SignedData-0067 |
|
1171 //! @SYMTestCaseDesc Test corrupt CMS signed data decoding. Corrupt explicit tag of content info. |
|
1172 //! @SYMPREQ PREQ968 |
|
1173 //! @SYMTestPriority High |
|
1174 //! @SYMTestActions Test corrupt CMS signed data decoding. |
|
1175 //! @SYMTestExpectedResults KErrArgument |
|
1176 //! @SYMTestType UT |
|
1177 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST67 |
|
1178 |
|
1179 |
|
1180 //! @SYMTestCaseID SEC-CMS-ContentInfo-0073 |
|
1181 //! @SYMTestCaseDesc Decode digested type in CMS content info |
|
1182 //! @SYMPREQ PREQ968 |
|
1183 //! @SYMTestPriority High |
|
1184 //! @SYMTestActions Test decoding of digested data type |
|
1185 //! @SYMTestExpectedResults KErrArgument |
|
1186 //! @SYMTestType UT |
|
1187 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tcms.ini TEST73 |
|
1188 |
|
1189 //! @SYMTestCaseID SEC-CMS-ContentInfo-0074 |
|
1190 //! @SYMTestCaseDesc Decode enveloped type in CMS content info |
|
1191 //! @SYMPREQ PREQ968 |
|
1192 //! @SYMTestPriority High |
|
1193 //! @SYMTestActions Test decoding of enveloped data type |
|
1194 //! @SYMTestExpectedResults KErrArgument |
|
1195 //! @SYMTestType UT |
|
1196 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tcms.ini TEST74 |
|
1197 |
|
1198 //! @SYMTestCaseID SEC-CMS-ContentInfo-0075 |
|
1199 //! @SYMTestCaseDesc Decode encrypted type in CMS content info |
|
1200 //! @SYMPREQ PREQ968 |
|
1201 //! @SYMTestPriority High |
|
1202 //! @SYMTestActions Test decoding of encrypted data type |
|
1203 //! @SYMTestExpectedResults KErrArgument |
|
1204 //! @SYMTestType UT |
|
1205 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tcms.ini TEST75 |
|
1206 |
|
1207 //! @SYMTestCaseID SEC-CMS-ContentInfo-0076 |
|
1208 //! @SYMTestCaseDesc Decode authenticated type in CMS content info |
|
1209 //! @SYMPREQ PREQ968 |
|
1210 //! @SYMTestPriority High |
|
1211 //! @SYMTestActions Test decoding of authenticated data type |
|
1212 //! @SYMTestExpectedResults KErrArgument |
|
1213 //! @SYMTestType UT |
|
1214 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tcms.ini TEST76 |
|
1215 |
|
1216 |
|
1217 |