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