|
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 // tinteg_cms.script |
|
17 // Integration tests for CMS (Cryptographic message sintax) |
|
18 |
|
19 LOAD_SUITE tpkcs7server |
|
20 |
|
21 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0001 |
|
22 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
23 //! encoding, decoding and validation. |
|
24 //! Number of signatures:1 |
|
25 //! The signing key: RSA key |
|
26 //! Digest Algorithm: SHA1 |
|
27 //! Signer identifier: issuer and serial number |
|
28 //! Signed data content: Dettached |
|
29 //! Hash available: yes |
|
30 //! Certificates provided by User: Yes |
|
31 //! Certificates attached: Yes |
|
32 //! @SYMPREQ PREQ968 |
|
33 //! @SYMTestPriority Critical |
|
34 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
35 //! @SYMTestExpectedResults successfully validated |
|
36 //! @SYMTestType CIT |
|
37 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0001 |
|
38 |
|
39 |
|
40 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0002 |
|
41 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
42 //! encoding, decoding and validation. |
|
43 //! Number of signatures:1 |
|
44 //! The signing key: RSA key |
|
45 //! Digest Algorithm: MD2 |
|
46 //! Signer identifier: suject Key ID extension |
|
47 //! Signed data content: Dettached |
|
48 //! Hash available: yes |
|
49 //! Certificates provided by User: Yes |
|
50 //! Certificates attached: Not |
|
51 //! @SYMPREQ PREQ968 |
|
52 //! @SYMTestPriority Critical |
|
53 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
54 //! @SYMTestExpectedResults successfully validated |
|
55 //! @SYMTestType CIT |
|
56 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0002 |
|
57 |
|
58 |
|
59 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0003 |
|
60 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
61 //! encoding, decoding and validation. |
|
62 //! Number of signatures:1 |
|
63 //! The signing key: RSA key |
|
64 //! Digest Algorithm: MD5 |
|
65 //! Signer identifier: issuer and serial number |
|
66 //! Signed data content: Dettached |
|
67 //! Hash available: yes |
|
68 //! Certificates provided by User: Yes |
|
69 //! Certificates attached: Yes |
|
70 //! @SYMPREQ PREQ968 |
|
71 //! @SYMTestPriority Critical |
|
72 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
73 //! @SYMTestExpectedResults successfully validated |
|
74 //! @SYMTestType CIT |
|
75 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0003 |
|
76 |
|
77 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0004 |
|
78 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
79 //! encoding, decoding and validation. |
|
80 //! Number of signatures:1 |
|
81 //! The signing key: DSA key |
|
82 //! Digest Algorithm: SHA1 |
|
83 //! Signer identifier: issuer and serial number |
|
84 //! Signed data content: Dettached |
|
85 //! Hash available: yes |
|
86 //! Certificates provided by User: Yes |
|
87 //! Certificates attached: Yes |
|
88 //! @SYMPREQ PREQ968 |
|
89 //! @SYMTestPriority Critical |
|
90 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
91 //! @SYMTestExpectedResults successfully validated |
|
92 //! @SYMTestType CIT |
|
93 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0004 |
|
94 |
|
95 |
|
96 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0005 |
|
97 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
98 //! encoding, decoding and validation. |
|
99 //! Number of signatures:1 |
|
100 //! The signing key: DSA key |
|
101 //! Digest Algorithm: SHA1 |
|
102 //! Signer identifier: suject Key ID extension |
|
103 //! Signed data content: Dettached |
|
104 //! Hash available: yes |
|
105 //! Certificates provided by User: Yes |
|
106 //! Certificates attached: Not |
|
107 //! @SYMPREQ PREQ968 |
|
108 //! @SYMTestPriority Critical |
|
109 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
110 //! @SYMTestExpectedResults successfully validated |
|
111 //! @SYMTestType CIT |
|
112 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0005 |
|
113 |
|
114 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0006 |
|
115 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
116 //! encoding, decoding and validation. |
|
117 //! Number of signatures:1 (attribute certificate) |
|
118 //! The signing key: DSA key |
|
119 //! Digest Algorithm: SHA1 |
|
120 //! Signer identifier: issuer and serial number |
|
121 //! Signed data content: Dettached |
|
122 //! Hash available: yes |
|
123 //! Certificates provided by User: Yes |
|
124 //! Certificates attached: yet |
|
125 //! @SYMPREQ PREQ968 |
|
126 //! @SYMTestPriority Critical |
|
127 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
128 //! @SYMTestExpectedResults successfully validated |
|
129 //! @SYMTestType CIT |
|
130 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0006 |
|
131 |
|
132 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0006 |
|
133 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
134 //! encoding, decoding and validation. |
|
135 //! Number of signatures:1 (attribute certificate) |
|
136 //! The signing key: DSA key |
|
137 //! Digest Algorithm: SHA1 |
|
138 //! Signer identifier: issuer and serial number |
|
139 //! Signed data content: Dettached |
|
140 //! Hash available: yes |
|
141 //! Certificates provided by User: Yes |
|
142 //! Certificates attached: yet |
|
143 //! @SYMPREQ PREQ968 |
|
144 //! @SYMTestPriority Critical |
|
145 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
146 //! @SYMTestExpectedResults successfully validated |
|
147 //! @SYMTestType CIT |
|
148 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0006 |
|
149 |
|
150 |
|
151 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0007 |
|
152 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
153 //! encoding, decoding and validation. |
|
154 //! Number of signatures:1 (attribute certificate) |
|
155 //! The signing key: RSA key |
|
156 //! Digest Algorithm: SHA1 |
|
157 //! Signer identifier: issuer and serial number |
|
158 //! Signed data content: Dettached |
|
159 //! Hash available: yes |
|
160 //! Certificates provided by User: Yes |
|
161 //! Certificates attached: not |
|
162 //! @SYMPREQ PREQ968 |
|
163 //! @SYMTestPriority Critical |
|
164 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
165 //! @SYMTestExpectedResults successfully validated |
|
166 //! @SYMTestType CIT |
|
167 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0007 |
|
168 |
|
169 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0008 |
|
170 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
171 //! encoding, decoding and validation. |
|
172 //! Number of signatures:3 |
|
173 //! The signing key: All 3; DSA key |
|
174 //! Digest Algorithm: SHA1 |
|
175 //! Signer identifier: suject Key ID extension |
|
176 //! Signed data content: Dettached |
|
177 //! Hash available: yes |
|
178 //! Certificates provided by User: Yes |
|
179 //! Certificates attached: yes |
|
180 //! @SYMPREQ PREQ968 |
|
181 //! @SYMTestPriority Critical |
|
182 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
183 //! @SYMTestExpectedResults successfully validated |
|
184 //! @SYMTestType CIT |
|
185 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0008 |
|
186 |
|
187 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0009 |
|
188 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
189 //! encoding, decoding and validation. |
|
190 //! Number of signatures:3 |
|
191 //! The signing key: All 3; RSA key |
|
192 //! Digest Algorithm: MD2 |
|
193 //! Signer identifier: n1,n2 suject Key ID extension, n3 issuer and serial number |
|
194 //! Signed data content: Dettached |
|
195 //! Hash available: yes |
|
196 //! Certificates provided by User: Yes |
|
197 //! Certificates attached: yes |
|
198 //! @SYMPREQ PREQ968 |
|
199 //! @SYMTestPriority Critical |
|
200 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
201 //! @SYMTestExpectedResults successfully validated |
|
202 //! @SYMTestType CIT |
|
203 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0009 |
|
204 |
|
205 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0010 |
|
206 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
207 //! encoding, decoding and validation. |
|
208 //! Number of signatures:3 |
|
209 //! The signing key: n1 RSA, n2, n3 DSA |
|
210 //! Digest Algorithm: n1,n2 RSA, n3 MD5 |
|
211 //! Signer identifier: n1 suject Key ID extension, n2,n3 issuer and serial number |
|
212 //! Signed data content: Dettached |
|
213 //! Hash available: yes |
|
214 //! Certificates provided by User: Yes |
|
215 //! Certificates attached: yes |
|
216 //! @SYMPREQ PREQ968 |
|
217 //! @SYMTestPriority Critical |
|
218 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
219 //! @SYMTestExpectedResults successfully validated |
|
220 //! @SYMTestType CIT |
|
221 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0010 |
|
222 |
|
223 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-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: not |
|
234 //! @SYMPREQ PREQ968 |
|
235 //! @SYMTestPriority Critical |
|
236 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
237 //! @SYMTestExpectedResults successfully validated |
|
238 //! @SYMTestType CIT |
|
239 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0011 |
|
240 |
|
241 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0012 |
|
242 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
243 //! encoding, decoding and validation. |
|
244 //! Number of signatures:3 |
|
245 //! The signing key: n1,n2 RSA, n3 DSA |
|
246 //! Digest Algorithm: All SHA1 |
|
247 //! Signer identifier: All suject Key ID extension |
|
248 //! Signed data content: Dettached |
|
249 //! Hash available: yes |
|
250 //! Certificates provided by User: Yes |
|
251 //! Certificates attached: not |
|
252 //! @SYMPREQ PREQ968 |
|
253 //! @SYMTestPriority Critical |
|
254 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
255 //! @SYMTestExpectedResults successfully validated |
|
256 //! @SYMTestType CIT |
|
257 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0012 |
|
258 |
|
259 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0013 |
|
260 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
261 //! encoding, decoding and validation. |
|
262 //! Number of signatures:3 |
|
263 //! The signing key: all RSA |
|
264 //! Digest Algorithm: All SHA1 |
|
265 //! Signer identifier: All issuer and serial number |
|
266 //! Signed data content: Dettached |
|
267 //! Hash available: yes |
|
268 //! Certificates provided by User: Yes |
|
269 //! Certificates attached: yes |
|
270 //! @SYMPREQ PREQ968 |
|
271 //! @SYMTestPriority Critical |
|
272 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
273 //! @SYMTestExpectedResults successfully validated |
|
274 //! @SYMTestType CIT |
|
275 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0013 |
|
276 |
|
277 |
|
278 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-SINGLESTEP-0014 |
|
279 //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, |
|
280 //! encoding, decoding and validation. |
|
281 //! Number of signatures:3 (+1 attribute certificate) |
|
282 //! The signing key: all DSA |
|
283 //! Digest Algorithm: All SHA1 |
|
284 //! Signer identifier: All issuer and serial number |
|
285 //! Signed data content: Dettached |
|
286 //! Hash available: yes |
|
287 //! Certificates provided by User: Yes |
|
288 //! Certificates attached: yes |
|
289 //! @SYMPREQ PREQ968 |
|
290 //! @SYMTestPriority Critical |
|
291 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
292 //! @SYMTestExpectedResults successfully validated |
|
293 //! @SYMTestType CIT |
|
294 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0014 |
|
295 |
|
296 |
|
297 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0001 |
|
298 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, |
|
299 //! encoding, decoding and validation. |
|
300 //! Number of signatures:1 |
|
301 //! The signing key: RSA key |
|
302 //! Digest Algorithm: SHA1 |
|
303 //! Signer identifier: issuer and serial number |
|
304 //! Signed data content: Dettached |
|
305 //! Hash available: yes |
|
306 //! Certificates provided by User: Yes |
|
307 //! Certificates attached: yes |
|
308 //! @SYMPREQ PREQ968 |
|
309 //! @SYMTestPriority Critical |
|
310 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
311 //! @SYMTestExpectedResults successfully validated |
|
312 //! @SYMTestType CIT |
|
313 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0001 |
|
314 |
|
315 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0002 |
|
316 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, |
|
317 //! encoding, decoding and validation. |
|
318 //! Number of signatures:1 |
|
319 //! The signing key: RSA key |
|
320 //! Digest Algorithm: MD2 |
|
321 //! Signer identifier: suject Key ID extension |
|
322 //! Signed data content: Dettached |
|
323 //! Hash available: yes |
|
324 //! Certificates provided by User: Yes |
|
325 //! Certificates attached: not |
|
326 //! @SYMPREQ PREQ968 |
|
327 //! @SYMTestPriority Critical |
|
328 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
329 //! @SYMTestExpectedResults successfully validated |
|
330 //! @SYMTestType CIT |
|
331 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0002 |
|
332 |
|
333 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0003 |
|
334 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, |
|
335 //! encoding, decoding and validation. |
|
336 //! Number of signatures:1 |
|
337 //! The signing key: RSA key |
|
338 //! Digest Algorithm: MD5 |
|
339 //! Signer identifier: issuer and serial number |
|
340 //! Signed data content: Dettached |
|
341 //! Hash available: yes |
|
342 //! Certificates provided by User: Yes |
|
343 //! Certificates attached: yes |
|
344 //! @SYMPREQ PREQ968 |
|
345 //! @SYMTestPriority Critical |
|
346 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
347 //! @SYMTestExpectedResults successfully validated |
|
348 //! @SYMTestType CIT |
|
349 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0003 |
|
350 |
|
351 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0004 |
|
352 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, |
|
353 //! encoding, decoding and validation. |
|
354 //! Number of signatures:1 |
|
355 //! The signing key: DSA key |
|
356 //! Digest Algorithm: SHA1 |
|
357 //! Signer identifier: issuer and serial number |
|
358 //! Signed data content: Dettached |
|
359 //! Hash available: yes |
|
360 //! Certificates provided by User: Yes |
|
361 //! Certificates attached: yes |
|
362 //! @SYMPREQ PREQ968 |
|
363 //! @SYMTestPriority Critical |
|
364 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
365 //! @SYMTestExpectedResults successfully validated |
|
366 //! @SYMTestType CIT |
|
367 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0004 |
|
368 |
|
369 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0005 |
|
370 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, |
|
371 //! encoding, decoding and validation. |
|
372 //! Number of signatures:1 |
|
373 //! The signing key: DSA key |
|
374 //! Digest Algorithm: SHA1 |
|
375 //! Signer identifier: suject Key ID extension |
|
376 //! Signed data content: Dettached |
|
377 //! Hash available: yes |
|
378 //! Certificates provided by User: Yes |
|
379 //! Certificates attached: not |
|
380 //! @SYMPREQ PREQ968 |
|
381 //! @SYMTestPriority Critical |
|
382 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
383 //! @SYMTestExpectedResults successfully validated |
|
384 //! @SYMTestType CIT |
|
385 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0005 |
|
386 |
|
387 |
|
388 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0006 |
|
389 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, |
|
390 //! encoding, decoding and validation. |
|
391 //! Number of signatures:1 (+ 1 signature attribute) |
|
392 //! The signing key: DSA key |
|
393 //! Digest Algorithm: SHA1 |
|
394 //! Signer identifier: issuer and serial number |
|
395 //! Signed data content: Dettached |
|
396 //! Hash available: yes |
|
397 //! Certificates provided by User: Yes |
|
398 //! Certificates attached: not |
|
399 //! @SYMPREQ PREQ968 |
|
400 //! @SYMTestPriority Critical |
|
401 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
402 //! @SYMTestExpectedResults successfully validated |
|
403 //! @SYMTestType CIT |
|
404 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0006 |
|
405 |
|
406 |
|
407 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0007 |
|
408 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, |
|
409 //! encoding, decoding and validation. |
|
410 //! Number of signatures: 3 |
|
411 //! The signing key: ALL RSA key |
|
412 //! Digest Algorithm: All SHA1 |
|
413 //! Signer identifier: issuer and serial number |
|
414 //! Signed data content: Dettached |
|
415 //! Hash available: yes |
|
416 //! Certificates provided by User: Yes |
|
417 //! Certificates attached: not |
|
418 //! @SYMPREQ PREQ968 |
|
419 //! @SYMTestPriority Critical |
|
420 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
421 //! @SYMTestExpectedResults successfully validated |
|
422 //! @SYMTestType CIT |
|
423 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0007 |
|
424 |
|
425 |
|
426 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0008 |
|
427 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, |
|
428 //! encoding, decoding and validation. |
|
429 //! Number of signatures: 3 |
|
430 //! The signing key: All RSA |
|
431 //! Digest Algorithm: n1 & n2 SHA1, n3 MD5 |
|
432 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number |
|
433 //! Signed data content: Dettached |
|
434 //! Hash available: yes |
|
435 //! Certificates provided by User: Yes |
|
436 //! Certificates attached: yes |
|
437 //! @SYMPREQ PREQ968 |
|
438 //! @SYMTestPriority Critical |
|
439 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
440 //! @SYMTestExpectedResults successfully validated |
|
441 //! @SYMTestType CIT |
|
442 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0008 |
|
443 |
|
444 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0009 |
|
445 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, |
|
446 //! encoding, decoding and validation. |
|
447 //! Number of signatures: 3 |
|
448 //! The signing key: n1 RSA, n2 & n3 DSA |
|
449 //! Digest Algorithm: All SHA1 |
|
450 //! Signer identifier: n1 issuer and serial number, n2 & n3 suject Key ID extension |
|
451 //! Signed data content: Dettached |
|
452 //! Hash available: yes |
|
453 //! Certificates provided by User: Yes |
|
454 //! Certificates attached: yes |
|
455 //! @SYMPREQ PREQ968 |
|
456 //! @SYMTestPriority Critical |
|
457 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
458 //! @SYMTestExpectedResults successfully validated |
|
459 //! @SYMTestType CIT |
|
460 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0009 |
|
461 |
|
462 |
|
463 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-0010 |
|
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: 3 DSA (+1 Attribute certificate) |
|
468 //! Digest Algorithm: All SHA1 |
|
469 //! Signer identifier: All issuer and serial number |
|
470 //! Signed data content: Dettached |
|
471 //! Hash available: yes |
|
472 //! Certificates provided by User: Yes |
|
473 //! Certificates attached: not |
|
474 //! @SYMPREQ PREQ968 |
|
475 //! @SYMTestPriority Critical |
|
476 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
477 //! @SYMTestExpectedResults successfully validated |
|
478 //! @SYMTestType CIT |
|
479 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0010 |
|
480 |
|
481 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-NH-0001 |
|
482 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, |
|
483 //! encoding, decoding and validation. |
|
484 //! Number of signatures:1 |
|
485 //! The signing key: RSA key |
|
486 //! Digest Algorithm: SHA1 |
|
487 //! Signer identifier: issuer and serial number |
|
488 //! Signed data content: Dettached |
|
489 //! Hash available: not |
|
490 //! Certificates provided by User: Yes |
|
491 //! Certificates attached: Yes |
|
492 //! @SYMPREQ PREQ968 |
|
493 //! @SYMTestPriority Critical |
|
494 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
495 //! @SYMTestExpectedResults successfully validated |
|
496 //! @SYMTestType CIT |
|
497 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0001 |
|
498 |
|
499 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-NH-0002 |
|
500 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, |
|
501 //! encoding, decoding and validation. |
|
502 //! Number of signatures:1 |
|
503 //! The signing key: DSA key |
|
504 //! Digest Algorithm: SHA1 |
|
505 //! Signer identifier: issuer and serial number |
|
506 //! Signed data content: Dettached |
|
507 //! Hash available: not |
|
508 //! Certificates provided by User: Yes |
|
509 //! Certificates attached: Yes |
|
510 //! @SYMPREQ PREQ968 |
|
511 //! @SYMTestPriority Critical |
|
512 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
513 //! @SYMTestExpectedResults successfully validated |
|
514 //! @SYMTestType CIT |
|
515 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0002 |
|
516 |
|
517 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-NH-0003 |
|
518 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, |
|
519 //! encoding, decoding and validation. |
|
520 //! Number of signatures:1 (+1 attribute certificate) |
|
521 //! The signing key: DSA key |
|
522 //! Digest Algorithm: sha1 |
|
523 //! Signer identifier: suject Key ID extension |
|
524 //! Signed data content: Dettached |
|
525 //! Hash available: not |
|
526 //! Certificates provided by User: Yes |
|
527 //! Certificates attached: not |
|
528 //! @SYMPREQ PREQ968 |
|
529 //! @SYMTestPriority Critical |
|
530 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
531 //! @SYMTestExpectedResults successfully validated |
|
532 //! @SYMTestType CIT |
|
533 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0003 |
|
534 |
|
535 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-NH-0004 |
|
536 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, |
|
537 //! encoding, decoding and validation. |
|
538 //! Number of signatures:3 |
|
539 //! The signing key: All RSA |
|
540 //! Digest Algorithm: All MD5 |
|
541 //! Signer identifier: n1 & n3 suject Key ID extension, n2 issuer and serial number |
|
542 //! Signed data content: Dettached |
|
543 //! Hash available: not |
|
544 //! Certificates provided by User: Yes |
|
545 //! Certificates attached: yes |
|
546 //! @SYMPREQ PREQ968 |
|
547 //! @SYMTestPriority Critical |
|
548 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
549 //! @SYMTestExpectedResults successfully validated |
|
550 //! @SYMTestType CIT |
|
551 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0004 |
|
552 |
|
553 |
|
554 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-NH-0005 |
|
555 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, |
|
556 //! encoding, decoding and validation. |
|
557 //! Number of signatures:3 |
|
558 //! The signing key: n1 & n2 RSA, n3 DSA |
|
559 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 |
|
560 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number |
|
561 //! Signed data content: Dettached |
|
562 //! Hash available: not |
|
563 //! Certificates provided by User: Yes |
|
564 //! Certificates attached: not |
|
565 //! @SYMPREQ PREQ968 |
|
566 //! @SYMTestPriority Critical |
|
567 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
568 //! @SYMTestExpectedResults successfully validated |
|
569 //! @SYMTestType CIT |
|
570 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0005 |
|
571 |
|
572 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-NH-0006 |
|
573 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, |
|
574 //! encoding, decoding and validation. |
|
575 //! Number of signatures:3 (+ 1 attribute certificate) |
|
576 //! The signing key: all DSA |
|
577 //! Digest Algorithm: All SHA1 |
|
578 //! Signer identifier: All issuer and serial number |
|
579 //! Signed data content: Dettached |
|
580 //! Hash available: not |
|
581 //! Certificates provided by User: Yes |
|
582 //! Certificates attached: yes |
|
583 //! @SYMPREQ PREQ968 |
|
584 //! @SYMTestPriority Critical |
|
585 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
586 //! @SYMTestExpectedResults successfully validated |
|
587 //! @SYMTestType CIT |
|
588 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0006 |
|
589 |
|
590 |
|
591 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-DETACHED-TWOSTEP-NH-0006 |
|
592 //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, |
|
593 //! encoding, decoding and validation. |
|
594 //! Number of signatures:3 (+ 1 attribute certificate) |
|
595 //! The signing key: all DSA |
|
596 //! Digest Algorithm: All SHA1 |
|
597 //! Signer identifier: All issuer and serial number |
|
598 //! Signed data content: Dettached |
|
599 //! Hash available: not |
|
600 //! Certificates provided by User: Yes |
|
601 //! Certificates attached: yes |
|
602 //! @SYMPREQ PREQ968 |
|
603 //! @SYMTestPriority Critical |
|
604 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
605 //! @SYMTestExpectedResults successfully validated |
|
606 //! @SYMTestType CIT |
|
607 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0006 |
|
608 |
|
609 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-NH-0001 |
|
610 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, |
|
611 //! encoding, decoding and validation. |
|
612 //! Number of signatures: 1 |
|
613 //! The signing key: RSA |
|
614 //! Digest Algorithm: SHA1 |
|
615 //! Signer identifier: issuer and serial number |
|
616 //! Signed data content: Attached |
|
617 //! Hash available: not |
|
618 //! Certificates provided by User: Yes |
|
619 //! Certificates attached: yes |
|
620 //! @SYMPREQ PREQ968 |
|
621 //! @SYMTestPriority Critical |
|
622 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
623 //! @SYMTestExpectedResults successfully validated |
|
624 //! @SYMTestType CIT |
|
625 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0001 |
|
626 |
|
627 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-NH-0002 |
|
628 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, |
|
629 //! encoding, decoding and validation. |
|
630 //! Number of signatures: 1 |
|
631 //! The signing key: RSA |
|
632 //! Digest Algorithm: MD2 |
|
633 //! Signer identifier: suject Key ID extension |
|
634 //! Signed data content: Attached |
|
635 //! Hash available: not |
|
636 //! Certificates provided by User: Yes |
|
637 //! Certificates attached: not |
|
638 //! @SYMPREQ PREQ968 |
|
639 //! @SYMTestPriority Critical |
|
640 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
641 //! @SYMTestExpectedResults successfully validated |
|
642 //! @SYMTestType CIT |
|
643 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0002 |
|
644 |
|
645 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-NH-0003 |
|
646 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, |
|
647 //! encoding, decoding and validation. |
|
648 //! Number of signatures: 1 |
|
649 //! The signing key: RSA |
|
650 //! Digest Algorithm: MD5 |
|
651 //! Signer identifier: issuer and serial number |
|
652 //! Signed data content: Attached |
|
653 //! Hash available: not |
|
654 //! Certificates provided by User: Yes |
|
655 //! Certificates attached: yes |
|
656 //! @SYMPREQ PREQ968 |
|
657 //! @SYMTestPriority Critical |
|
658 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
659 //! @SYMTestExpectedResults successfully validated |
|
660 //! @SYMTestType CIT |
|
661 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0003 |
|
662 |
|
663 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-NH-0004 |
|
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: DSA |
|
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: not |
|
674 //! @SYMPREQ PREQ968 |
|
675 //! @SYMTestPriority Critical |
|
676 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
677 //! @SYMTestExpectedResults successfully validated |
|
678 //! @SYMTestType CIT |
|
679 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0004 |
|
680 |
|
681 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-NH-0005 |
|
682 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, |
|
683 //! encoding, decoding and validation. |
|
684 //! Number of signatures: 1 (+a attribute certificate) |
|
685 //! The signing key: DSA |
|
686 //! Digest Algorithm: SHA1 |
|
687 //! Signer identifier: issuer and serial number |
|
688 //! Signed data content: Attached |
|
689 //! Hash available: not |
|
690 //! Certificates provided by User: Yes |
|
691 //! Certificates attached: not |
|
692 //! @SYMPREQ PREQ968 |
|
693 //! @SYMTestPriority Critical |
|
694 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
695 //! @SYMTestExpectedResults successfully validated |
|
696 //! @SYMTestType CIT |
|
697 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0005 |
|
698 |
|
699 |
|
700 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-NH-0006 |
|
701 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, |
|
702 //! encoding, decoding and validation. |
|
703 //! Number of signatures: 3 |
|
704 //! The signing key: RSA |
|
705 //! Digest Algorithm: All MD2 |
|
706 //! Signer identifier: All suject Key ID extension. |
|
707 //! Signed data content: Attached |
|
708 //! Hash available: not |
|
709 //! Certificates provided by User: Yes |
|
710 //! Certificates attached: yes |
|
711 //! @SYMPREQ PREQ968 |
|
712 //! @SYMTestPriority Critical |
|
713 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
714 //! @SYMTestExpectedResults successfully validated |
|
715 //! @SYMTestType CIT |
|
716 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0006 |
|
717 |
|
718 |
|
719 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-NH-0007 |
|
720 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, |
|
721 //! encoding, decoding and validation. |
|
722 //! Number of signatures: 3 |
|
723 //! The signing key: RSA |
|
724 //! Digest Algorithm: All MD5 |
|
725 //! Signer identifier: n1 & n3 suject Key ID extension, n2 issuer and serial number |
|
726 //! Signed data content: Attached |
|
727 //! Hash available: not |
|
728 //! Certificates provided by User: Yes |
|
729 //! Certificates attached: yes |
|
730 //! @SYMPREQ PREQ968 |
|
731 //! @SYMTestPriority Critical |
|
732 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
733 //! @SYMTestExpectedResults successfully validated |
|
734 //! @SYMTestType CIT |
|
735 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0007 |
|
736 |
|
737 |
|
738 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-NH-0008 |
|
739 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, |
|
740 //! encoding, decoding and validation. |
|
741 //! Number of signatures: 3 |
|
742 //! The signing key: n1 RSA, n2 & n3 DSA |
|
743 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 |
|
744 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number |
|
745 //! Signed data content: Attached |
|
746 //! Hash available: not |
|
747 //! Certificates provided by User: Yes |
|
748 //! Certificates attached: not |
|
749 //! @SYMPREQ PREQ968 |
|
750 //! @SYMTestPriority Critical |
|
751 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
752 //! @SYMTestExpectedResults successfully validated |
|
753 //! @SYMTestType CIT |
|
754 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0008 |
|
755 |
|
756 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-NH-0009 |
|
757 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, |
|
758 //! encoding, decoding and validation. |
|
759 //! Number of signatures: 3 (+1 X509 certificate) |
|
760 //! The signing key: All DSA |
|
761 //! Digest Algorithm: All SHA1 |
|
762 //! Signer identifier: All issuer and serial number |
|
763 //! Signed data content: Attached |
|
764 //! Hash available: not |
|
765 //! Certificates provided by User: Yes |
|
766 //! Certificates attached: not |
|
767 //! @SYMPREQ PREQ968 |
|
768 //! @SYMTestPriority Critical |
|
769 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
770 //! @SYMTestExpectedResults successfully validated |
|
771 //! @SYMTestType CIT |
|
772 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0009 |
|
773 |
|
774 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-0001 |
|
775 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), |
|
776 //! encoding, decoding and validation. |
|
777 //! Number of signatures: 1 |
|
778 //! The signing key: RSA |
|
779 //! Digest Algorithm: SHA1 |
|
780 //! Signer identifier: issuer and serial number |
|
781 //! Signed data content: Attached |
|
782 //! Hash available: yes |
|
783 //! Certificates provided by User: Yes |
|
784 //! Certificates attached: yes |
|
785 //! @SYMPREQ PREQ968 |
|
786 //! @SYMTestPriority Critical |
|
787 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
788 //! @SYMTestExpectedResults successfully validated |
|
789 //! @SYMTestType CIT |
|
790 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0001 |
|
791 |
|
792 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-0002 |
|
793 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), |
|
794 //! encoding, decoding and validation. |
|
795 //! Number of signatures: 1 |
|
796 //! The signing key: RSA |
|
797 //! Digest Algorithm: MD5 |
|
798 //! Signer identifier: issuer and serial number |
|
799 //! Signed data content: Attached |
|
800 //! Hash available: yes |
|
801 //! Certificates provided by User: Yes |
|
802 //! Certificates attached: yes |
|
803 //! @SYMPREQ PREQ968 |
|
804 //! @SYMTestPriority Critical |
|
805 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
806 //! @SYMTestExpectedResults successfully validated |
|
807 //! @SYMTestType CIT |
|
808 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0002 |
|
809 |
|
810 |
|
811 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-0003 |
|
812 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), |
|
813 //! encoding, decoding and validation. |
|
814 //! Number of signatures: 1 |
|
815 //! The signing key: DSA |
|
816 //! Digest Algorithm: SHA1 |
|
817 //! Signer identifier: suject Key ID extension |
|
818 //! Signed data content: Attached |
|
819 //! Hash available: yes |
|
820 //! Certificates provided by User: not |
|
821 //! Certificates attached: not |
|
822 //! @SYMPREQ PREQ968 |
|
823 //! @SYMTestPriority Critical |
|
824 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
825 //! @SYMTestExpectedResults successfully validated |
|
826 //! @SYMTestType CIT |
|
827 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0003 |
|
828 |
|
829 |
|
830 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-0004 |
|
831 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), |
|
832 //! encoding, decoding and validation. |
|
833 //! Number of signatures: 3 |
|
834 //! The signing key: All 3 RSA |
|
835 //! Digest Algorithm: All 3 SHA1 |
|
836 //! Signer identifier: All issuer and serial number |
|
837 //! Signed data content: Attached |
|
838 //! Hash available: yes |
|
839 //! Certificates provided by User: not |
|
840 //! Certificates attached: not |
|
841 //! @SYMPREQ PREQ968 |
|
842 //! @SYMTestPriority Critical |
|
843 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
844 //! @SYMTestExpectedResults successfully validated |
|
845 //! @SYMTestType CIT |
|
846 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0004 |
|
847 |
|
848 |
|
849 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-0005 |
|
850 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), |
|
851 //! encoding, decoding and validation. |
|
852 //! Number of signatures: 3 (+1 attribute certificate) |
|
853 //! The signing key: All 3 RSA |
|
854 //! Digest Algorithm: n1 SHA1, n2 MD2, n3 MD5 |
|
855 //! Signer identifier: All issuer and serial number |
|
856 //! Signed data content: Attached |
|
857 //! Hash available: yes |
|
858 //! Certificates provided by User: not |
|
859 //! Certificates attached: not |
|
860 //! @SYMPREQ PREQ968 |
|
861 //! @SYMTestPriority Critical |
|
862 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
863 //! @SYMTestExpectedResults successfully validated |
|
864 //! @SYMTestType CIT |
|
865 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0005 |
|
866 |
|
867 |
|
868 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-ATTACHED-TWOSTEP-0006 |
|
869 //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), |
|
870 //! encoding, decoding and validation. |
|
871 //! Number of signatures: 3 |
|
872 //! The signing key: All 3 RSA |
|
873 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 |
|
874 //! Signer identifier: All issuer and serial number |
|
875 //! Signed data content: Attached |
|
876 //! Hash available: yes |
|
877 //! Certificates provided by User: yes |
|
878 //! Certificates attached: yes |
|
879 //! @SYMPREQ PREQ968 |
|
880 //! @SYMTestPriority Critical |
|
881 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. |
|
882 //! @SYMTestExpectedResults successfully validated |
|
883 //! @SYMTestType CIT |
|
884 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0006 |
|
885 |
|
886 |
|
887 |
|
888 //! @SYMTestCaseID SEC-CMS-IT-UNSIGNED-0001 |
|
889 //! @SYMTestCaseDesc Test to ensure that CCmsContentInfo can deal with small amount of unsigned data. |
|
890 //! @SYMPREQ PREQ968 |
|
891 //! @SYMTestPriority Critical |
|
892 //! @SYMTestActions Call CCmsContentInfo providing only 4 bytes of data for the aContentData content value. |
|
893 //! @SYMTestExpectedResults Object is constructed without error, and is equal to expected result |
|
894 //! @SYMTestType CIT |
|
895 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-UNSIGNED-0001 |
|
896 |
|
897 |
|
898 |
|
899 //! @SYMTestCaseID SEC-CMS-IT-UNSIGNED-0002 |
|
900 //! @SYMTestCaseDesc Test to ensure that CCmsContentInfo can deal with small amount of unsigned data. |
|
901 //! @SYMPREQ PREQ968 |
|
902 //! @SYMTestPriority Critical |
|
903 //! @SYMTestActions Call CCmsContentInfo providing only 500 Kbytes of data for the aContentData content value. |
|
904 //! @SYMTestExpectedResults Object is constructed without error, and is equal to expected result |
|
905 //! @SYMTestType CIT |
|
906 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-UNSIGNED-0002 |
|
907 |
|
908 |
|
909 |
|
910 //! @SYMTestCaseID SEC-CMS-IT-OOM-0001 |
|
911 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory |
|
912 //! conditions gracefully |
|
913 //! Number of signatures: 1 |
|
914 //! The signing key: RSA |
|
915 //! Digest Algorithm: MD2 |
|
916 //! Signer identifier: suject Key ID extension |
|
917 //! Signed data content: Detached |
|
918 //! Certificates provided by User: not |
|
919 //! Certificates attached: not |
|
920 //! Construction method: Single Step |
|
921 //! @SYMPREQ PREQ968 |
|
922 //! @SYMTestPriority Critical |
|
923 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. |
|
924 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created |
|
925 //! @SYMTestType CIT |
|
926 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0001 |
|
927 |
|
928 |
|
929 //! @SYMTestCaseID SEC-CMS-IT-OOM-0002 |
|
930 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory |
|
931 //! conditions gracefully |
|
932 //! Number of signatures: 3 |
|
933 //! The signing key: RSA |
|
934 //! Digest Algorithm: n1 & n2 SHA1, n3 MD5 |
|
935 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number |
|
936 //! Signed data content: Detached |
|
937 //! Certificates provided by User: not |
|
938 //! Certificates attached: not |
|
939 //! Construction method: two Steps |
|
940 //! @SYMPREQ PREQ968 |
|
941 //! @SYMTestPriority Critical |
|
942 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. |
|
943 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created |
|
944 //! @SYMTestType CIT |
|
945 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0002 |
|
946 |
|
947 |
|
948 //! @SYMTestCaseID SEC-CMS-IT-OOM-0003 |
|
949 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory |
|
950 //! conditions gracefully |
|
951 //! Number of signatures: 3 |
|
952 //! The signing key: n1 & n2 RSA, n3 DSA |
|
953 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 |
|
954 //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number |
|
955 //! Signed data content: Detached |
|
956 //! Certificates provided by User: not |
|
957 //! Certificates attached: not |
|
958 //! Construction method: two Steps & no hash provided |
|
959 //! @SYMPREQ PREQ968 |
|
960 //! @SYMTestPriority Critical |
|
961 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. |
|
962 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created |
|
963 //! @SYMTestType CIT |
|
964 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0003 |
|
965 |
|
966 //! @SYMTestCaseID SEC-CMS-IT-OOM-0004 |
|
967 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory |
|
968 //! conditions gracefully |
|
969 //! Number of signatures: 3 |
|
970 //! The signing key: All RSA |
|
971 //! Digest Algorithm: All MD2 |
|
972 //! Signer identifier: All suject Key ID extension |
|
973 //! Signed data content: Attached |
|
974 //! Certificates provided by User: yes |
|
975 //! Certificates attached: yes |
|
976 //! Construction method: two Steps & no hash provided |
|
977 //! @SYMPREQ PREQ968 |
|
978 //! @SYMTestPriority Critical |
|
979 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. |
|
980 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created |
|
981 //! @SYMTestType CIT |
|
982 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0004 |
|
983 |
|
984 //! @SYMTestCaseID SEC-CMS-IT-OOM-0005 |
|
985 //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory |
|
986 //! conditions gracefully |
|
987 //! Number of signatures: 3 |
|
988 //! The signing key: All RSA |
|
989 //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 |
|
990 //! Signer identifier: All issuer and serial number |
|
991 //! Signed data content: Attached |
|
992 //! Certificates provided by User: yes |
|
993 //! Certificates attached: yes |
|
994 //! Construction method: two Steps |
|
995 //! @SYMPREQ PREQ968 |
|
996 //! @SYMTestPriority Critical |
|
997 //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. |
|
998 //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created |
|
999 //! @SYMTestType CIT |
|
1000 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0005 |
|
1001 |
|
1002 |
|
1003 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-NEGATIVE-0001 |
|
1004 //! @SYMTestCaseDesc To ensure that CCmsSignedObject returns the appropriate leave error code when the |
|
1005 //! two stage constructor is used incorrectly; data and hash are null. |
|
1006 //! |
|
1007 //! @SYMPREQ PREQ968 |
|
1008 //! @SYMTestPriority Critical |
|
1009 //! @SYMTestActions 1. A.- Call the constructor: |
|
1010 //! CCmsSignedObject* NewL(TCmsContentInfoType aType, TBool aIsDetached, |
|
1011 //! const TDesC8& aContentData) providing a NULL for the aContentData value. |
|
1012 //! 2. Call SignL method with a NULL hash value. |
|
1013 //! |
|
1014 //! @SYMTestExpectedResults KErrArgument returned |
|
1015 //! @SYMTestType CIT |
|
1016 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0001 |
|
1017 |
|
1018 |
|
1019 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-NEGATIVE-0002 |
|
1020 //! @SYMTestCaseDesc To ensure that CCmsSignedObject returns the appropriate leave error code when the |
|
1021 //! single stage constructor for detached data is used incorrectly; hash is null. . |
|
1022 //! @SYMPREQ PREQ968 |
|
1023 //! @SYMTestPriority Critical |
|
1024 //! @SYMTestActions CCmsSignedObject* NewLC(TCmsContentInfoType aType, const TDesC8& aHashValue, |
|
1025 //! TAlgorithmId aDigestAlgorithm, const CRSAPrivateKey& aKey, const CX509Certificate& |
|
1026 //! aCert, TBool aAddCertificate) providing a NULL for the aHashValue value. |
|
1027 //! @SYMTestExpectedResults KErrArgument returned |
|
1028 //! @SYMTestType CIT |
|
1029 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0002 |
|
1030 |
|
1031 |
|
1032 //! @SYMTestCaseID SEC-CMS-IT-SIGNED-NEGATIVE-0003 |
|
1033 //! @SYMTestCaseDesc To ensure that CCmsSignedObject will reject any raw non supported content type with |
|
1034 //! the appropriate leave error, the type to test for this case |
|
1035 //! is unsupported attribute certificate tag value. |
|
1036 //! @SYMPREQ PREQ968 |
|
1037 //! @SYMTestPriority Critical |
|
1038 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the attribute certificate |
|
1039 //! tag has a value of 2. No |
|
1040 //! @SYMTestExpectedResults KErrArgument returned |
|
1041 //! @SYMTestType CIT |
|
1042 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0003 |
|
1043 |
|
1044 //! @SYMTestCaseID SEC-CMS-IT-CONTENTINFO-0001 |
|
1045 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: Data. |
|
1046 //! @SYMPREQ PREQ968 |
|
1047 //! @SYMTestPriority Critical |
|
1048 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data |
|
1049 //! is raw is of type data (plain) |
|
1050 //! |
|
1051 //! |
|
1052 //! @SYMTestExpectedResults type data returned |
|
1053 //! @SYMTestType CIT |
|
1054 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0001 |
|
1055 |
|
1056 //! @SYMTestCaseID SEC-CMS-IT-CONTENTINFO-0002 |
|
1057 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: Enveloped. |
|
1058 //! @SYMPREQ PREQ968 |
|
1059 //! @SYMTestPriority Critical |
|
1060 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data |
|
1061 //! is raw is of type Enveloped data |
|
1062 //! |
|
1063 //! |
|
1064 //! @SYMTestExpectedResults type Enveloped data |
|
1065 //! @SYMTestType CIT |
|
1066 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0002 |
|
1067 |
|
1068 //! @SYMTestCaseID SEC-CMS-IT-CONTENTINFO-0003 |
|
1069 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: digested. |
|
1070 //! @SYMPREQ PREQ968 |
|
1071 //! @SYMTestPriority Critical |
|
1072 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data |
|
1073 //! is raw is of type digested data |
|
1074 //! |
|
1075 //! |
|
1076 //! @SYMTestExpectedResults digested data |
|
1077 //! @SYMTestType CIT |
|
1078 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0003 |
|
1079 |
|
1080 //! @SYMTestCaseID SEC-CMS-IT-CONTENTINFO-0004 |
|
1081 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: Encrypted. |
|
1082 //! @SYMPREQ PREQ968 |
|
1083 //! @SYMTestPriority Critical |
|
1084 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data |
|
1085 //! is raw is of type encrypted |
|
1086 //! |
|
1087 //! |
|
1088 //! @SYMTestExpectedResults type encrypted returned |
|
1089 //! @SYMTestType CIT |
|
1090 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0004 |
|
1091 |
|
1092 |
|
1093 //! @SYMTestCaseID SEC-CMS-IT-CONTENTINFO-0005 |
|
1094 //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: signed and enveloped. |
|
1095 //! @SYMPREQ PREQ968 |
|
1096 //! @SYMTestPriority Critical |
|
1097 //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data |
|
1098 //! is raw is of type signed and enveloped |
|
1099 //! |
|
1100 //! |
|
1101 //! @SYMTestExpectedResults type signed and enveloped returned |
|
1102 //! @SYMTestType CIT |
|
1103 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0005 |
|
1104 |