os/security/cryptoservices/certificateandkeymgmt/tpkcs7/scripts/tinteg_cms.script
First public contribution.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 // Integration tests for CMS (Cryptographic message sintax)
19 LOAD_SUITE tpkcs7server
22 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0001
23 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0001
24 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
25 //! encoding, decoding and validation.
26 //! Number of signatures:1
27 //! The signing key: RSA key
28 //! Digest Algorithm: SHA1
29 //! Signer identifier: issuer and serial number
30 //! Signed data content: Dettached
31 //! Hash available: yes
32 //! Certificates provided by User: Yes
33 //! Certificates attached: Yes
35 //! @SYMTestPriority Critical
36 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
37 //! @SYMTestExpectedResults successfully validated
39 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0001
40 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0001
42 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0002
43 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0002
44 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
45 //! encoding, decoding and validation.
46 //! Number of signatures:1
47 //! The signing key: RSA key
48 //! Digest Algorithm: MD2
49 //! Signer identifier: suject Key ID extension
50 //! Signed data content: Dettached
51 //! Hash available: yes
52 //! Certificates provided by User: Yes
53 //! Certificates attached: Not
55 //! @SYMTestPriority Critical
56 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
57 //! @SYMTestExpectedResults successfully validated
59 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0002
60 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0002
62 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0003
63 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0003
64 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
65 //! encoding, decoding and validation.
66 //! Number of signatures:1
67 //! The signing key: RSA key
68 //! Digest Algorithm: MD5
69 //! Signer identifier: issuer and serial number
70 //! Signed data content: Dettached
71 //! Hash available: yes
72 //! Certificates provided by User: Yes
73 //! Certificates attached: Yes
75 //! @SYMTestPriority Critical
76 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
77 //! @SYMTestExpectedResults successfully validated
79 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0003
80 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0003
82 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0004
83 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0004
84 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
85 //! encoding, decoding and validation.
86 //! Number of signatures:1
87 //! The signing key: DSA key
88 //! Digest Algorithm: SHA1
89 //! Signer identifier: issuer and serial number
90 //! Signed data content: Dettached
91 //! Hash available: yes
92 //! Certificates provided by User: Yes
93 //! Certificates attached: Yes
95 //! @SYMTestPriority Critical
96 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
97 //! @SYMTestExpectedResults successfully validated
99 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0004
100 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0004
102 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0005
103 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0005
104 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
105 //! encoding, decoding and validation.
106 //! Number of signatures:1
107 //! The signing key: DSA key
108 //! Digest Algorithm: SHA1
109 //! Signer identifier: suject Key ID extension
110 //! Signed data content: Dettached
111 //! Hash available: yes
112 //! Certificates provided by User: Yes
113 //! Certificates attached: Not
115 //! @SYMTestPriority Critical
116 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
117 //! @SYMTestExpectedResults successfully validated
119 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0005
120 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0005
122 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0006
123 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0006
124 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
125 //! encoding, decoding and validation.
126 //! Number of signatures:1 (attribute certificate)
127 //! The signing key: DSA key
128 //! Digest Algorithm: SHA1
129 //! Signer identifier: issuer and serial number
130 //! Signed data content: Dettached
131 //! Hash available: yes
132 //! Certificates provided by User: Yes
133 //! Certificates attached: yet
135 //! @SYMTestPriority Critical
136 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
137 //! @SYMTestExpectedResults successfully validated
139 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0006
140 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0006
142 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0007
143 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0007
144 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
145 //! encoding, decoding and validation.
146 //! Number of signatures:1 (attribute certificate)
147 //! The signing key: DSA key
148 //! Digest Algorithm: SHA1
149 //! Signer identifier: issuer and serial number
150 //! Signed data content: Dettached
151 //! Hash available: yes
152 //! Certificates provided by User: Yes
153 //! Certificates attached: yet
155 //! @SYMTestPriority Critical
156 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
157 //! @SYMTestExpectedResults successfully validated
159 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0006
160 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0007
162 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0008
163 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0008
164 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
165 //! encoding, decoding and validation.
166 //! Number of signatures:1 (attribute certificate)
167 //! The signing key: RSA key
168 //! Digest Algorithm: SHA1
169 //! Signer identifier: issuer and serial number
170 //! Signed data content: Dettached
171 //! Hash available: yes
172 //! Certificates provided by User: Yes
173 //! Certificates attached: not
175 //! @SYMTestPriority Critical
176 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
177 //! @SYMTestExpectedResults successfully validated
179 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0007
180 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0008
182 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0009
183 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0009
184 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
185 //! encoding, decoding and validation.
186 //! Number of signatures:3
187 //! The signing key: All 3; DSA key
188 //! Digest Algorithm: SHA1
189 //! Signer identifier: suject Key ID extension
190 //! Signed data content: Dettached
191 //! Hash available: yes
192 //! Certificates provided by User: Yes
193 //! Certificates attached: yes
195 //! @SYMTestPriority Critical
196 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
197 //! @SYMTestExpectedResults successfully validated
199 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0008
200 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0009
202 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0010
203 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0010
204 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
205 //! encoding, decoding and validation.
206 //! Number of signatures:3
207 //! The signing key: All 3; RSA key
208 //! Digest Algorithm: MD2
209 //! Signer identifier: n1,n2 suject Key ID extension, n3 issuer and serial number
210 //! Signed data content: Dettached
211 //! Hash available: yes
212 //! Certificates provided by User: Yes
213 //! Certificates attached: yes
215 //! @SYMTestPriority Critical
216 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
217 //! @SYMTestExpectedResults successfully validated
219 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0009
220 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0010
222 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0011
223 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0011
224 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
225 //! encoding, decoding and validation.
226 //! Number of signatures:3
227 //! The signing key: n1 RSA, n2, n3 DSA
228 //! Digest Algorithm: n1,n2 RSA, n3 MD5
229 //! Signer identifier: n1 suject Key ID extension, n2,n3 issuer and serial number
230 //! Signed data content: Dettached
231 //! Hash available: yes
232 //! Certificates provided by User: Yes
233 //! Certificates attached: yes
235 //! @SYMTestPriority Critical
236 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
237 //! @SYMTestExpectedResults successfully validated
239 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0010
240 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0011
242 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0012
243 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0012
244 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
245 //! encoding, decoding and validation.
246 //! Number of signatures:3
247 //! The signing key: n1 RSA, n2, n3 DSA
248 //! Digest Algorithm: n1,n2 RSA, n3 MD5
249 //! Signer identifier: n1 suject Key ID extension, n2,n3 issuer and serial number
250 //! Signed data content: Dettached
251 //! Hash available: yes
252 //! Certificates provided by User: Yes
253 //! Certificates attached: not
255 //! @SYMTestPriority Critical
256 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
257 //! @SYMTestExpectedResults successfully validated
259 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0011
260 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0012
262 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0013
263 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0013
264 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
265 //! encoding, decoding and validation.
266 //! Number of signatures:3
267 //! The signing key: n1,n2 RSA, n3 DSA
268 //! Digest Algorithm: All SHA1
269 //! Signer identifier: All suject Key ID extension
270 //! Signed data content: Dettached
271 //! Hash available: yes
272 //! Certificates provided by User: Yes
273 //! Certificates attached: not
275 //! @SYMTestPriority Critical
276 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
277 //! @SYMTestExpectedResults successfully validated
279 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0012
280 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0013
282 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0014
283 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0014
284 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
285 //! encoding, decoding and validation.
286 //! Number of signatures:3
287 //! The signing key: all RSA
288 //! Digest Algorithm: All SHA1
289 //! Signer identifier: All issuer and serial number
290 //! Signed data content: Dettached
291 //! Hash available: yes
292 //! Certificates provided by User: Yes
293 //! Certificates attached: yes
295 //! @SYMTestPriority Critical
296 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
297 //! @SYMTestExpectedResults successfully validated
299 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0013
300 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0014
302 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0015
303 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0015
304 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data,
305 //! encoding, decoding and validation.
306 //! Number of signatures:3 (+1 attribute certificate)
307 //! The signing key: all DSA
308 //! Digest Algorithm: All SHA1
309 //! Signer identifier: All issuer and serial number
310 //! Signed data content: Dettached
311 //! Hash available: yes
312 //! Certificates provided by User: Yes
313 //! Certificates attached: yes
315 //! @SYMTestPriority Critical
316 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
317 //! @SYMTestExpectedResults successfully validated
319 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0014
320 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0015
322 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0016
323 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0016
324 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
325 //! encoding, decoding and validation.
326 //! Number of signatures:1
327 //! The signing key: RSA key
328 //! Digest Algorithm: SHA1
329 //! Signer identifier: issuer and serial number
330 //! Signed data content: Dettached
331 //! Hash available: yes
332 //! Certificates provided by User: Yes
333 //! Certificates attached: yes
335 //! @SYMTestPriority Critical
336 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
337 //! @SYMTestExpectedResults successfully validated
339 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0001
340 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0016
342 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0017
343 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0017
344 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
345 //! encoding, decoding and validation.
346 //! Number of signatures:1
347 //! The signing key: RSA key
348 //! Digest Algorithm: MD2
349 //! Signer identifier: suject Key ID extension
350 //! Signed data content: Dettached
351 //! Hash available: yes
352 //! Certificates provided by User: Yes
353 //! Certificates attached: not
355 //! @SYMTestPriority Critical
356 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
357 //! @SYMTestExpectedResults successfully validated
359 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0002
360 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0017
362 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0018
363 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0018
364 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
365 //! encoding, decoding and validation.
366 //! Number of signatures:1
367 //! The signing key: RSA key
368 //! Digest Algorithm: MD5
369 //! Signer identifier: issuer and serial number
370 //! Signed data content: Dettached
371 //! Hash available: yes
372 //! Certificates provided by User: Yes
373 //! Certificates attached: yes
375 //! @SYMTestPriority Critical
376 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
377 //! @SYMTestExpectedResults successfully validated
379 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0003
380 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0018
382 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0019
383 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0019
384 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
385 //! encoding, decoding and validation.
386 //! Number of signatures:1
387 //! The signing key: DSA key
388 //! Digest Algorithm: SHA1
389 //! Signer identifier: issuer and serial number
390 //! Signed data content: Dettached
391 //! Hash available: yes
392 //! Certificates provided by User: Yes
393 //! Certificates attached: yes
395 //! @SYMTestPriority Critical
396 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
397 //! @SYMTestExpectedResults successfully validated
399 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0004
400 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0019
402 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0020
403 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0020
404 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
405 //! encoding, decoding and validation.
406 //! Number of signatures:1
407 //! The signing key: DSA key
408 //! Digest Algorithm: SHA1
409 //! Signer identifier: suject Key ID extension
410 //! Signed data content: Dettached
411 //! Hash available: yes
412 //! Certificates provided by User: Yes
413 //! Certificates attached: not
415 //! @SYMTestPriority Critical
416 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
417 //! @SYMTestExpectedResults successfully validated
419 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0005
420 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0020
422 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0021
423 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0021
424 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
425 //! encoding, decoding and validation.
426 //! Number of signatures:1 (+ 1 signature attribute)
427 //! The signing key: DSA key
428 //! Digest Algorithm: SHA1
429 //! Signer identifier: issuer and serial number
430 //! Signed data content: Dettached
431 //! Hash available: yes
432 //! Certificates provided by User: Yes
433 //! Certificates attached: not
435 //! @SYMTestPriority Critical
436 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
437 //! @SYMTestExpectedResults successfully validated
439 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0006
440 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0021
442 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0022
443 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0022
444 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
445 //! encoding, decoding and validation.
446 //! Number of signatures: 3
447 //! The signing key: ALL RSA key
448 //! Digest Algorithm: All SHA1
449 //! Signer identifier: issuer and serial number
450 //! Signed data content: Dettached
451 //! Hash available: yes
452 //! Certificates provided by User: Yes
453 //! Certificates attached: not
455 //! @SYMTestPriority Critical
456 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
457 //! @SYMTestExpectedResults successfully validated
459 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0007
460 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0022
462 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0023
463 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0023
464 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
465 //! encoding, decoding and validation.
466 //! Number of signatures: 3
467 //! The signing key: All RSA
468 //! Digest Algorithm: n1 & n2 SHA1, n3 MD5
469 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number
470 //! Signed data content: Dettached
471 //! Hash available: yes
472 //! Certificates provided by User: Yes
473 //! Certificates attached: yes
475 //! @SYMTestPriority Critical
476 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
477 //! @SYMTestExpectedResults successfully validated
479 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0008
480 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0023
482 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0024
483 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0024
484 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
485 //! encoding, decoding and validation.
486 //! Number of signatures: 3
487 //! The signing key: n1 RSA, n2 & n3 DSA
488 //! Digest Algorithm: All SHA1
489 //! Signer identifier: n1 issuer and serial number, n2 & n3 suject Key ID extension
490 //! Signed data content: Dettached
491 //! Hash available: yes
492 //! Certificates provided by User: Yes
493 //! Certificates attached: yes
495 //! @SYMTestPriority Critical
496 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
497 //! @SYMTestExpectedResults successfully validated
499 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0009
500 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0024
502 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0025
503 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0025
504 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data,
505 //! encoding, decoding and validation.
506 //! Number of signatures: 3
507 //! The signing key: 3 DSA (+1 Attribute certificate)
508 //! Digest Algorithm: All SHA1
509 //! Signer identifier: All issuer and serial number
510 //! Signed data content: Dettached
511 //! Hash available: yes
512 //! Certificates provided by User: Yes
513 //! Certificates attached: not
515 //! @SYMTestPriority Critical
516 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
517 //! @SYMTestExpectedResults successfully validated
519 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0010
520 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0025
522 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0026
523 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0026
524 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash,
525 //! encoding, decoding and validation.
526 //! Number of signatures:1
527 //! The signing key: RSA key
528 //! Digest Algorithm: SHA1
529 //! Signer identifier: issuer and serial number
530 //! Signed data content: Dettached
531 //! Hash available: not
532 //! Certificates provided by User: Yes
533 //! Certificates attached: Yes
535 //! @SYMTestPriority Critical
536 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
537 //! @SYMTestExpectedResults successfully validated
539 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0001
540 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0026
542 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0027
543 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0027
544 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash,
545 //! encoding, decoding and validation.
546 //! Number of signatures:1
547 //! The signing key: DSA key
548 //! Digest Algorithm: SHA1
549 //! Signer identifier: issuer and serial number
550 //! Signed data content: Dettached
551 //! Hash available: not
552 //! Certificates provided by User: Yes
553 //! Certificates attached: Yes
555 //! @SYMTestPriority Critical
556 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
557 //! @SYMTestExpectedResults successfully validated
559 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0002
560 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0027
562 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0028
563 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0028
564 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash,
565 //! encoding, decoding and validation.
566 //! Number of signatures:1 (+1 attribute certificate)
567 //! The signing key: DSA key
568 //! Digest Algorithm: sha1
569 //! Signer identifier: suject Key ID extension
570 //! Signed data content: Dettached
571 //! Hash available: not
572 //! Certificates provided by User: Yes
573 //! Certificates attached: not
575 //! @SYMTestPriority Critical
576 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
577 //! @SYMTestExpectedResults successfully validated
579 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0003
580 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0028
582 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0029
583 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0029
584 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash,
585 //! encoding, decoding and validation.
586 //! Number of signatures:3
587 //! The signing key: All RSA
588 //! Digest Algorithm: All MD5
589 //! Signer identifier: n1 & n3 suject Key ID extension, n2 issuer and serial number
590 //! Signed data content: Dettached
591 //! Hash available: not
592 //! Certificates provided by User: Yes
593 //! Certificates attached: yes
595 //! @SYMTestPriority Critical
596 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
597 //! @SYMTestExpectedResults successfully validated
599 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0004
600 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0029
602 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0030
603 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0030
604 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash,
605 //! encoding, decoding and validation.
606 //! Number of signatures:3
607 //! The signing key: n1 & n2 RSA, n3 DSA
608 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
609 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number
610 //! Signed data content: Dettached
611 //! Hash available: not
612 //! Certificates provided by User: Yes
613 //! Certificates attached: not
615 //! @SYMTestPriority Critical
616 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
617 //! @SYMTestExpectedResults successfully validated
619 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0005
620 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0030
622 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0031
623 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0031
624 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash,
625 //! encoding, decoding and validation.
626 //! Number of signatures:3 (+ 1 attribute certificate)
627 //! The signing key: all DSA
628 //! Digest Algorithm: All SHA1
629 //! Signer identifier: All issuer and serial number
630 //! Signed data content: Dettached
631 //! Hash available: not
632 //! Certificates provided by User: Yes
633 //! Certificates attached: yes
635 //! @SYMTestPriority Critical
636 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
637 //! @SYMTestExpectedResults successfully validated
639 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0006
640 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0031
642 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0032
643 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0032
644 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash,
645 //! encoding, decoding and validation.
646 //! Number of signatures:3 (+ 1 attribute certificate)
647 //! The signing key: all DSA
648 //! Digest Algorithm: All SHA1
649 //! Signer identifier: All issuer and serial number
650 //! Signed data content: Dettached
651 //! Hash available: not
652 //! Certificates provided by User: Yes
653 //! Certificates attached: yes
655 //! @SYMTestPriority Critical
656 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
657 //! @SYMTestExpectedResults successfully validated
659 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0006
660 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0032
662 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0033
663 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0033
664 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
665 //! encoding, decoding and validation.
666 //! Number of signatures: 1
667 //! The signing key: RSA
668 //! Digest Algorithm: SHA1
669 //! Signer identifier: issuer and serial number
670 //! Signed data content: Attached
671 //! Hash available: not
672 //! Certificates provided by User: Yes
673 //! Certificates attached: yes
675 //! @SYMTestPriority Critical
676 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
677 //! @SYMTestExpectedResults successfully validated
679 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0001
680 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0033
682 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0034
683 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0034
684 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
685 //! encoding, decoding and validation.
686 //! Number of signatures: 1
687 //! The signing key: RSA
688 //! Digest Algorithm: MD2
689 //! Signer identifier: suject Key ID extension
690 //! Signed data content: Attached
691 //! Hash available: not
692 //! Certificates provided by User: Yes
693 //! Certificates attached: not
695 //! @SYMTestPriority Critical
696 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
697 //! @SYMTestExpectedResults successfully validated
699 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0002
700 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0034
702 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0035
703 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0035
704 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
705 //! encoding, decoding and validation.
706 //! Number of signatures: 1
707 //! The signing key: RSA
708 //! Digest Algorithm: MD5
709 //! Signer identifier: issuer and serial number
710 //! Signed data content: Attached
711 //! Hash available: not
712 //! Certificates provided by User: Yes
713 //! Certificates attached: yes
715 //! @SYMTestPriority Critical
716 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
717 //! @SYMTestExpectedResults successfully validated
719 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0003
720 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0035
722 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0036
723 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0036
724 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
725 //! encoding, decoding and validation.
726 //! Number of signatures: 1
727 //! The signing key: DSA
728 //! Digest Algorithm: SHA1
729 //! Signer identifier: issuer and serial number
730 //! Signed data content: Attached
731 //! Hash available: not
732 //! Certificates provided by User: Yes
733 //! Certificates attached: not
735 //! @SYMTestPriority Critical
736 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
737 //! @SYMTestExpectedResults successfully validated
739 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0004
740 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0036
742 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0037
743 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0037
744 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
745 //! encoding, decoding and validation.
746 //! Number of signatures: 1 (+a attribute certificate)
747 //! The signing key: DSA
748 //! Digest Algorithm: SHA1
749 //! Signer identifier: issuer and serial number
750 //! Signed data content: Attached
751 //! Hash available: not
752 //! Certificates provided by User: Yes
753 //! Certificates attached: not
755 //! @SYMTestPriority Critical
756 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
757 //! @SYMTestExpectedResults successfully validated
759 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0005
760 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0037
762 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0038
763 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0038
764 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
765 //! encoding, decoding and validation.
766 //! Number of signatures: 3
767 //! The signing key: RSA
768 //! Digest Algorithm: All MD2
769 //! Signer identifier: All suject Key ID extension.
770 //! Signed data content: Attached
771 //! Hash available: not
772 //! Certificates provided by User: Yes
773 //! Certificates attached: yes
775 //! @SYMTestPriority Critical
776 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
777 //! @SYMTestExpectedResults successfully validated
779 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0006
780 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0038
782 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0039
783 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0039
784 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
785 //! encoding, decoding and validation.
786 //! Number of signatures: 3
787 //! The signing key: RSA
788 //! Digest Algorithm: All MD5
789 //! Signer identifier: n1 & n3 suject Key ID extension, n2 issuer and serial number
790 //! Signed data content: Attached
791 //! Hash available: not
792 //! Certificates provided by User: Yes
793 //! Certificates attached: yes
795 //! @SYMTestPriority Critical
796 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
797 //! @SYMTestExpectedResults successfully validated
799 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0007
800 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0039
802 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0040
803 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0040
804 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
805 //! encoding, decoding and validation.
806 //! Number of signatures: 3
807 //! The signing key: n1 RSA, n2 & n3 DSA
808 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
809 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number
810 //! Signed data content: Attached
811 //! Hash available: not
812 //! Certificates provided by User: Yes
813 //! Certificates attached: not
815 //! @SYMTestPriority Critical
816 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
817 //! @SYMTestExpectedResults successfully validated
819 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0008
820 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0040
822 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0041
823 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0041
824 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
825 //! encoding, decoding and validation.
826 //! Number of signatures: 3 (+1 X509 certificate)
827 //! The signing key: All DSA
828 //! Digest Algorithm: All SHA1
829 //! Signer identifier: All issuer and serial number
830 //! Signed data content: Attached
831 //! Hash available: not
832 //! Certificates provided by User: Yes
833 //! Certificates attached: not
835 //! @SYMTestPriority Critical
836 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
837 //! @SYMTestExpectedResults successfully validated
839 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0009
840 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0041
842 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0042
843 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0042
844 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
845 //! encoding, decoding and validation.
846 //! Number of signatures: 1
847 //! The signing key: RSA
848 //! Digest Algorithm: SHA1
849 //! Signer identifier: issuer and serial number
850 //! Signed data content: Attached
851 //! Hash available: yes
852 //! Certificates provided by User: Yes
853 //! Certificates attached: yes
855 //! @SYMTestPriority Critical
856 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
857 //! @SYMTestExpectedResults successfully validated
859 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0001
860 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0042
862 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0043
863 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0043
864 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
865 //! encoding, decoding and validation.
866 //! Number of signatures: 1
867 //! The signing key: RSA
868 //! Digest Algorithm: MD5
869 //! Signer identifier: issuer and serial number
870 //! Signed data content: Attached
871 //! Hash available: yes
872 //! Certificates provided by User: Yes
873 //! Certificates attached: yes
875 //! @SYMTestPriority Critical
876 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
877 //! @SYMTestExpectedResults successfully validated
879 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0002
880 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0043
882 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0044
883 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0044
884 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
885 //! encoding, decoding and validation.
886 //! Number of signatures: 1
887 //! The signing key: DSA
888 //! Digest Algorithm: SHA1
889 //! Signer identifier: suject Key ID extension
890 //! Signed data content: Attached
891 //! Hash available: yes
892 //! Certificates provided by User: not
893 //! Certificates attached: not
895 //! @SYMTestPriority Critical
896 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
897 //! @SYMTestExpectedResults successfully validated
899 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0003
900 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0044
902 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0045
903 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0045
904 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
905 //! encoding, decoding and validation.
906 //! Number of signatures: 3
907 //! The signing key: All 3 RSA
908 //! Digest Algorithm: All 3 SHA1
909 //! Signer identifier: All issuer and serial number
910 //! Signed data content: Attached
911 //! Hash available: yes
912 //! Certificates provided by User: not
913 //! Certificates attached: not
915 //! @SYMTestPriority Critical
916 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
917 //! @SYMTestExpectedResults successfully validated
919 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0004
920 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0045
922 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0046
923 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0046
924 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
925 //! encoding, decoding and validation.
926 //! Number of signatures: 3 (+1 attribute certificate)
927 //! The signing key: All 3 RSA
928 //! Digest Algorithm: n1 SHA1, n2 MD2, n3 MD5
929 //! Signer identifier: All issuer and serial number
930 //! Signed data content: Attached
931 //! Hash available: yes
932 //! Certificates provided by User: not
933 //! Certificates attached: not
935 //! @SYMTestPriority Critical
936 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
937 //! @SYMTestExpectedResults successfully validated
939 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0005
940 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0046
942 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0047
943 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0047
944 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
945 //! encoding, decoding and validation.
946 //! Number of signatures: 3
947 //! The signing key: All 3 RSA
948 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
949 //! Signer identifier: All issuer and serial number
950 //! Signed data content: Attached
951 //! Hash available: yes
952 //! Certificates provided by User: yes
953 //! Certificates attached: yes
955 //! @SYMTestPriority Critical
956 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation.
957 //! @SYMTestExpectedResults successfully validated
959 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0006
960 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0047
962 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0001
963 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0001
964 //! @SYMTestCaseDesc Test to ensure that CCmsContentInfo can deal with small amount of unsigned data.
966 //! @SYMTestPriority Critical
967 //! @SYMTestActions Call CCmsContentInfo providing only 4 bytes of data for the aContentData content value.
968 //! @SYMTestExpectedResults Object is constructed without error, and is equal to expected result
970 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-UNSIGNED-0001
971 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0001
973 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0002
974 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0002
975 //! @SYMTestCaseDesc Test to ensure that CCmsContentInfo can deal with small amount of unsigned data.
977 //! @SYMTestPriority Critical
978 //! @SYMTestActions Call CCmsContentInfo providing only 500 Kbytes of data for the aContentData content value.
979 //! @SYMTestExpectedResults Object is constructed without error, and is equal to expected result
981 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-UNSIGNED-0002
982 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0002
984 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0001
985 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0001
986 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory
987 //! conditions gracefully
988 //! Number of signatures: 1
989 //! The signing key: RSA
990 //! Digest Algorithm: MD2
991 //! Signer identifier: suject Key ID extension
992 //! Signed data content: Detached
993 //! Certificates provided by User: not
994 //! Certificates attached: not
995 //! Construction method: Single Step
997 //! @SYMTestPriority Critical
998 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions.
999 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created
1000 //! @SYMTestType CIT
1001 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0001
1002 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0001
1004 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0002
1005 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0002
1006 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory
1007 //! conditions gracefully
1008 //! Number of signatures: 3
1009 //! The signing key: RSA
1010 //! Digest Algorithm: n1 & n2 SHA1, n3 MD5
1011 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number
1012 //! Signed data content: Detached
1013 //! Certificates provided by User: not
1014 //! Certificates attached: not
1015 //! Construction method: two Steps
1016 //! @SYMPREQ PREQ968
1017 //! @SYMTestPriority Critical
1018 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions.
1019 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created
1020 //! @SYMTestType CIT
1021 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0002
1022 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0002
1024 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0003
1025 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0003
1026 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory
1027 //! conditions gracefully
1028 //! Number of signatures: 3
1029 //! The signing key: n1 & n2 RSA, n3 DSA
1030 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
1031 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number
1032 //! Signed data content: Detached
1033 //! Certificates provided by User: not
1034 //! Certificates attached: not
1035 //! Construction method: two Steps & no hash provided
1036 //! @SYMPREQ PREQ968
1037 //! @SYMTestPriority Critical
1038 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions.
1039 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created
1040 //! @SYMTestType CIT
1041 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0003
1042 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0003
1044 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0004
1045 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0004
1046 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory
1047 //! conditions gracefully
1048 //! Number of signatures: 3
1049 //! The signing key: All RSA
1050 //! Digest Algorithm: All MD2
1051 //! Signer identifier: All suject Key ID extension
1052 //! Signed data content: Attached
1053 //! Certificates provided by User: yes
1054 //! Certificates attached: yes
1055 //! Construction method: two Steps & no hash provided
1056 //! @SYMPREQ PREQ968
1057 //! @SYMTestPriority Critical
1058 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions.
1059 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created
1060 //! @SYMTestType CIT
1061 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0004
1062 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0004
1064 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0005
1065 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0005
1066 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory
1067 //! conditions gracefully
1068 //! Number of signatures: 3
1069 //! The signing key: All RSA
1070 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
1071 //! Signer identifier: All issuer and serial number
1072 //! Signed data content: Attached
1073 //! Certificates provided by User: yes
1074 //! Certificates attached: yes
1075 //! Construction method: two Steps
1076 //! @SYMPREQ PREQ968
1077 //! @SYMTestPriority Critical
1078 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions.
1079 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created
1080 //! @SYMTestType CIT
1081 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0005
1082 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0005
1084 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0048
1085 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0048
1086 //! @SYMTestCaseDesc To ensure that CCmsSignedObject returns the appropriate leave error code when the
1087 //! two stage constructor is used incorrectly; data and hash are null.
1089 //! @SYMPREQ PREQ968
1090 //! @SYMTestPriority Critical
1091 //! @SYMTestActions 1. A.- Call the constructor:
1092 //! CCmsSignedObject* NewL(TCmsContentInfoType aType, TBool aIsDetached,
1093 //! const TDesC8& aContentData) providing a NULL for the aContentData value.
1094 //! 2. Call SignL method with a NULL hash value.
1095 //! @SYMTestExpectedResults KErrArgument returned
1096 //! @SYMTestType CIT
1097 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0001
1098 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0048
1100 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0049
1101 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0049
1102 //! @SYMTestCaseDesc To ensure that CCmsSignedObject returns the appropriate leave error code when the
1103 //! single stage constructor for detached data is used incorrectly; hash is null. .
1104 //! @SYMPREQ PREQ968
1105 //! @SYMTestPriority Critical
1106 //! @SYMTestActions CCmsSignedObject* NewLC(TCmsContentInfoType aType, const TDesC8& aHashValue,
1107 //! TAlgorithmId aDigestAlgorithm, const CRSAPrivateKey& aKey, const CX509Certificate&
1108 //! aCert, TBool aAddCertificate) providing a NULL for the aHashValue value.
1109 //! @SYMTestExpectedResults KErrArgument returned
1110 //! @SYMTestType CIT
1111 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0002
1112 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0049
1114 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0050
1115 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0050
1116 //! @SYMTestCaseDesc To ensure that CCmsSignedObject will reject any raw non supported content type with
1117 //! the appropriate leave error, the type to test for this case
1118 //! is unsupported attribute certificate tag value.
1119 //! @SYMPREQ PREQ968
1120 //! @SYMTestPriority Critical
1121 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the attribute certificate
1122 //! tag has a value of 2. No
1123 //! @SYMTestExpectedResults KErrArgument returned
1124 //! @SYMTestType CIT
1125 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0003
1126 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0050
1128 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0001
1129 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0001
1130 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: Data.
1131 //! @SYMPREQ PREQ968
1132 //! @SYMTestPriority Critical
1133 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data
1134 //! is raw is of type data (plain)
1137 //! @SYMTestExpectedResults type data returned
1138 //! @SYMTestType CIT
1139 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0001
1140 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0001
1142 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0002
1143 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0002
1144 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: Enveloped.
1145 //! @SYMPREQ PREQ968
1146 //! @SYMTestPriority Critical
1147 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data
1148 //! is raw is of type Enveloped data
1151 //! @SYMTestExpectedResults type Enveloped data
1152 //! @SYMTestType CIT
1153 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0002
1154 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0002
1156 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0003
1157 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0003
1158 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: digested.
1159 //! @SYMPREQ PREQ968
1160 //! @SYMTestPriority Critical
1161 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data
1162 //! is raw is of type digested data
1165 //! @SYMTestExpectedResults digested data
1166 //! @SYMTestType CIT
1167 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0003
1168 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0003
1170 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0004
1171 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0004
1172 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: Encrypted.
1173 //! @SYMPREQ PREQ968
1174 //! @SYMTestPriority Critical
1175 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data
1176 //! is raw is of type encrypted
1179 //! @SYMTestExpectedResults type encrypted returned
1180 //! @SYMTestType CIT
1181 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0004
1182 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0004
1184 START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0005
1185 //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0005
1186 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: signed and enveloped.
1187 //! @SYMPREQ PREQ968
1188 //! @SYMTestPriority Critical
1189 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data
1190 //! is raw is of type signed and enveloped
1193 //! @SYMTestExpectedResults type signed and enveloped returned
1194 //! @SYMTestType CIT
1195 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0005
1196 END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0005