os/security/cryptoservices/certificateandkeymgmt/tpkcs12intgrtn/data/tpkcs12lib.script
Update contrib.
2 // Copyright (c) 2005-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.
15 // Creation Date 1/March/2006
16 // PKCS12 Integration Test Script
17 // Integration And Unit Test
18 // Tests : Pradeep, Bindu
19 // Component : PKCS#12 library
20 // The scope of this work package to verify the functionality of the Pkcs#12 library.
21 // The test data should be in the folder 'c:\data' and the ini files should be in the 'c:\tpkcs12intg\script\ini // folder'
24 LOAD_SUITE tpkcs12libtest
26 //////////////////////////////////////////////////////////////////////////////////////////////
27 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-IM-0001
28 //!@SYMTestCaseDependencies TestData(PKCS12_IM001.p12),ini file(IM001.ini) containing the data
29 //!@SYMTestCaseDesc Check the Integrity mode of the PKCS#12 file
30 //!@SYMREQ REQ5461, REQ5462
32 //!@SYMTestStatus Implemented
33 //!@SYMTestPriority High
34 //!@SYMTestActions 1.Load PKCS12 library with test data
35 // 2.Provide the same password provided as in the test data
36 // 3.Verify the integrity of the data with the decoded test data
37 //!@SYMTestExpectedResults Integrity verification returns success
39 //////////////////////////////////////////////////////////////////////////////////////////////
40 START_TESTCASE SEC-CERTMAN-PKCS12-IM-0001
42 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\im001.ini
44 END_TESTCASE SEC-CERTMAN-PKCS12-IM-0001
46 //////////////////////////////////////////////////////////////////////////////////////////////
47 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-IM-0002
48 //!@SYMTestCaseDependencies TestData(PKCS12_IM002.p12),ini file(IM002.ini) containing the data
49 //!@SYMTestCaseDesc Check the Integrity mode of the PKCS#12 file
50 //!@SYMREQ REQ5461, REQ5462
52 //!@SYMTestStatus Implemented
53 //!@SYMTestPriority High
54 //!@SYMTestActions 1.Load PKCS12 library with test data
55 // 2.Provide the same password provided as in the test data
56 // 3.Verify the integrity of the data with the decoded test data
57 //!@SYMTestExpectedResults Integrity verification returns success
59 //////////////////////////////////////////////////////////////////////////////////////////////
60 START_TESTCASE SEC-CERTMAN-PKCS12-IM-0002
62 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\im002.ini
64 END_TESTCASE SEC-CERTMAN-PKCS12-IM-0002
66 //////////////////////////////////////////////////////////////////////////////////////////////
67 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0001
68 //!@SYMTestCaseDependencies TestData(PKCS12_PM001.p12),ini file(PM001.ini) containing the data
69 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded
70 // in password privacy mode as well as it is in password integrity mode.
71 // Here the integrity password and the privacy password are different.
72 //!@SYMREQ REQ5458, REQ5461, REQ5462
74 //!@SYMTestStatus Implemented
75 //!@SYMTestPriority High
76 //!@SYMTestActions 1.Load the PKCS12 library with test data
77 // 2.Extract the Contentinfo
79 // 4.Verify the result with the decoded test data
80 //!@SYMTestExpectedResults Integrity verification returns failure
82 //////////////////////////////////////////////////////////////////////////////////////////////
84 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0001
85 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm001.ini
86 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0001
88 /////////////////////////////////////////////////////////////////////////////////////////////////////
89 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0002
90 //!@SYMTestCaseDependencies TestData(PKCS12_PM002.p12),ini file(PM002.ini) containing the data
91 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded in
92 // password privacy mode as well as it is in password integrity mode.
93 // Here private key is encrypted using PBE-SHA1-RC4-128
94 //!@SYMREQ REQ5458, REQ5461, REQ5462
96 //!@SYMTestStatus Implemented
97 //!@SYMTestPriority High
98 //!@SYMTestActions 1.Load the PKCS12 library with test data
99 // 2.Extract the Contentinfo
101 // 4.Verify the result with the decoded test data
102 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
104 /////////////////////////////////////////////////////////////////////////////////////////////////////
105 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0002
106 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm002.ini
107 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0002
109 /////////////////////////////////////////////////////////////////////////////////////////////////////
110 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0003
111 //!@SYMTestCaseDependencies TestData(PKCS12PIM003.p12),ini file(PM003.ini) containing the data
112 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded
113 // in password privacy mode as well as it is in password integrity mode.
114 // Here private key is encrypted using PBE-SHA1-RC4-40
115 //!@SYMREQ REQ5458, REQ5461, REQ5462
117 //!@SYMTestStatus Implemented
118 //!@SYMTestPriority High
119 //!@SYMTestActions 1.Load the PKCS12 library with test data
120 // 2.Extract the Contentinfo
122 // 4.Verify the result with the decoded test data
123 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
125 /////////////////////////////////////////////////////////////////////////////////////////////////////
126 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0003
127 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm003.ini
128 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0003
130 /////////////////////////////////////////////////////////////////////////////////////////////////////
131 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0004
132 //!@SYMTestCaseDependencies TestData(PKCS12_PM004.p12),ini file (PIM004.ini) containing the data
133 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded
134 // in password privacy mode as well as it is in password integrity mode.
135 // Here private key is encrypted using PBE-SHA1-3DES
136 //!@SYMREQ REQ5458, REQ5461, REQ5462
138 //!@SYMTestStatus Implemented
139 //!@SYMTestPriority High
140 //!@SYMTestActions 1.Load the PKCS12 library with test data
141 // 2.Extract the Contentinfo
143 // 4.Verify the result with the decoded test data
144 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
146 /////////////////////////////////////////////////////////////////////////////////////////////////////
147 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0004
148 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm004.ini
149 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0004
152 /////////////////////////////////////////////////////////////////////////////////////////////////////
153 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0005
154 //!@SYMTestCaseDependencies TestData(PKCS12_PM005.p12),ini file(PM005.ini) containing the data
155 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded
156 // in password privacy mode as well as it is in password integrity mode.
157 // Here private key is encrypted using PBE-SHA1-2DES
158 //!@SYMREQ REQ5458, REQ5461, REQ5462
160 //!@SYMTestStatus Implemented
161 //!@SYMTestPriority High
162 //!@SYMTestActions 1.Load the PKCS12 library with test data
163 // 2.Extract the Contentinfo
165 // 4.Verify the result with the decoded test data
166 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
168 /////////////////////////////////////////////////////////////////////////////////////////////////////
169 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0005
170 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm005.ini
171 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0005
173 /////////////////////////////////////////////////////////////////////////////////////////////////////
174 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0006
175 //!@SYMTestCaseDependencies TestData(PKCS12_PM006.p12),ini file(PM006.ini) containing the data
176 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded
177 // in password privacy mode as well as it is in password integrity mode.
178 // Here private key is encrypted using PBE-SHA1-RC2-128
179 //!@SYMREQ REQ5458, REQ5461, REQ5462
181 //!@SYMTestStatus Implemented
182 //!@SYMTestPriority High
183 //!@SYMTestActions 1.Load the PKCS12 library with test data
184 // 2.Extract the Contentinfo
186 // 4.Verify the result with the decoded test data
187 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
189 /////////////////////////////////////////////////////////////////////////////////////////////////////
190 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0006
191 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm006.ini
192 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0006
194 /////////////////////////////////////////////////////////////////////////////////////////////////////
195 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0007
196 //!@SYMTestCaseDependencies TestData(PKCS12_PM007.p12),ini file(PM007.ini) containing the data
197 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded
198 // in password privacy mode as well as it is in password integrity mode.
199 // Here private key is encrypted using PBE-SHA1-RC2-40
200 //!@SYMREQ REQ5458, REQ5461, REQ5462
202 //!@SYMTestStatus Implemented
203 //!@SYMTestPriority High
204 //!@SYMTestActions 1.Load the PKCS12 library with test data
205 // 2.Extract the Contentinfo
207 // 4.Verify the result with the decoded test data
208 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
210 /////////////////////////////////////////////////////////////////////////////////////////////////////
211 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0007
212 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm007.ini
213 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0007
215 /////////////////////////////////////////////////////////////////////////////////////////////////////
216 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0008
217 //!@SYMTestCaseDependencies TestData(PKCS12_PM008.p12),ini file(PM008.ini) containing the data
218 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded in password privacy // mode
219 // as well as it is in password integrity mode. Here ShroudedKeyBag is encrypted
220 // using –noiter mode.
221 //!@SYMREQ REQ5458, REQ5461, REQ5462
223 //!@SYMTestStatus Implemented
224 //!@SYMTestPriority High
225 //!@SYMTestActions 1.Load the PKCS12 library with test data
226 // 2.Extract the Contentinfo
228 // 4.Verify the result with the decoded test data
229 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
231 /////////////////////////////////////////////////////////////////////////////////////////////////////
232 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0008
233 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm008.ini
234 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0008
236 /////////////////////////////////////////////////////////////////////////////////////////////////////
237 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0009
238 //!@SYMTestCaseDependencies TestData(PKCS12_PM009.p12),ini file(PM009.ini) containing the data
239 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded in
240 // password privacy mode as well as it is in password integrity mode.
241 // Here the certBags are populated with certificates by importing from a certificate // chain.
242 //!@SYMREQ REQ5458, REQ5461, REQ5462
244 //!@SYMTestStatus Not Implemented,as test data cannot be generated
245 //!@SYMTestPriority High
246 //!@SYMTestActions 1.Load the PKCS12 library with test data
247 // 2.Extract the Contentinfo
248 // 3.Parse the certbags.
249 // 4.Verify the result with the test data
250 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
252 /////////////////////////////////////////////////////////////////////////////////////////////////////
253 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0009
254 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm009.ini
255 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0009
257 /////////////////////////////////////////////////////////////////////////////////////////////////////
258 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PM-0010
259 //!@SYMTestCaseDependencies TestData(PKCS12_PM010.p12),ini file(PM010.ini) containing the data
260 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from data encoded in
261 // password privacy mode as well as it is in password integrity mode.
262 // Here certBag contains a certificate having a friendly name.
263 //!@SYMREQ REQ5458, REQ5461, REQ5462
265 //!@SYMTestStatus Implemented
266 //!@SYMTestPriority High
267 //!@SYMTestActions 1.Load the PKCS12 library with test data
268 // 2.Extract the Contentinfo
269 // 3.Parse the bag, get the friendly name.
270 // 4.Verify the result.
271 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
273 /////////////////////////////////////////////////////////////////////////////////////////////////////
275 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0010
276 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm010.ini
277 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0010
279 /////////////////////////////////////////////////////////////////////////////////////////////////////
280 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0015
281 //!@SYMTestCaseDependencies TestData(PKCS12_CI001.p12),ini file(CI001.ini) containing the data
282 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from
283 // an encoded PKCS12 data with Contentinfo as plain text.
284 //!@SYMREQ REQ5461, REQ5462
286 //!@SYMTestStatus Implemented
287 //!@SYMTestPriority High
288 //!@SYMTestActions 1.Load the PKCS12 library with test data
289 // 2.Extract the Contentinfo
291 // 4.Verify the result with the decoded test data
292 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
294 /////////////////////////////////////////////////////////////////////////////////////////////////////
296 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0015
297 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\ci001.ini
298 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0015
300 /////////////////////////////////////////////////////////////////////////////////////////////////////
301 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0016
302 //!@SYMTestCaseDependencies TestData(PKCS12_CI002.p12),ini file(CI002.ini) containing the data
303 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an encoded PKCS12 data with
304 // Contentinfo as enveloped. This need not be supported in this version.
305 //!@SYMREQ REQ5461, REQ5462
307 //!@SYMTestStatus Implemented
308 //!@SYMTestPriority Medium
309 //!@SYMTestActions 1.Load the PKCS12 library with testdata
310 // 2.Extract the Contentinfo
311 // 3.Check the Content Type
312 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
314 /////////////////////////////////////////////////////////////////////////////////////////////////////
315 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0016
316 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\ci002.ini
317 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0016
319 /////////////////////////////////////////////////////////////////////////////////////////////////////
320 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-SB-0001
321 //!@SYMTestCaseDependencies TestData(PKCS12_SB001.p12),ini file(SB001.ini) containing the data
322 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an encoded PKCS12
323 // data with Bagtype as crlBag. This need not be supported in this version.
324 //!@SYMREQ REQ5461, REQ5462
326 //!@SYMTestStatus Implemented
327 //!@SYMTestPriority High
328 //!@SYMTestActions 1.Load the PKCS12 library with test data
329 // 2.Extract the Contentinfo
332 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
334 /////////////////////////////////////////////////////////////////////////////////////////////////////
336 START_TESTCASE SEC-CERTMAN-PKCS12-SB-0001
337 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\sb001.ini
338 END_TESTCASE SEC-CERTMAN-PKCS12-SB-0001
340 /////////////////////////////////////////////////////////////////////////////////////////////////////
341 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-SB-0002
342 //!@SYMTestCaseDependencies TestData(PKCS12_SB002.p12),ini file(SB002.ini) containing the data
343 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an encoded PKCS12 data
344 // with Bagtype as secretBag. This need not be supported in this version.
345 //!@SYMREQ REQ5461, REQ5462
347 //!@SYMTestStatus Implemented
348 //!@SYMTestPriority Low
349 //!@SYMTestActions 1.Load the PKCS12 library with test data
350 // 2.Extract the Contentinfo
353 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
355 /////////////////////////////////////////////////////////////////////////////////////////////////////
356 START_TESTCASE SEC-CERTMAN-PKCS12-SB-0002
357 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\sb002.ini
358 END_TESTCASE SEC-CERTMAN-PKCS12-SB-0002
360 /////////////////////////////////////////////////////////////////////////////////////////////////////
361 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-SB-0003
362 //!@SYMTestCaseDependencies TestData(PKCS12_SB003.p12),ini file(SB003.ini) containing the data
363 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an encoded
364 // PKCS12 data with Safe Bag type as safeContentsBag contains multiple
365 // instances of supported safeBags.
366 //!@SYMREQ REQ5461, REQ5462
368 //!@SYMTestStatus Implemented
369 //!@SYMTestPriority High
370 //!@SYMTestActions 1.Load the PKCS12 library with test data
371 // 2.Extract the Contentinfo
373 // 4.Verify the result with the decoded test data
374 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
376 /////////////////////////////////////////////////////////////////////////////////////////////////////
377 START_TESTCASE SEC-CERTMAN-PKCS12-SB-0003
378 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\sb003.ini
379 END_TESTCASE SEC-CERTMAN-PKCS12-SB-0003
381 ///////////////////////////////////////////////////////////////////////////////////////////////////////
382 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CT-0001
383 //!@SYMTestCaseDependencies TestData(PKCS12_CT001.p12),ini file(CT001.ini) containing the data
384 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an encoded
385 // PKCS12 data with Certificate type as sdsiCertficate.
386 // This need not be supported in this version.
387 //!@SYMREQ REQ5461, REQ5462
389 //!@SYMTestStatus Not Implemented,as test data cannot be generated
390 //!@SYMTestPriority Low
391 //!@SYMTestActions 1.Load the PKCS12 library with test data
392 // 2.Extract the Contentinfo
394 // 4.Verify the result with the decoded test data
395 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
397 /////////////////////////////////////////////////////////////////////////////////////////////////////
398 START_TESTCASE SEC-CERTMAN-PKCS12-CT-0001
399 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\ct001.ini
400 END_TESTCASE SEC-CERTMAN-PKCS12-CT-0001
403 /////////////////////////////////////////////////////////////////////////////////////////////////////
404 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CB-0001
405 //!@SYMTestCaseDependencies TestData(PKCS12_CB001.p12),ini file(CB001.ini) containing the data
406 //!@SYMTestCaseDesc This test case is for decoding the data from a PKCS12 structure contains
407 // one content info structure, with content type as data, which in turn
408 // contains all types of supported keybags.
409 //!@SYMREQ REQ5461, REQ5462
411 //!@SYMTestStatus Implemented
412 //!@SYMTestPriority Medium
413 //!@SYMTestActions 1.Load the PKCS12 library with test data
415 // 3.Extract the Contentinfo
417 // 5.Verify the result with the decoded test data
418 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
420 /////////////////////////////////////////////////////////////////////////////////////////////////////
421 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0001
422 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb001.ini
423 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0001
425 /////////////////////////////////////////////////////////////////////////////////////////////////////
426 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CB-0002
427 //!@SYMTestCaseDependencies TestData(PKCS12_CB002.p12),ini file(CB002.ini) containing the data
428 //!@SYMTestCaseDesc This test case is for decoding the data from an encoded PKCS12 structure
429 // contains three content info structures, with content type as data,
430 // along with macData.First ContentInfo contains all supported keybags
431 // as SafeContents , the second one contains all the unsupported keybags as
432 // SafeContents and the last one contains all type of keybags in arbitrary manner.
433 //!@SYMREQ REQ5461, REQ5462
435 //!@SYMTestStatus Implemented
436 //!@SYMTestPriority Medium
437 //!@SYMTestActions 1.Load the PKCS12 library with test data
439 // 3.Extract the Contentinfo to get all the safebags
441 // 5.Verify the result with the decoded test data
442 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
444 /////////////////////////////////////////////////////////////////////////////////////////////////////
445 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0002
446 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb002.ini
447 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0002
449 /////////////////////////////////////////////////////////////////////////////////////////////////////
450 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CB-0003
451 //!@SYMTestCaseDependencies TestData(PKCS12_CB003.p12),ini file(CB003.ini) containing the data
452 //!@SYMTestCaseDesc This test case is for decoding the data from a PKCS12 structure contains
453 // one content info structure, with content type as data, contains safeContentsBag
454 // which in turn contains three safeContentsBags.Amoung them one contains all
455 // the supported key bags, another one contains no key bags and the last one
456 // contains all types of keybags.
457 //!@SYMREQ REQ5461, REQ5462
459 //!@SYMTestStatus Implemented
460 //!@SYMTestPriority Medium
461 //!@SYMTestActions 1.Load the PKCS12 library with testdata
462 // 2.Extract the Contentinfo
464 // 4.Verify the result with the decode test data
465 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
467 /////////////////////////////////////////////////////////////////////////////////////////////////////
468 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0003
469 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb003.ini
470 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0003
472 /////////////////////////////////////////////////////////////////////////////////////////////////////
473 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CB-0004
474 //!@SYMTestCaseDependencies TestData(PKCS12_CB004.p12),ini file(CB004.ini) containing the data
475 //!@SYMTestCaseDesc This test case is for decoding the data from an encoded PKCS12 structure
476 // contains three content info structures, with content type as data,
477 // along with macData.First ContentInfo contains all supported keybags
478 // as SafeContents(encrypted) , the second one contains all the u
479 // unsupported keybags as SafeContents(encrypted) and the last one contains
480 // all type of keybags in arbitrary manner as SafeContents(encrypted).
481 //!@SYMREQ REQ5461, REQ5462
483 //!@SYMTestStatus Implemented
484 //!@SYMTestPriority Medium
485 //!@SYMTestActions 1.Load the PKCS12 library with testdata
487 // 3.Extract the Contentinfo
488 // 4.Parse the safeBags
489 // 5.Verify the result with the decoded test data
490 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
492 /////////////////////////////////////////////////////////////////////////////////////////////////////
493 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0004
494 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb004.ini
495 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0004
497 /////////////////////////////////////////////////////////////////////////////////////////////////////
498 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CB-0005
499 //!@SYMTestCaseDependencies TestData(PKCS12_CB005.p12),ini file(CB005.ini) containing the data
500 //!@SYMTestCaseDesc This test case is for decoding the data from a PKCS12 structure contains
501 // one content info structure, with content type as Encrypted data,
502 // contains safeContentsBag which in turn contains three safeContentsBags.
503 // Amoung them one contains all the supported key bags, another one contains
504 // no key bags and the last one contains all types of keybags.
505 //!@SYMREQ REQ5461, REQ5462
507 //!@SYMTestStatus Implemented
508 //!@SYMTestPriority Medium
509 //!@SYMTestActions 1.Load the PKCS12 library with testdata
511 // 3.Extract the Contentinfo
512 // 4.Parse the safeBags
513 // 5.Verify the result with the decoded test data
514 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
516 /////////////////////////////////////////////////////////////////////////////////////////////////////
517 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0005
518 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb005.ini
519 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0005
521 /////////////////////////////////////////////////////////////////////////////////////////////////////
522 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CB-0006
523 //!@SYMTestCaseDependencies TestData(PKCS12_CB006.p12),ini file(CB006.ini) containing the data
524 //!@SYMTestCaseDesc This test case is for decoding the data from a PKCS12 structure contains
525 // two content info structures, with content type as data. One of them should
526 // contain safeContents as data and the other should contain the safeContent as
528 //!@SYMREQ REQ5461, REQ5462
530 //!@SYMTestStatus Implemented
531 //!@SYMTestPriority Medium
532 //!@SYMTestActions 1.Load the PKCS12 library with testdata
533 // 2.Extract the Contentinfo
534 // 3.Parse the safeBags
535 // 4.Verify the result with the decoded test data
536 //!@SYMTestExpectedResults The data retrieved should match with the data in the ini file
538 /////////////////////////////////////////////////////////////////////////////////////////////////////
539 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0006
540 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb006.ini
541 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0006
543 /////////////////////////////////////////////////////////////////////////////////////////////////////
544 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-IV-0001
545 //!@SYMTestCaseDependencies TestData(PKCS12_junk.p12),ini file(IV001.ini) containing the data
546 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
547 // invalid encoded PKCS12 data.
548 //!@SYMREQ REQ5461, REQ5462
550 //!@SYMTestStatus Implemented
551 //!@SYMTestPriority High
552 //!@SYMTestActions Load PKCS12 library, provide an invalid PKCS#12 structure as argument.
553 // 1.Load the PKCS12 library with testdata
554 // 2.Verify the result
555 //!@SYMTestExpectedResults Negative Test case
557 /////////////////////////////////////////////////////////////////////////////////////////////////////
558 START_TESTCASE SEC-CERTMAN-PKCS12-IV-0001
560 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\iv001.ini
562 END_TESTCASE SEC-CERTMAN-PKCS12-IV-0001
564 /////////////////////////////////////////////////////////////////////////////////////////////////////
565 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-AU-0001
566 //!@SYMTestCaseDependencies TestData(pkcs12_unsupportedbag.p12),ini file(corruptedalgid.ini)
567 // containing the data.
568 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data in which authsafe contains
569 // content type other than data and signedData.
571 //!@SYMTestStatus Implemented
572 //!@SYMTestPriority High
573 //!@SYMTestActions 1.Load the PKCS12 library with testdata
574 // 2.Extract the authsafe structure.
575 // 3.Verify the error code with the expected error in the ini file.
576 //!@SYMTestExpectedResults The authsafe should contain data or signedData.
578 /////////////////////////////////////////////////////////////////////////////////////////////////////
579 START_TESTCASE SEC-CERTMAN-PKCS12-AU-0001
581 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedalgid.ini
583 END_TESTCASE SEC-CERTMAN-PKCS12-AU-0001
585 /////////////////////////////////////////////////////////////////////////////////////////////////////
586 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-AU-0002
587 //!@SYMTestCaseDependencies TestData(pkcs12_changetag.p12),ini file(changetag.ini) containing the data.
588 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data in which authsafe contentdata
589 // tag is otherthan OCTETSTRING.
591 //!@SYMTestStatus Implemented
592 //!@SYMTestPriority High
593 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
594 // 2.Extract the authsafe structure.
595 // 3.Verify the error code with the expected error in the ini file.
596 //!@SYMTestExpectedResults The authsafe contentdata tag should be OCTETSTRING.
598 /////////////////////////////////////////////////////////////////////////////////////////////////////
599 START_TESTCASE SEC-CERTMAN-PKCS12-AU-0002
601 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\changetag.ini
603 END_TESTCASE SEC-CERTMAN-PKCS12-AU-0002
605 /////////////////////////////////////////////////////////////////////////////////////////////////////
606 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-AU-0003
607 //!@SYMTestCaseDependencies TestData(pkcs12_authsafe_notasequence.p12),ini file(authsafe_notasequence.ini)
608 // containing the data.
609 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data in which authsafe structure tag
610 // otherthan Sequence.
612 //!@SYMTestStatus Implemented
613 //!@SYMTestPriority High
614 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
615 // 2.Extract the authsafe structure.
616 // 3.Verify the error code with the expected error in the ini file.
617 //!@SYMTestExpectedResults The authsafe contentdata tag should be OCTETSTRING.
619 /////////////////////////////////////////////////////////////////////////////////////////////////////
620 START_TESTCASE SEC-CERTMAN-PKCS12-AU-0003
622 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_notasequence.ini
624 END_TESTCASE SEC-CERTMAN-PKCS12-AU-0003
626 /////////////////////////////////////////////////////////////////////////////////////////////////////
627 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-AU-0004
628 //!@SYMTestCaseDependencies TestData(pkcs12_authsafe_oidnotoctetstring.p12),ini file
629 // (authsafe_oidnotoctetstring.ini) containing the data.
630 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data in which PFX structure
631 // authsafe contentType tag is not a OctetString
633 //!@SYMTestStatus Implemented
634 //!@SYMTestPriority High
635 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
636 // 2.Extract the authsafe structure.
637 // 3.Verify the Error code with the Expected Error in the ini file.
638 //!@SYMTestExpectedResults The authsafe contentType tag should be Object ID.
640 /////////////////////////////////////////////////////////////////////////////////////////////////////
641 START_TESTCASE SEC-CERTMAN-PKCS12-AU-0004
643 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_oidnotoctetstring.ini
645 END_TESTCASE SEC-CERTMAN-PKCS12-AU-0004
647 /////////////////////////////////////////////////////////////////////////////////////////////////////
648 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-AU-0005
649 //!@SYMTestCaseDependencies TestData(pkcs12_authsafe_contentnotoctetstring.p12),ini file
650 // (authsafe_contentnotoctetstring.ini) containing the data.
651 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data in which PFX structure
652 // authsafe contentData is not a OctetString.
654 //!@SYMTestStatus Implemented
655 //!@SYMTestPriority High
656 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
657 // 2.Extract the authsafe structure.
658 // 3.Verify the Error code with the Expected Error in the INI file.
659 //!@SYMTestExpectedResults The authsafe contentType tag should be Object ID.
661 /////////////////////////////////////////////////////////////////////////////////////////////////////
662 START_TESTCASE SEC-CERTMAN-PKCS12-AU-0005
664 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_contentnotoctetstring.ini
666 END_TESTCASE SEC-CERTMAN-PKCS12-AU-0005
669 /////////////////////////////////////////////////////////////////////////////////////////////////////
670 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-AU-0006
671 //!@SYMTestCaseDependencies TestData(pkcs12_authsafe_contentnotsequence.p12),ini file
672 // (authsafe_contentnotsequence.ini) containing the data.
673 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data in which PFX structure
674 // authSafe contentinfo not a sequence
676 //!@SYMTestStatus Implemented
677 //!@SYMTestPriority High
678 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
679 // 2.Extract the authsafe structure.
680 // 3.Verify the Error code with the Expected Error in the INI file.
681 //!@SYMTestExpectedResults The authsafe contentinfo tag should be Sequence.
683 /////////////////////////////////////////////////////////////////////////////////////////////////////
684 START_TESTCASE SEC-CERTMAN-PKCS12-AU-0006
686 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_contentnotsequence.ini
688 END_TESTCASE SEC-CERTMAN-PKCS12-AU-0006
690 /////////////////////////////////////////////////////////////////////////////////////////////////////
691 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-AU-0007
692 //!@SYMTestCaseDependencies TestData(pkcs12_unsupported_contenttype.p12),ini file
693 // (unsupported_contenttype.ini) containing the data.
694 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
695 // invalid encoded PKCS12 data in which the PFX structure contains
696 // other than public and password integrity mode.
697 //!@SYMTestStatus Implemented
699 //!@SYMTestPriority High
700 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
701 // 2.Extract the authsafe structure.
702 // 3.Check whether the content Type is Plain Data or SignedData.
703 // 4.Verify the Error code with the Expected Error in the INI file.
704 //!@SYMTestExpectedResults The content type must be plain data or signed data.
706 /////////////////////////////////////////////////////////////////////////////////////////////////////
707 START_TESTCASE SEC-CERTMAN-PKCS12-AU-0007
709 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\unsupported_contenttype.ini
711 END_TESTCASE SEC-CERTMAN-PKCS12-AU-0007
713 /////////////////////////////////////////////////////////////////////////////////////////////////////
714 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0001
715 //!@SYMTestCaseDependencies TestData(pkcs12_digestalg1.p12),ini file(corruptdigestalg_case1.ini)
716 // containing the data.
717 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data which contains algorithm OID
718 // MD5,But SHA1 is used to get the Digest.
720 //!@SYMTestStatus Implemented
721 //!@SYMTestPriority High
722 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
723 // 2.Extract the macData structure.
724 // 3.Call the verify integrity method to check the integrity of the
726 // 4.Verify the Error code with the Expected Error in the INI file.
727 //!@SYMTestExpectedResults The macData structure should contain digest algorithm SHA1 and for verify
728 // integrity only SHA1 is supported.
730 /////////////////////////////////////////////////////////////////////////////////////////////////////
731 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0001
733 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptdigestalg_case1.ini
735 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0001
737 /////////////////////////////////////////////////////////////////////////////////////////////////////
738 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0002
739 //!@SYMTestCaseDependencies TestData(pkcs12_digestalg2.p12),ini file(corruptdigestalg_case2.ini)
740 // containing the data.
741 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data which contains the digest
742 // algorithm which is not supported.
744 //!@SYMTestStatus Implemented
745 //!@SYMTestPriority High
746 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
747 // 2.Extract the macData structure.
748 // 3.Call the verify integrity method to check the integrity of the
750 // 4.Verify the Error code with the Expected Error in the INI file.
751 //!@SYMTestExpectedResults The macData structure should contain digest algorithm SHA1.
753 /////////////////////////////////////////////////////////////////////////////////////////////////////
754 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0002
756 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptdigestalg_case2.ini
758 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0002
760 /////////////////////////////////////////////////////////////////////////////////////////////////////
761 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0003
762 //!@SYMTestCaseDependencies TestData(pkcs12_emptydigest.p12),ini file(emptydigest.ini) containing the
764 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data in which digest is not present.
766 //!@SYMTestStatus Implemented
767 //!@SYMTestPriority High
768 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
769 // 2.Extract the macData structure.
770 // 3.Extract the DigestInfo structure and Check whether the digest is present.
771 // 4.Verify the Error code with the Expected Error in the INI file.
772 //!@SYMTestExpectedResults The DigestInfo struture should contain the digest.
774 /////////////////////////////////////////////////////////////////////////////////////////////////////
775 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0003
777 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\emptydigest.ini
779 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0003
781 /////////////////////////////////////////////////////////////////////////////////////////////////////
782 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0004
783 //!@SYMTestCaseDependencies TestData(pkcs12_digestcorrupted.p12),ini file
784 // (digestcorrupted.ini) containing the data.
785 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an invalid
786 // encoded PKCS12 data in which the PKCS7 contentinfo digest is
789 //!@SYMTestStatus Implemented
790 //!@SYMTestPriority High
791 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
792 // 2.Extract the macData structure.
793 // 3.Extract the DigestInfo structure and Check whether the digest is present.
794 // 4.Call the verify integrity method to check the integrity of the
796 // 5.Verify the Error code with the Expected Error in the INI file.
797 //!@SYMTestExpectedResults The DigestInfo struture should contain digest to verify the integrity of
800 /////////////////////////////////////////////////////////////////////////////////////////////////////
801 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0004
803 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\digestcorrupted.ini
805 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0004
807 /////////////////////////////////////////////////////////////////////////////////////////////////////
808 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0005
809 //!@SYMTestCaseDependencies TestData(pkcs12_macdatanotasequence.p12),ini file
810 // (macdatanotasequence.ini) containing the data.
811 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
812 // invalid encoded PKCS12 data in which the macdata is not a sequence.
814 //!@SYMTestStatus Implemented
815 //!@SYMTestPriority High
816 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
817 // 2.Extract the macData structure.
818 // 3.Check whether the macData is a Sequence.
819 // 4.Verify the Error code with the Expected Error in the INI file.
820 //!@SYMTestExpectedResults The MacData struture must be a sequence.
822 /////////////////////////////////////////////////////////////////////////////////////////////////////
823 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0005
825 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdatanotasequence.ini
827 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0005
829 /////////////////////////////////////////////////////////////////////////////////////////////////////
830 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0006
831 //!@SYMTestCaseDependencies TestData(pkcs12_macsaltnotoctetstring.p12),ini file
832 // (macsaltnotasequence.ini) containing the data.
833 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
834 // invalid encoded PKCS12 data in which the macSalt is not a sequence.
836 //!@SYMTestStatus Implemented
837 //!@SYMTestPriority High
838 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
839 // 2.Extract the macData structure.
840 // 3.Check whether the macSalt present in the macData is a sequence.
841 // 4.Verify the Error code with the Expected Error in the INI file.
842 //!@SYMTestExpectedResults The MacSalt present in the MacData struture must be a sequence.
844 /////////////////////////////////////////////////////////////////////////////////////////////////////
845 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0006
847 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macsaltnotasequence.ini
849 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0006
851 /////////////////////////////////////////////////////////////////////////////////////////////////////
852 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0007
853 //!@SYMTestCaseDependencies TestData(pkcs12_digestalgorithmnotasequence.p12),ini file
854 // (digestalgorithmnotasequence.ini) containing the data.
855 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
856 // invalid encoded PKCS12 data in which the PKCS7 digest algorithm is not
859 //!@SYMTestStatus Implemented
860 //!@SYMTestPriority High
861 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
862 // 2.Extract the macData structure.
863 // 3.Check whether the digest algorithm present in the digestInfo is a sequence.
864 // 4.Verify the Error code with the Expected Error in the INI file.
865 //!@SYMTestExpectedResults The digest algorithm present in the digestInfo structure must be a Sequence.
867 /////////////////////////////////////////////////////////////////////////////////////////////////////
868 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0007
870 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\digestalgorithmnotasequence.ini
872 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0007
874 /////////////////////////////////////////////////////////////////////////////////////////////////////
875 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0008
876 //!@SYMTestCaseDependencies TestData(pkcs12_digestinfonotasequence.p12),ini file
877 // (digestinfonotasequence.ini) containing the data.
878 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
879 // invalid encoded PKCS12 data in which the PKCS12 mac is not a
882 //!@SYMTestStatus Implemented
883 //!@SYMTestPriority High
884 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
885 // 2.Extract the macData structure.
886 // 3.Check whether the digestinfo structure present in the macData is a sequence.
887 // 4.Verify the Error code with the Expected Error in the INI file.
888 //!@SYMTestExpectedResults The digestinfo structure present in the macData must be a sequence.
890 /////////////////////////////////////////////////////////////////////////////////////////////////////
891 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0008
893 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\digestinfonotasequence.ini
895 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0008
897 /////////////////////////////////////////////////////////////////////////////////////////////////////
898 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0009
899 //!@SYMTestCaseDependencies TestData(pkcs12_macdata_nosalt_noiteration.p12),ini file
900 // (macdata_nosalt_noiteration.ini) containing the data.
901 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
902 // invalid encoded PKCS12 data in which the macdata is present with no
903 // salt and iteration count.
905 //!@SYMTestStatus Implemented
906 //!@SYMTestPriority High
907 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
908 // 2.Extract the macData structure.
909 // 3.Check whether macSalt and iteration count is present to Call the
910 // verify integrity method to check the integrity of the PKCS12 file.
911 // 4.Verify the Error code with the Expected Error in the INI file.
912 //!@SYMTestExpectedResults The MacData struture must contain macSalt and iteration count to verify
913 // the integrity of the PKCS12 file.
915 /////////////////////////////////////////////////////////////////////////////////////////////////////
916 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0009
918 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdata_nosalt_noiteration.ini
920 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0009
922 /////////////////////////////////////////////////////////////////////////////////////////////////////
923 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0010
924 //!@SYMTestCaseDependencies TestData(pkcs12_digestalgnotsha1.p12),ini file
925 // (macdataverifyintegritydigestalgnotsha1.ini) containing the data.
926 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
927 // invalid encoded PKCS12 data in which the digest alg is other than
930 //!@SYMTestStatus Implemented
931 //!@SYMTestPriority High
932 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
933 // 2.Extract the macData structure.
934 // 3.Extract the digestInfo structure and Check whether the digest algorithm is SHA1.
935 // 4.Verify the Error code with the Expected Error in the INI file.
936 //!@SYMTestExpectedResults The digestInfo structure must contain SHA1 digest algorithm.
938 /////////////////////////////////////////////////////////////////////////////////////////////////////
939 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0010
941 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdataverifyintegritydigestalgnotsha1.ini
943 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0010
945 /////////////////////////////////////////////////////////////////////////////////////////////////////
946 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0011
947 //!@SYMTestCaseDependencies TestData(pkcs12_macdata_iterationnotinteger.p12),ini file
948 // (macdata_iterationnotinteger.ini) containing the data.
949 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
950 // invalid encoded PKCS12 data in which the macdata iteration count tag
953 //!@SYMTestStatus Implemented
954 //!@SYMTestPriority High
955 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
956 // 2.Extract the macData structure.
957 // 3.Check whether the macdata iteration count tag type is Integer.
958 // 4.Verify the Error code with the Expected Error in the INI file.
959 //!@SYMTestExpectedResults The MacData struture iteration count tag type should be Integer.
961 /////////////////////////////////////////////////////////////////////////////////////////////////////
962 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0011
964 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdata_iterationnotinteger.ini
966 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0011
968 /////////////////////////////////////////////////////////////////////////////////////////////////////
969 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-MA-0012
970 //!@SYMTestCaseDependencies TestData(pkcs12_macdata_negiteration.p12),ini file
971 // (macdata_negiteration.ini) containing the data.
972 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
973 // invalid encoded PKCS12 data in which the macdata iteration count is // negative.
975 //!@SYMTestStatus Implemented
976 //!@SYMTestPriority High
977 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
978 // 2.Extract the macData structure.
979 // 3.Check whether the macData iteration count is greater than 0.
980 // 4.Verify the Error code with the Expected Error in the INI file.
981 //!@SYMTestExpectedResults The MacData struture iteration count should be greater than 0.
983 /////////////////////////////////////////////////////////////////////////////////////////////////////
984 START_TESTCASE SEC-CERTMAN-PKCS12-MA-0012
986 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdata_negiteration.ini
988 END_TESTCASE SEC-CERTMAN-PKCS12-MA-0012
990 /////////////////////////////////////////////////////////////////////////////////////////////////////
991 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PFX-0001
992 //!@SYMTestCaseDependencies TestData(pkcs12_corruptedversion.p12),ini file(corruptedversion.ini)
993 // containing the data.
994 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data which contains wrong PFX version
997 //!@SYMTestStatus Implemented
998 //!@SYMTestPriority High
999 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1000 // 2.Check whether the PFX structure is a sequence and Extract the PFX structure.
1001 // 3.Check whether the PFX structure contains version number 3.
1002 // 3.Verify the Error code with the Expected Error in the INI file.
1003 //!@SYMTestExpectedResults The PFX structure version number must be equal to 3.
1005 /////////////////////////////////////////////////////////////////////////////////////////////////////
1006 START_TESTCASE SEC-CERTMAN-PKCS12-PFX-0001
1008 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedversion.ini
1010 END_TESTCASE SEC-CERTMAN-PKCS12-PFX-0001
1012 /////////////////////////////////////////////////////////////////////////////////////////////////////
1013 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PFX-0002
1014 //!@SYMTestCaseDependencies TestData(pkcs12_pfx_notasequence.p12),ini file
1015 // (pfx_notasequence.ini) containing the data.
1016 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data in which the PFX structure
1017 // is not a sequence.
1018 //!@SYMPREQ PREQ1054
1019 //!@SYMTestStatus Implemented
1020 //!@SYMTestPriority High
1021 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1022 // 2.Check whether the PFX structure is a sequence.
1023 // 3.Verify the Error code with the Expected Error in the INI file.
1024 //!@SYMTestExpectedResults The PFX structure must be a sequence.
1026 /////////////////////////////////////////////////////////////////////////////////////////////////////
1027 START_TESTCASE SEC-CERTMAN-PKCS12-PFX-0002
1029 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pfx_notasequence.ini
1031 END_TESTCASE SEC-CERTMAN-PKCS12-PFX-0002
1033 /////////////////////////////////////////////////////////////////////////////////////////////////////
1034 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PFX-0003
1035 //!@SYMTestCaseDependencies TestData(pkcs12_version_notinteger.p12),ini file
1036 // (version_notinteger.ini) containing the data.
1037 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data in which the PFX structure
1038 // version not a Integer.
1039 //!@SYMPREQ PREQ1054
1040 //!@SYMTestStatus Implemented
1041 //!@SYMTestPriority High
1042 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1043 // 2.Extract the PFX structure.
1044 // 3.Check whether the PFX structure contains version number 3.
1045 // 3.Verify the Error code with the Expected Error in the INI file.
1046 //!@SYMTestExpectedResults The PFX structure version number must be equal to 3.
1048 /////////////////////////////////////////////////////////////////////////////////////////////////////
1049 START_TESTCASE SEC-CERTMAN-PKCS12-PFX-0003
1051 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\version_notinteger.ini
1053 END_TESTCASE SEC-CERTMAN-PKCS12-PFX-0003
1055 /////////////////////////////////////////////////////////////////////////////////////////////////////
1056 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-PFX-0004
1057 //!@SYMTestCaseDependencies TestData(pkcs12_pfx_missingcontents1.p12),ini file
1058 // (pfx_missingcontents1.ini) containing the data.
1059 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data which contains only PFX version
1061 //!@SYMPREQ PREQ1054
1062 //!@SYMTestStatus Implemented
1063 //!@SYMTestPriority High
1064 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1065 // 2.Extract the PFX structure.
1066 // 3.Check whether the PFX structure contains version number,authsafe and macdata
1068 // 4.Verify the Error code with the Expected Error in the INI file.
1069 //!@SYMTestExpectedResults The PFX structure must contain version number, authsafe and macdata structure.
1071 /////////////////////////////////////////////////////////////////////////////////////////////////////
1072 START_TESTCASE SEC-CERTMAN-PKCS12-PFX-0004
1074 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pfx_missingcontents1.ini
1076 END_TESTCASE SEC-CERTMAN-PKCS12-PFX-0004
1079 /////////////////////////////////////////////////////////////////////////////////////////////////////
1080 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-ED-0001
1081 //!@SYMTestCaseDependencies TestData(pkcs12_encryptedcontentiteration1.p12),ini file
1082 // (corruptedencryptedconiteration_case1.ini) containing the data.
1083 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an invalid encoded
1084 // PKCS12 data in which iteration Count present in the EncryptedContent Info
1086 //!@SYMPREQ PREQ1054
1087 //!@SYMTestStatus Implemented
1088 //!@SYMTestPriority High
1089 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1090 // 2.Extract the PKCS7 encrypted data structure.
1091 // 3.check whether the iteration count present in the EncryptedContent info
1092 // structure is greater than 0.
1093 // 4.Verify the Error code with the Expected Error in the INI file.
1094 //!@SYMTestExpectedResults The teration count present in the EncryptedContent info
1095 // structure must be greater than 0.
1097 /////////////////////////////////////////////////////////////////////////////////////////////////////
1098 START_TESTCASE SEC-CERTMAN-PKCS12-ED-0001
1100 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedconiteration_case1.ini
1102 END_TESTCASE SEC-CERTMAN-PKCS12-ED-0001
1104 /////////////////////////////////////////////////////////////////////////////////////////////////////
1105 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-ED-0002
1106 //!@SYMTestCaseDependencies TestData(pkcs12_encryptedcontentiteration2.p12),ini file
1107 // (corruptedencryptedconiteration_case2.ini) containing the data.
1108 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an invalid encoded
1109 // PKCS12 data in which iteration Count present in the EncryptedContent Info
1111 //!@SYMPREQ PREQ1054
1112 //!@SYMTestStatus Implemented
1113 //!@SYMTestPriority High
1114 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1115 // 2.Extract the PKCS7 encrypted data structure.
1116 // 3.check whether the iteration count present in the EncryptedContent info
1117 // structure is greater than 0.
1118 // 4.Verify the Error code with the Expected Error in the INI file.
1119 //!@SYMTestExpectedResults The teration count present in the EncryptedContent info
1120 // structure must be greater than 0.
1122 /////////////////////////////////////////////////////////////////////////////////////////////////////
1123 START_TESTCASE SEC-CERTMAN-PKCS12-ED-0002
1125 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedconiteration_case2.ini
1127 END_TESTCASE SEC-CERTMAN-PKCS12-ED-0002
1129 /////////////////////////////////////////////////////////////////////////////////////////////////////
1130 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-ED-0003
1131 //!@SYMTestCaseDependencies TestData(pkcs12_encryptedcontentversion.p12),ini file
1132 // (corruptedencryptedconversion.ini) containing the data.
1133 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1134 // invalid encoded PKCS12 data in which version present in the EncryptedContent
1135 // Info Sequence is not 0.
1136 //!@SYMPREQ PREQ1054
1137 //!@SYMTestStatus Implemented
1138 //!@SYMTestPriority High
1139 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1140 // 2.Extract the PKCS7 encrypted data structure.
1141 // 3.check whether the version present in the EncryptedContent info
1142 // structure is equal to 0.
1143 // 4.Verify the Error code with the Expected Error in the INI file.
1144 //!@SYMTestExpectedResults The version number present in the EncryptedContent info
1145 // structure must be equal to 0.
1147 /////////////////////////////////////////////////////////////////////////////////////////////////////
1148 START_TESTCASE SEC-CERTMAN-PKCS12-ED-0003
1150 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedconversion.ini
1152 END_TESTCASE SEC-CERTMAN-PKCS12-ED-0003
1154 /////////////////////////////////////////////////////////////////////////////////////////////////////
1155 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-ED-0004
1156 //!@SYMTestCaseDependencies TestData(pkcs12_encryptedusingdifferentAlg.p12),ini file
1157 // (encryptedusingdifferentalg.ini) containing the data.
1158 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1159 // invalid encoded PKCS12 data in which the algorithm used for encryption is
1161 //!@SYMPREQ PREQ1054
1162 //!@SYMTestStatus Implemented
1163 //!@SYMTestPriority High
1164 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1165 // 2.Extract the PKCS7 encrypted data structure.
1166 // 3.Check whether the algorithm used for encryption is PKCS12 ides.
1167 // 3.Verify the Error code with the Expected Error in the INI file.
1168 //!@SYMTestExpectedResults The algorithm used for encryption must be supported PKCS12 ides.
1170 /////////////////////////////////////////////////////////////////////////////////////////////////////
1171 START_TESTCASE SEC-CERTMAN-PKCS12-ED-0004
1173 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encryptedusingdifferentalg.ini
1175 END_TESTCASE SEC-CERTMAN-PKCS12-ED-0004
1177 /////////////////////////////////////////////////////////////////////////////////////////////////////
1178 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-ED-0005
1179 //!@SYMTestCaseDependencies TestData(pkcs12_encrypteddataabsent.p12),ini file(encrypteddataabsent.ini)
1180 // containing the data.
1181 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an invalid encoded PKCS12
1182 // data in which the encrypted contentdata is not present.
1183 //!@SYMTestStatus Implemented
1184 //!@SYMPREQ PREQ1054
1185 //!@SYMTestPriority High
1186 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1187 // 2.Check whether the encrypted data is present.
1188 // 3.Verify the Error code with the Expected Error in the INI file.
1189 //!@SYMTestExpectedResults The encrypted data must be present.
1191 /////////////////////////////////////////////////////////////////////////////////////////////////////
1192 START_TESTCASE SEC-CERTMAN-PKCS12-ED-0005
1194 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encrypteddataabsent.ini
1196 END_TESTCASE SEC-CERTMAN-PKCS12-ED-0005
1198 /////////////////////////////////////////////////////////////////////////////////////////////////////
1199 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-ED-0006
1200 //!@SYMTestCaseDependencies TestData(pkcs12_corruptedSalt.p12),ini file(encrypteddatasaltcorrupted.ini)
1201 // containing the data.
1202 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1203 // invalid encoded PKCS12 data in which encrypted salt is corrupted.
1204 //!@SYMTestStatus Implemented
1205 //!@SYMPREQ PREQ1054
1206 //!@SYMTestPriority High
1207 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1208 // 2.Extract the PKCS7 encrypted data structure.
1209 // 3.Verify the Error code with the Expected Error in the INI file.
1210 //!@SYMTestExpectedResults The encrypted salt present in the encrypted data structure must be correct
1211 // in order to decrypt the data.
1213 /////////////////////////////////////////////////////////////////////////////////////////////////////
1214 START_TESTCASE SEC-CERTMAN-PKCS12-ED-0006
1216 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encrypteddatasaltcorrupted.ini
1218 END_TESTCASE SEC-CERTMAN-PKCS12-ED-0006
1220 /////////////////////////////////////////////////////////////////////////////////////////////////////
1221 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-ED-0007
1222 //!@SYMTestCaseDependencies TestData(pkcs12_encryptedcontentabsent.p12),ini file
1223 // (encryptedcontentabsent.ini) containing the data.
1224 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1225 // invalid encoded PKCS12 data in which the encrypted contentdata is not present.
1226 //!@SYMTestStatus Implemented
1227 //!@SYMPREQ PREQ1054
1228 //!@SYMTestPriority High
1229 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1230 // 2.Extract the PKCS7 encrypted data structure.
1231 // 3.Check whether the encrypted content data present in the PKSc7 EncryptedData
1233 // 4.Verify the Error code with the Expected Error in the INI file.
1234 //!@SYMTestExpectedResults The encrypted content data is optional, Check for NULL.
1236 /////////////////////////////////////////////////////////////////////////////////////////////////////
1237 START_TESTCASE SEC-CERTMAN-PKCS12-ED-0007
1239 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encryptedcontentabsent.ini
1241 END_TESTCASE SEC-CERTMAN-PKCS12-ED-0007
1243 /////////////////////////////////////////////////////////////////////////////////////////////////////
1244 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-ED-0008
1245 //!@SYMTestCaseDependencies TestData(pkcs12_corruptedencryptedcontent.p12),ini file
1246 // (corruptedencryptedcontent.ini) containing the data.
1247 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1248 // invalid encoded PKCS12 data in which the encrypted content data is corrupted.
1249 //!@SYMTestStatus Implemented
1250 //!@SYMPREQ PREQ1054
1251 //!@SYMTestPriority High
1252 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1253 // 2.Extract the PKCS7 encrypted data structure.
1254 // 3.Check whether the encrypted content data present in the PKSc7 EncryptedData
1256 // 4.Verify the Error code with the Expected Error in the INI file.
1257 //!@SYMTestExpectedResults The Encrypted Content Data must be correct to decrypt the data.
1259 /////////////////////////////////////////////////////////////////////////////////////////////////////
1260 START_TESTCASE SEC-CERTMAN-PKCS12-ED-0008
1262 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedcontent.ini
1264 END_TESTCASE SEC-CERTMAN-PKCS12-ED-0008
1266 /////////////////////////////////////////////////////////////////////////////////////////////////////
1267 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0001
1268 //!@SYMTestCaseDependencies TestData(pkcs12_unsupportedContentInfo.p12),ini file
1269 // (contentinfotypeunsupported.ini) containing the data.
1270 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1271 // invalid encoded PKCS12 data which contains the contentType 8 which is
1273 //!@SYMTestStatus Implemented
1274 //!@SYMPREQ PREQ1054
1275 //!@SYMTestPriority High
1276 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1277 // 2.Extract the authsafe structure.
1278 // 3.Check whether the content Type is Plain Data or EncryptedData.
1279 // 4.Verify the Error code with the Expected Error in the INI file.
1280 //!@SYMTestExpectedResults The content Type present in the contentInfo structure must be Data
1283 /////////////////////////////////////////////////////////////////////////////////////////////////////
1284 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0001
1286 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\contentinfotypeunsupported.ini
1288 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0001
1290 /////////////////////////////////////////////////////////////////////////////////////////////////////
1291 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0002
1292 //!@SYMTestCaseDependencies TestData(pkcs12_emptycontentinfo.p12),ini file(emptycontentinfo.ini)
1293 // containing the data.
1294 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1295 // invalid encoded PKCS12 data in which the authsafe ContentData is not
1297 //!@SYMTestStatus Implemented
1298 //!@SYMPREQ PREQ1054
1299 //!@SYMTestPriority High
1300 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1301 // 2.Extract the authsafe structure.
1302 // 3.Check whether the content Data present in the PKCS7 ContentInfo structure.
1303 // 4.Verify the Error code with the Expected Error in the INI file.
1304 //!@SYMTestExpectedResults The ContentData must be present in the PKCS7 ContentInfo structure.
1306 /////////////////////////////////////////////////////////////////////////////////////////////////////
1307 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0002
1309 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\emptycontentinfo.ini
1311 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0002
1314 /////////////////////////////////////////////////////////////////////////////////////////////////////
1315 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0003
1316 //!@SYMTestCaseDependencies TestData(pkcs12_unsupportedbag.p12),ini file
1317 // (corruptbagalgid.ini) containing the data.
1318 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1319 // invalid encoded PKCS12 data in which the contentinfo contains unsupported bag.
1320 //!@SYMTestStatus Implemented
1321 //!@SYMPREQ PREQ1054
1322 //!@SYMTestPriority High
1323 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1324 // 2.Extract the authsafe structure.
1325 // 3.Check whether the contentinfo structure contains CRL, Secret,SafeBag,KeyBag,
1326 // ShroudedKeyBag or SafeContentsBag.
1327 // 3.Verify the Error code with the Expected Error in the INI file.
1328 //!@SYMTestExpectedResults The ContentInfo structure must contain either one of the supported bags CRL,
1329 // Secret,SafeBag,KeyBag,ShroudedKeyBag or SafeContentsBag.
1331 /////////////////////////////////////////////////////////////////////////////////////////////////////
1332 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0003
1334 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptbagalgid.ini
1336 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0003
1338 /////////////////////////////////////////////////////////////////////////////////////////////////////
1339 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0004
1340 //!@SYMTestCaseDependencies TestData(pkcs12_corruptedshroudediteration1.p12),ini file
1341 // (corruptedshroudediteration_case1.ini) containing the data.
1342 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1343 // invalid encoded PKCS12 data in which the shroudedbag contains the
1344 // iteration count 0.
1345 //!@SYMTestStatus Implemented
1346 //!@SYMPREQ PREQ1054
1347 //!@SYMTestPriority High
1348 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1349 // 2.Extract the authsafe structure.
1350 // 3.Check whether the iteration count present in shroudedBag.
1351 // 4.Verify the Error code with the Expected Error in the INI file.
1352 //!@SYMTestExpectedResults The iteration count present in shroudedBag should be greater than 0.
1354 /////////////////////////////////////////////////////////////////////////////////////////////////////
1355 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0004
1357 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedshroudediteration_case1.ini
1359 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0004
1361 /////////////////////////////////////////////////////////////////////////////////////////////////////
1362 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0005
1363 //!@SYMTestCaseDependencies TestData(pkcs12_corruptedshroudediteration2.p12),ini file
1364 // (corruptedshroudediteration_case2.ini) containing the data.
1365 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1366 // invalid encoded PKCS12 data in which the shroudedbag contains the
1367 // iteration count -ve.
1368 //!@SYMTestStatus Implemented
1369 //!@SYMPREQ PREQ1054
1370 //!@SYMTestPriority High
1371 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1372 // 2.Extract the authsafe structure.
1373 // 3.Check whether the iteration count present in shroudedBag.
1374 // 4.Verify the Error code with the Expected Error in the INI file.
1375 //!@SYMTestExpectedResults The iteration count present in shroudedBag should be greater than 0.
1377 /////////////////////////////////////////////////////////////////////////////////////////////////////
1378 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0005
1380 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedshroudediteration_case2.ini
1382 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0005
1384 /////////////////////////////////////////////////////////////////////////////////////////////////////
1385 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0006
1386 //!@SYMTestCaseDependencies TestData(pkcs12_corruptedshroudedval.p12),ini file
1387 // (corruptedshroudedval.ini) containing the data.
1388 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1389 // invalid encoded PKCS12 data in which the shroudedbag value is corrupted.
1390 //!@SYMTestStatus Implemented
1391 //!@SYMPREQ PREQ1054
1392 //!@SYMTestPriority High
1393 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1394 // 2.Extract the authsafe structure.
1395 // 3.Check whether the shroudedKey BagValue is present.
1396 // 4.Verify the Error code with the Expected Error in the INI file.
1397 //!@SYMTestExpectedResults The Shroudedkey BagValue must be correct to decrypt the data.
1399 /////////////////////////////////////////////////////////////////////////////////////////////////////
1400 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0006
1402 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedshroudedval.ini
1404 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0006
1406 /////////////////////////////////////////////////////////////////////////////////////////////////////
1407 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0007
1408 //!@SYMTestCaseDependencies TestData(pkcs12_certbag_notasequence.p12),ini file
1409 // (certbag_notasequence.ini) containing the data.
1410 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1411 // invalid encoded PKCS12 data in which the certbag tag is not a
1413 //!@SYMTestStatus Implemented
1414 //!@SYMPREQ PREQ1054
1415 //!@SYMTestPriority High
1416 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1417 // 2.Extract the authsafe structure.
1418 // 3.Check whether the CertBag Type is sequence.
1419 // 4.Verify the Error code with the Expected Error in the INI file.
1420 //!@SYMTestExpectedResults The CertBag Type present in the ContentInfo structure must be a
1423 /////////////////////////////////////////////////////////////////////////////////////////////////////
1424 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0007
1426 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_notasequence.ini
1428 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0007
1430 /////////////////////////////////////////////////////////////////////////////////////////////////////
1431 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0008
1432 //!@SYMTestCaseDependencies TestData(pkcs12_certbag_oidnotoctetstring.p12),ini file
1433 // (certbag_oidnotoctetstring.ini) containing the data.
1434 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1435 // invalid encoded PKCS12 data in which the certbag OID type is not // octetstring.
1436 //!@SYMTestStatus Implemented
1437 //!@SYMPREQ PREQ1054
1438 //!@SYMTestPriority High
1439 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1440 // 2.Extract the authsafe structure.
1441 // 3.Check whether the CertBag OID Type is OCTETSTRING.
1442 // 4.Verify the Error code with the Expected Error in the INI file.
1443 //!@SYMTestExpectedResults The CertBag OID Type present in the ContentInfo structure must be a
1446 /////////////////////////////////////////////////////////////////////////////////////////////////////
1447 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0008
1449 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_oidnotoctetstring.ini
1451 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0008
1453 /////////////////////////////////////////////////////////////////////////////////////////////////////
1454 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0009
1455 //!@SYMTestCaseDependencies TestData(pkcs12_certbag_explicittagchanged.p12),ini file
1456 // (certbag_explicittagchanged.ini) containing the data.
1457 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1458 // invalid encoded PKCS12 data in which the certbag explicittag is
1460 //!@SYMTestStatus Implemented
1461 //!@SYMPREQ PREQ1054
1462 //!@SYMTestPriority High
1463 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1464 // 2.Extract the authsafe structure.
1465 // 3.Check whether the CertBag ExplicitTag is sequence.
1466 // 4.Verify the Error code with the Expected Error in the INI file.
1467 //!@SYMTestExpectedResults The CertBag ExplicitTag present in the ContentInfo structure must
1470 /////////////////////////////////////////////////////////////////////////////////////////////////////
1471 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0009
1473 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_explicittagchanged.ini
1475 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0009
1477 /////////////////////////////////////////////////////////////////////////////////////////////////////
1478 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0010
1479 //!@SYMTestCaseDependencies TestData(pkcs12_certbag_notoctetstring.p12),ini file
1480 // (certbag_notoctetstring.ini) containing the data.
1481 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1482 // invalid encoded PKCS12 data in which the certbag value is not
1484 //!@SYMTestStatus Implemented
1485 //!@SYMPREQ PREQ1054
1486 //!@SYMTestPriority High
1487 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1488 // 2.Extract the authsafe structure.
1489 // 3.Check whether the CertBag Value is OCTETSTRING.
1490 // 3.Verify the Error code with the Expected Error in the INI file.
1491 //!@SYMTestExpectedResults The CertBag Value present in the ContentInfo structure must
1492 // be a OCTETSTRING.
1494 /////////////////////////////////////////////////////////////////////////////////////////////////////
1495 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0010
1497 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_notoctetstring.ini
1499 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0010
1502 /////////////////////////////////////////////////////////////////////////////////////////////////////
1503 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0011
1504 //!@SYMTestCaseDependencies TestData(pkcs12_corruptedattrval.p12),ini file
1505 // (attributevaluechanged.ini) containing the data.
1506 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1507 // invalid encoded PKCS12 data in which the attribute value is modified.
1508 //!@SYMTestStatus Implemented
1509 //!@SYMPREQ PREQ1054
1510 //!@SYMTestPriority High
1511 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1512 // 2.Extract the authsafe structure.
1513 // 3.Check whether the attribute value present in the bag and compare
1514 // whether the value is corrupted.
1515 // 4.Verify the Error code with the Expected Error in the INI file.
1516 //!@SYMTestExpectedResults The Comparsion fails if the attribute value is modified.
1518 /////////////////////////////////////////////////////////////////////////////////////////////////////
1519 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0011
1521 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\attributevaluechanged.ini
1523 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0011
1525 /////////////////////////////////////////////////////////////////////////////////////////////////////
1526 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0012
1527 //!@SYMTestCaseDependencies TestData(pkcs12_bagattributenotaseq.p12),ini file
1528 // (bagattributenotaseq.ini) containing the data.
1529 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1530 // invalid encoded PKCS12 data in which the bag attribute tag is not a sequence.
1531 //!@SYMTestStatus Implemented
1532 //!@SYMPREQ PREQ1054
1533 //!@SYMTestPriority High
1534 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1535 // 2.Extract the authsafe structure.
1536 // 3.Check whether the Attribute set tag present in the bag is Sequence.
1537 // 4.Verify the Error code with the Expected Error in the INI file.
1538 //!@SYMTestExpectedResults The Attribute set tag present in the bag must be a Sequence.
1540 /////////////////////////////////////////////////////////////////////////////////////////////////////
1541 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0012
1543 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\bagattributenotaseq.ini
1545 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0012
1547 /////////////////////////////////////////////////////////////////////////////////////////////////////
1548 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0013
1549 //!@SYMTestCaseDependencies TestData(pkcs12_bagattributeoid_notoctet.p12),ini file
1550 // (bagattributeoid_notoctet.ini) containing the data.
1551 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1552 // invalid encoded PKCS12 data in which the bag attribute oid tag is
1553 // not octet string.
1554 //!@SYMTestStatus Implemented
1555 //!@SYMPREQ PREQ1054
1556 //!@SYMTestPriority High
1557 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1558 // 2.Extract the authsafe structure.
1559 // 3.Check whether the bag attribute OID tag present in the Attribute Set is
1561 // 4.Verify the Error code with the Expected Error in the INI file.
1562 //!@SYMTestExpectedResults The bag attribute OID tag present in the Attribute Set must be a
1565 /////////////////////////////////////////////////////////////////////////////////////////////////////
1566 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0013
1568 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\bagattributeoid_notoctet.ini
1570 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0013
1572 /////////////////////////////////////////////////////////////////////////////////////////////////////
1573 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-CI-0014
1574 //!@SYMTestCaseDependencies TestData(pkcs12_bagattributeval_notset.p12),ini file
1575 // (bagattributeval_notset.ini) containing the data.
1576 //!@SYMTestCaseDesc This test case is for decoding the PKCS12 data from an
1577 // invalid encoded PKCS12 data in which the bag attribute value tag is
1579 //!@SYMTestStatus Implemented
1580 //!@SYMPREQ PREQ1054
1581 //!@SYMTestPriority High
1582 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1583 // 2.Extract the authsafe structure.
1584 // 3.Check whether the bag Attribute value tag present in the attribute Set
1586 // 4.Verify the Error code with the Expected Error in the INI file.
1587 //!@SYMTestExpectedResults The bag Attribute value tag present in the attribute Set must be a
1590 /////////////////////////////////////////////////////////////////////////////////////////////////////
1591 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0014
1593 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\bagattributeval_notset.ini
1595 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0014
1597 /////////////////////////////////////////////////////////////////////////////////////////////////////
1598 //!@SYMTestCaseID SEC-CERTMAN-PKCS12-OOM-0001
1599 //!@SYMTestCaseDependencies INI file (oomtest.ini) containing the test data path for
1601 //!@SYMTestCaseDesc Below test cases perform out of memory tests for the pkcs12 library.
1602 //!@SYMTestStatus Implemented
1603 //!@SYMPREQ PREQ1054
1604 //!@SYMTestPriority High
1605 //!@SYMTestActions 1.Load the PKCS12 library with testdata.
1606 // 2.Extract the Data.
1607 // 3.Call the Exported NEWL methods to DeSequence the structure.
1608 //!@SYMTestExpectedResults The KErrNoMemory must be returned.
1610 /////////////////////////////////////////////////////////////////////////////////////////////////////
1611 START_TESTCASE SEC-CERTMAN-PKCS12-OOM-0001
1613 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMPKCS12Test
1614 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMPKCS12READSTREAMTEST
1615 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMMACDATATEST
1616 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMATTRIBUTETEST
1617 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMSHROUDEDKEYBAGTEST
1618 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMCERTBAGTEST
1619 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMKEYBAGTEST
1620 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMSAFEBAGTEST
1621 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMSECRETBAGTEST
1622 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMCRLBAGTEST
1623 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMSAFECONTENTSBAGTEST
1624 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMSAFECONTENTDATATEST
1625 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep c:\tpkcs12intg\data\ini\oomtest.ini OOMSAFECONTENTENCRYPTEDDATATEST
1627 END_TESTCASE SEC-CERTMAN-PKCS12-OOM-0001