cryptoservices/certificateandkeymgmt/tpkcs12intgrtn/data/tpkcs12lib.script
changeset 8 35751d3474b7
parent 0 2c201484c85f
child 11 9d767430696e
child 29 ece3df019add
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    30 // Integration And Unit Test
    30 // Integration And Unit Test
    31 // Tests      : Pradeep, Bindu
    31 // Tests      : Pradeep, Bindu
    32 // Component  : PKCS#12 library
    32 // Component  : PKCS#12 library
    33 // The scope of this work package to verify the functionality of the 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'
    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 //
    35 //
    37 
    36 
    38 LOAD_SUITE tpkcs12libtest
    37 LOAD_SUITE tpkcs12libtest
    39  
    38  
    40 //////////////////////////////////////////////////////////////////////////////////////////////
    39 //////////////////////////////////////////////////////////////////////////////////////////////
    49 //      				2.Provide the same password provided as in the test data
    48 //      				2.Provide the same password provided as in the test data
    50 //      				3.Verify the integrity of the data with the decoded test data
    49 //      				3.Verify the integrity of the data with the decoded test data
    51 //!@SYMTestExpectedResults		Integrity verification returns success
    50 //!@SYMTestExpectedResults		Integrity verification returns success
    52 //!@SYMTestType				CIT
    51 //!@SYMTestType				CIT
    53 //////////////////////////////////////////////////////////////////////////////////////////////
    52 //////////////////////////////////////////////////////////////////////////////////////////////
    54 START_TESTCASE SEC-CERTMAN-PKCS12-IM-0001
    53 START_TESTCASE 				SEC-CERTMAN-PKCS12-IM-0001
    55 
    54 
    56 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\im001.ini
    55 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\im001.ini
    57 
    56 
    58 END_TESTCASE SEC-CERTMAN-PKCS12-IM-0001
    57 END_TESTCASE 				SEC-CERTMAN-PKCS12-IM-0001
    59 
    58 
    60 //////////////////////////////////////////////////////////////////////////////////////////////
    59 //////////////////////////////////////////////////////////////////////////////////////////////
    61 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-IM-0002
    60 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-IM-0002
    62 //!@SYMTestCaseDependencies		TestData(PKCS12_IM002.p12),ini file(IM002.ini) containing the data 
    61 //!@SYMTestCaseDependencies		TestData(PKCS12_IM002.p12),ini file(IM002.ini) containing the data 
    63 //!@SYMTestCaseDesc			Check the Integrity mode of the PKCS#12 file
    62 //!@SYMTestCaseDesc			Check the Integrity mode of the PKCS#12 file
    69 //     					2.Provide the same password provided as in the test data
    68 //     					2.Provide the same password provided as in the test data
    70 //      				3.Verify the integrity of the data with the decoded test data
    69 //      				3.Verify the integrity of the data with the decoded test data
    71 //!@SYMTestExpectedResults		Integrity verification returns success
    70 //!@SYMTestExpectedResults		Integrity verification returns success
    72 //!@SYMTestType				CIT
    71 //!@SYMTestType				CIT
    73 //////////////////////////////////////////////////////////////////////////////////////////////
    72 //////////////////////////////////////////////////////////////////////////////////////////////
    74 START_TESTCASE SEC-CERTMAN-PKCS12-IM-0002
    73 START_TESTCASE 				SEC-CERTMAN-PKCS12-IM-0002
    75 
    74 
    76 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\im002.ini
    75 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\im002.ini
    77 
    76 
    78 END_TESTCASE SEC-CERTMAN-PKCS12-IM-0002
    77 END_TESTCASE 				SEC-CERTMAN-PKCS12-IM-0002
    79 
    78 		
    80 //////////////////////////////////////////////////////////////////////////////////////////////
    79 //////////////////////////////////////////////////////////////////////////////////////////////
    81 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0001
    80 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0001
    82 //!@SYMTestCaseDependencies		TestData(PKCS12_PM001.p12),ini file(PM001.ini) containing the data 
    81 //!@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
    82 //!@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. 
    83 //					in password privacy mode as well as it is in password integrity mode. 
    93 //					4.Verify the result with the decoded test data
    92 //					4.Verify the result with the decoded test data
    94 //!@SYMTestExpectedResults		Integrity verification returns failure
    93 //!@SYMTestExpectedResults		Integrity verification returns failure
    95 //!@SYMTestType				CIT
    94 //!@SYMTestType				CIT
    96 //////////////////////////////////////////////////////////////////////////////////////////////
    95 //////////////////////////////////////////////////////////////////////////////////////////////
    97 
    96 
    98 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0001
    97 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0001
    99 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm001.ini
    98 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm001.ini
   100 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0001
    99 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0001
   101 
   100 
   102 /////////////////////////////////////////////////////////////////////////////////////////////////////
   101 /////////////////////////////////////////////////////////////////////////////////////////////////////
   103 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0002
   102 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0002
   104 //!@SYMTestCaseDependencies		TestData(PKCS12_PM002.p12),ini file(PM002.ini) containing the data 
   103 //!@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 
   104 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from data encoded in 
   114 //					3.Parse the bag.
   113 //					3.Parse the bag.
   115 //					4.Verify the result with the decoded test data
   114 //					4.Verify the result with the decoded test data
   116 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   115 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   117 //!@SYMTestType				CIT
   116 //!@SYMTestType				CIT
   118 /////////////////////////////////////////////////////////////////////////////////////////////////////
   117 /////////////////////////////////////////////////////////////////////////////////////////////////////
   119 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0002
   118 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0002
   120 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm002.ini
   119 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm002.ini
   121 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0002
   120 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0002
   122 
   121 
   123 /////////////////////////////////////////////////////////////////////////////////////////////////////
   122 /////////////////////////////////////////////////////////////////////////////////////////////////////
   124 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0003
   123 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0003
   125 //!@SYMTestCaseDependencies		TestData(PKCS12PIM003.p12),ini file(PM003.ini) containing the data 
   124 //!@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 
   125 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from data encoded 
   135 //					3.Parse the bag.
   134 //					3.Parse the bag.
   136 //					4.Verify the result with the decoded test data
   135 //					4.Verify the result with the decoded test data
   137 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   136 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   138 //!@SYMTestType				CIT
   137 //!@SYMTestType				CIT
   139 /////////////////////////////////////////////////////////////////////////////////////////////////////
   138 /////////////////////////////////////////////////////////////////////////////////////////////////////
   140 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0003
   139 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0003
   141 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm003.ini
   140 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm003.ini
   142 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0003
   141 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0003
   143 
   142 
   144 /////////////////////////////////////////////////////////////////////////////////////////////////////
   143 /////////////////////////////////////////////////////////////////////////////////////////////////////
   145 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0004
   144 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0004
   146 //!@SYMTestCaseDependencies		TestData(PKCS12_PM004.p12),ini file (PIM004.ini) containing the data 
   145 //!@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 
   146 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from data encoded 
   156 //					3.Parse the bags.
   155 //					3.Parse the bags.
   157 //					4.Verify the result with the decoded test data
   156 //					4.Verify the result with the decoded test data
   158 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   157 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   159 //!@SYMTestType				CIT
   158 //!@SYMTestType				CIT
   160 /////////////////////////////////////////////////////////////////////////////////////////////////////
   159 /////////////////////////////////////////////////////////////////////////////////////////////////////
   161 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0004
   160 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0004
   162 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm004.ini
   161 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm004.ini
   163 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0004
   162 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0004
   164 
   163 
   165 
   164 
   166 /////////////////////////////////////////////////////////////////////////////////////////////////////
   165 /////////////////////////////////////////////////////////////////////////////////////////////////////
   167 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0005
   166 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0005
   168 //!@SYMTestCaseDependencies		TestData(PKCS12_PM005.p12),ini file(PM005.ini) containing the data 
   167 //!@SYMTestCaseDependencies		TestData(PKCS12_PM005.p12),ini file(PM005.ini) containing the data 
   178 //					3.Parse the bag3.
   177 //					3.Parse the bag3.
   179 //					4.Verify the result with the decoded test data
   178 //					4.Verify the result with the decoded test data
   180 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   179 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   181 //!@SYMTestType				CIT
   180 //!@SYMTestType				CIT
   182 /////////////////////////////////////////////////////////////////////////////////////////////////////
   181 /////////////////////////////////////////////////////////////////////////////////////////////////////
   183 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0005
   182 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0005
   184 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm005.ini
   183 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm005.ini
   185 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0005
   184 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0005
   186 
   185 
   187 /////////////////////////////////////////////////////////////////////////////////////////////////////
   186 /////////////////////////////////////////////////////////////////////////////////////////////////////
   188 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0006
   187 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0006
   189 //!@SYMTestCaseDependencies		TestData(PKCS12_PM006.p12),ini file(PM006.ini) containing the data 
   188 //!@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 
   189 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from data encoded 
   199 //					3.Parse the bags.
   198 //					3.Parse the bags.
   200 //					4.Verify the result with the decoded test data
   199 //					4.Verify the result with the decoded test data
   201 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   200 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   202 //!@SYMTestType				CIT
   201 //!@SYMTestType				CIT
   203 /////////////////////////////////////////////////////////////////////////////////////////////////////
   202 /////////////////////////////////////////////////////////////////////////////////////////////////////
   204 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0006
   203 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0006
   205 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm006.ini
   204 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm006.ini
   206 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0006
   205 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0006
   207 
   206 
   208 /////////////////////////////////////////////////////////////////////////////////////////////////////
   207 /////////////////////////////////////////////////////////////////////////////////////////////////////
   209 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0007
   208 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0007
   210 //!@SYMTestCaseDependencies		TestData(PKCS12_PM007.p12),ini file(PM007.ini) containing the data 
   209 //!@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 
   210 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from data encoded 
   220 //					3.Parse the bag.
   219 //					3.Parse the bag.
   221 //					4.Verify the result with the decoded test data
   220 //					4.Verify the result with the decoded test data
   222 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   221 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   223 //!@SYMTestType				CIT
   222 //!@SYMTestType				CIT
   224 /////////////////////////////////////////////////////////////////////////////////////////////////////
   223 /////////////////////////////////////////////////////////////////////////////////////////////////////
   225 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0007
   224 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0007
   226 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm007.ini
   225 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm007.ini
   227 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0007
   226 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0007
   228 
   227 
   229 /////////////////////////////////////////////////////////////////////////////////////////////////////
   228 /////////////////////////////////////////////////////////////////////////////////////////////////////
   230 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0008
   229 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0008
   231 //!@SYMTestCaseDependencies		TestData(PKCS12_PM008.p12),ini file(PM008.ini) containing the data 
   230 //!@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 
   231 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from data encoded in password privacy //					mode 
   241 //					3.Parse the bag.
   240 //					3.Parse the bag.
   242 //					4.Verify the result with the decoded test data
   241 //					4.Verify the result with the decoded test data
   243 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   242 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   244 //!@SYMTestType				CIT
   243 //!@SYMTestType				CIT
   245 /////////////////////////////////////////////////////////////////////////////////////////////////////
   244 /////////////////////////////////////////////////////////////////////////////////////////////////////
   246 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0008
   245 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0008
   247 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm008.ini
   246 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm008.ini
   248 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0008
   247 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0008
   249 
   248 
   250 /////////////////////////////////////////////////////////////////////////////////////////////////////
   249 /////////////////////////////////////////////////////////////////////////////////////////////////////
   251 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0009
   250 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0009
   252 //!@SYMTestCaseDependencies		TestData(PKCS12_PM009.p12),ini file(PM009.ini) containing the data 
   251 //!@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 
   252 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from data encoded in 
   262 //					3.Parse the certbags.
   261 //					3.Parse the certbags.
   263 //					4.Verify the result with the test data
   262 //					4.Verify the result with the test data
   264 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   263 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   265 //!@SYMTestType				CIT
   264 //!@SYMTestType				CIT
   266 /////////////////////////////////////////////////////////////////////////////////////////////////////
   265 /////////////////////////////////////////////////////////////////////////////////////////////////////
   267 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0009
   266 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0009
   268 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm009.ini
   267 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm009.ini
   269 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0009
   268 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0009
   270 
   269 
   271 /////////////////////////////////////////////////////////////////////////////////////////////////////
   270 /////////////////////////////////////////////////////////////////////////////////////////////////////
   272 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0010
   271 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PM-0010
   273 //!@SYMTestCaseDependencies		TestData(PKCS12_PM010.p12),ini file(PM010.ini) containing the data 
   272 //!@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 
   273 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from data encoded in 
   284 //					4.Verify the result.
   283 //					4.Verify the result.
   285 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   284 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   286 //!@SYMTestType				CIT
   285 //!@SYMTestType				CIT
   287 /////////////////////////////////////////////////////////////////////////////////////////////////////
   286 /////////////////////////////////////////////////////////////////////////////////////////////////////
   288 
   287 
   289 START_TESTCASE SEC-CERTMAN-PKCS12-PM-0010
   288 START_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0010
   290 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm010.ini
   289 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pm010.ini
   291 END_TESTCASE SEC-CERTMAN-PKCS12-PM-0010
   290 END_TESTCASE 				SEC-CERTMAN-PKCS12-PM-0010
   292 
   291 
   293 /////////////////////////////////////////////////////////////////////////////////////////////////////
   292 /////////////////////////////////////////////////////////////////////////////////////////////////////
   294 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0001
   293 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0015
   295 //!@SYMTestCaseDependencies		TestData(PKCS12_CI001.p12),ini file(CI001.ini) containing the data 
   294 //!@SYMTestCaseDependencies		TestData(PKCS12_CI001.p12),ini file(CI001.ini) containing the data 
   296 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from 
   295 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from 
   297 //					an encoded PKCS12 data with Contentinfo as plain text.
   296 //					an encoded PKCS12 data with Contentinfo as plain text.
   298 //!@SYMREQ 				REQ5461, REQ5462
   297 //!@SYMREQ 				REQ5461, REQ5462
   299 //!@SYMPREQ                   		PREQ1054 
   298 //!@SYMPREQ                   		PREQ1054 
   305 //					4.Verify the result with the decoded test data
   304 //					4.Verify the result with the decoded test data
   306 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   305 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   307 //!@SYMTestType				CIT
   306 //!@SYMTestType				CIT
   308 /////////////////////////////////////////////////////////////////////////////////////////////////////
   307 /////////////////////////////////////////////////////////////////////////////////////////////////////
   309 
   308 
   310 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0001
   309 START_TESTCASE 				SEC-CERTMAN-PKCS12-CI-0015
   311 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\ci001.ini
   310 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\ci001.ini
   312 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0001
   311 END_TESTCASE 				SEC-CERTMAN-PKCS12-CI-0015
   313 
   312 
   314 /////////////////////////////////////////////////////////////////////////////////////////////////////
   313 /////////////////////////////////////////////////////////////////////////////////////////////////////
   315 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0002
   314 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0016
   316 //!@SYMTestCaseDependencies		TestData(PKCS12_CI002.p12),ini file(CI002.ini) containing the data 
   315 //!@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 
   316 //!@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.
   317 //					Contentinfo as enveloped. This need not be supported in this version.
   319 //!@SYMREQ 				REQ5461, REQ5462
   318 //!@SYMREQ 				REQ5461, REQ5462
   320 //!@SYMPREQ                   		PREQ1054 
   319 //!@SYMPREQ                   		PREQ1054 
   324 //					2.Extract the Contentinfo
   323 //					2.Extract the Contentinfo
   325 //					3.Check the Content Type
   324 //					3.Check the Content Type
   326 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   325 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   327 //!@SYMTestType				CIT
   326 //!@SYMTestType				CIT
   328 /////////////////////////////////////////////////////////////////////////////////////////////////////
   327 /////////////////////////////////////////////////////////////////////////////////////////////////////
   329 START_TESTCASE SEC-CERTMAN-PKCS12-CI-0002
   328 START_TESTCASE 				SEC-CERTMAN-PKCS12-CI-0016
   330 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\ci002.ini
   329 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\ci002.ini
   331 END_TESTCASE SEC-CERTMAN-PKCS12-CI-0002
   330 END_TESTCASE 				SEC-CERTMAN-PKCS12-CI-0016
   332 
   331 
   333 /////////////////////////////////////////////////////////////////////////////////////////////////////
   332 /////////////////////////////////////////////////////////////////////////////////////////////////////
   334 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-SB-0001
   333 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-SB-0001
   335 //!@SYMTestCaseDependencies		TestData(PKCS12_SB001.p12),ini file(SB001.ini) containing the data 
   334 //!@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 
   335 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an encoded PKCS12 
   345 //					4.Get the Bag id
   344 //					4.Get the Bag id
   346 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   345 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   347 //!@SYMTestType				CIT
   346 //!@SYMTestType				CIT
   348 /////////////////////////////////////////////////////////////////////////////////////////////////////
   347 /////////////////////////////////////////////////////////////////////////////////////////////////////
   349 
   348 
   350 START_TESTCASE SEC-CERTMAN-PKCS12-SB-0001
   349 START_TESTCASE 				SEC-CERTMAN-PKCS12-SB-0001
   351 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\sb001.ini
   350 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\sb001.ini
   352 END_TESTCASE SEC-CERTMAN-PKCS12-SB-0001
   351 END_TESTCASE 				SEC-CERTMAN-PKCS12-SB-0001
   353 
   352 
   354 /////////////////////////////////////////////////////////////////////////////////////////////////////
   353 /////////////////////////////////////////////////////////////////////////////////////////////////////
   355 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-SB-0002
   354 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-SB-0002
   356 //!@SYMTestCaseDependencies		TestData(PKCS12_SB002.p12),ini file(SB002.ini) containing the data 
   355 //!@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 
   356 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an encoded PKCS12 data 
   365 //					3.Parse the bag
   364 //					3.Parse the bag
   366 //					4.Get the bag id
   365 //					4.Get the bag id
   367 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   366 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   368 //!@SYMTestType				CIT
   367 //!@SYMTestType				CIT
   369 /////////////////////////////////////////////////////////////////////////////////////////////////////
   368 /////////////////////////////////////////////////////////////////////////////////////////////////////
   370 START_TESTCASE SEC-CERTMAN-PKCS12-SB-0002
   369 START_TESTCASE 				SEC-CERTMAN-PKCS12-SB-0002
   371 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\sb002.ini
   370 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\sb002.ini
   372 END_TESTCASE SEC-CERTMAN-PKCS12-SB-0002
   371 END_TESTCASE 				SEC-CERTMAN-PKCS12-SB-0002
   373 
   372 
   374 /////////////////////////////////////////////////////////////////////////////////////////////////////
   373 /////////////////////////////////////////////////////////////////////////////////////////////////////
   375 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-SB-0003
   374 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-SB-0003
   376 //!@SYMTestCaseDependencies		TestData(PKCS12_SB003.p12),ini file(SB003.ini) containing the data 
   375 //!@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
   376 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an encoded
   386 //					3.Parse the bags
   385 //					3.Parse the bags
   387 //					4.Verify the result with the decoded test data
   386 //					4.Verify the result with the decoded test data
   388 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   387 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   389 //!@SYMTestType				CIT
   388 //!@SYMTestType				CIT
   390 /////////////////////////////////////////////////////////////////////////////////////////////////////
   389 /////////////////////////////////////////////////////////////////////////////////////////////////////
   391 START_TESTCASE SEC-CERTMAN-PKCS12-SB-0003
   390 START_TESTCASE 				SEC-CERTMAN-PKCS12-SB-0003
   392 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\sb003.ini
   391 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\sb003.ini
   393 END_TESTCASE SEC-CERTMAN-PKCS12-SB-0003
   392 END_TESTCASE 				SEC-CERTMAN-PKCS12-SB-0003
   394 
   393 
   395 ///////////////////////////////////////////////////////////////////////////////////////////////////////
   394 ///////////////////////////////////////////////////////////////////////////////////////////////////////
   396 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CT-0001
   395 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CT-0001
   397 //!@SYMTestCaseDependencies		TestData(PKCS12_CT001.p12),ini file(CT001.ini) containing the data 
   396 //!@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 
   397 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an encoded 
   407 //					3.Parse the bag
   406 //					3.Parse the bag
   408 //					4.Verify the result with the decoded test data
   407 //					4.Verify the result with the decoded test data
   409 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   408 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   410 //!@SYMTestType				CIT
   409 //!@SYMTestType				CIT
   411 /////////////////////////////////////////////////////////////////////////////////////////////////////
   410 /////////////////////////////////////////////////////////////////////////////////////////////////////
   412 START_TESTCASE SEC-CERTMAN-PKCS12-CT-0001
   411 START_TESTCASE 				SEC-CERTMAN-PKCS12-CT-0001
   413 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\ct001.ini
   412 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\ct001.ini
   414 END_TESTCASE SEC-CERTMAN-PKCS12-CT-0001
   413 END_TESTCASE 				SEC-CERTMAN-PKCS12-CT-0001
   415 
   414 
   416 
   415 
   417 /////////////////////////////////////////////////////////////////////////////////////////////////////
   416 /////////////////////////////////////////////////////////////////////////////////////////////////////
   418 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0001
   417 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0001
   419 //!@SYMTestCaseDependencies		TestData(PKCS12_CB001.p12),ini file(CB001.ini) containing the data 
   418 //!@SYMTestCaseDependencies		TestData(PKCS12_CB001.p12),ini file(CB001.ini) containing the data 
   430 //					4.Parse the bags
   429 //					4.Parse the bags
   431 //					5.Verify the result with the decoded test data
   430 //					5.Verify the result with the decoded test data
   432 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   431 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   433 //!@SYMTestType				CIT
   432 //!@SYMTestType				CIT
   434 /////////////////////////////////////////////////////////////////////////////////////////////////////
   433 /////////////////////////////////////////////////////////////////////////////////////////////////////
   435 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0001
   434 START_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0001
   436 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb001.ini
   435 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb001.ini
   437 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0001
   436 END_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0001
   438 
   437 
   439 /////////////////////////////////////////////////////////////////////////////////////////////////////
   438 /////////////////////////////////////////////////////////////////////////////////////////////////////
   440 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0002
   439 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0002
   441 //!@SYMTestCaseDependencies		TestData(PKCS12_CB002.p12),ini file(CB002.ini) containing the data 
   440 //!@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 
   441 //!@SYMTestCaseDesc			This test case is for decoding the data from an encoded PKCS12 structure 
   454 //					4.Parse the bags
   453 //					4.Parse the bags
   455 //					5.Verify the result with the decoded test data
   454 //					5.Verify the result with the decoded test data
   456 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   455 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   457 //!@SYMTestType				CIT
   456 //!@SYMTestType				CIT
   458 /////////////////////////////////////////////////////////////////////////////////////////////////////
   457 /////////////////////////////////////////////////////////////////////////////////////////////////////
   459 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0002
   458 START_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0002
   460 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb002.ini
   459 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb002.ini
   461 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0002
   460 END_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0002
   462 
   461 
   463 /////////////////////////////////////////////////////////////////////////////////////////////////////
   462 /////////////////////////////////////////////////////////////////////////////////////////////////////
   464 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0003
   463 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0003
   465 //!@SYMTestCaseDependencies		TestData(PKCS12_CB003.p12),ini file(CB003.ini) containing the data 
   464 //!@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 
   465 //!@SYMTestCaseDesc			This test case is for decoding the data from a PKCS12 structure contains 
   477 //					3.Parse the bags
   476 //					3.Parse the bags
   478 //					4.Verify the result with the decode test data
   477 //					4.Verify the result with the decode test data
   479 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   478 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   480 //!@SYMTestType				CIT
   479 //!@SYMTestType				CIT
   481 /////////////////////////////////////////////////////////////////////////////////////////////////////
   480 /////////////////////////////////////////////////////////////////////////////////////////////////////
   482 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0003
   481 START_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0003
   483 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb003.ini
   482 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb003.ini
   484 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0003
   483 END_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0003
   485 
   484 
   486 /////////////////////////////////////////////////////////////////////////////////////////////////////
   485 /////////////////////////////////////////////////////////////////////////////////////////////////////
   487 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0004
   486 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0004
   488 //!@SYMTestCaseDependencies		TestData(PKCS12_CB004.p12),ini file(CB004.ini) containing the data 
   487 //!@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 
   488 //!@SYMTestCaseDesc			This test case is for decoding the data from an encoded PKCS12 structure 
   502 //					4.Parse the safeBags
   501 //					4.Parse the safeBags
   503 //					5.Verify the result with the decoded test data
   502 //					5.Verify the result with the decoded test data
   504 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   503 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   505 //!@SYMTestType				CIT
   504 //!@SYMTestType				CIT
   506 /////////////////////////////////////////////////////////////////////////////////////////////////////
   505 /////////////////////////////////////////////////////////////////////////////////////////////////////
   507 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0004
   506 START_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0004
   508 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb004.ini
   507 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb004.ini
   509 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0004
   508 END_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0004
   510 
   509 
   511 /////////////////////////////////////////////////////////////////////////////////////////////////////
   510 /////////////////////////////////////////////////////////////////////////////////////////////////////
   512 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0005
   511 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0005
   513 //!@SYMTestCaseDependencies		TestData(PKCS12_CB005.p12),ini file(CB005.ini) containing the data 
   512 //!@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 
   513 //!@SYMTestCaseDesc			This test case is for decoding the data from a PKCS12 structure contains 
   526 //					4.Parse the safeBags
   525 //					4.Parse the safeBags
   527 //					5.Verify the result with the decoded test data
   526 //					5.Verify the result with the decoded test data
   528 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   527 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   529 //!@SYMTestType				CIT
   528 //!@SYMTestType				CIT
   530 /////////////////////////////////////////////////////////////////////////////////////////////////////
   529 /////////////////////////////////////////////////////////////////////////////////////////////////////
   531 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0005
   530 START_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0005
   532 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb005.ini
   531 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb005.ini
   533 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0005
   532 END_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0005
   534 
   533 
   535 /////////////////////////////////////////////////////////////////////////////////////////////////////
   534 /////////////////////////////////////////////////////////////////////////////////////////////////////
   536 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0006
   535 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CB-0006
   537 //!@SYMTestCaseDependencies		TestData(PKCS12_CB006.p12),ini file(CB006.ini) containing the data 
   536 //!@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 
   537 //!@SYMTestCaseDesc			This test case is for decoding the data from a PKCS12 structure contains 
   548 //					3.Parse the safeBags
   547 //					3.Parse the safeBags
   549 //					4.Verify the result with the decoded test data
   548 //					4.Verify the result with the decoded test data
   550 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   549 //!@SYMTestExpectedResults		The data retrieved should match with the data in the ini file
   551 //!@SYMTestType				CIT
   550 //!@SYMTestType				CIT
   552 /////////////////////////////////////////////////////////////////////////////////////////////////////
   551 /////////////////////////////////////////////////////////////////////////////////////////////////////
   553 START_TESTCASE SEC-CERTMAN-PKCS12-CB-0006
   552 START_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0006
   554 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb006.ini
   553 RUN_TEST_STEP 100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\cb006.ini
   555 END_TESTCASE SEC-CERTMAN-PKCS12-CB-0006
   554 END_TESTCASE 				SEC-CERTMAN-PKCS12-CB-0006
   556 
   555 
   557 /////////////////////////////////////////////////////////////////////////////////////////////////////
   556 /////////////////////////////////////////////////////////////////////////////////////////////////////
   558 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-IV-001
   557 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-IV-0001
   559 //!@SYMTestCaseDependencies		TestData(PKCS12_junk.p12),ini file(IV001.ini) containing the data 
   558 //!@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 
   559 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   561 //					invalid encoded PKCS12 data.
   560 //					invalid encoded PKCS12 data.
   562 //!@SYMREQ 				REQ5461, REQ5462
   561 //!@SYMREQ 				REQ5461, REQ5462
   563 //!@SYMPREQ                   		PREQ1054 
   562 //!@SYMPREQ                   		PREQ1054 
   567 //					1.Load the PKCS12 library with testdata 
   566 //					1.Load the PKCS12 library with testdata 
   568 //					2.Verify the result	
   567 //					2.Verify the result	
   569 //!@SYMTestExpectedResults		Negative Test case
   568 //!@SYMTestExpectedResults		Negative Test case
   570 //!@SYMTestType				UT
   569 //!@SYMTestType				UT
   571 /////////////////////////////////////////////////////////////////////////////////////////////////////
   570 /////////////////////////////////////////////////////////////////////////////////////////////////////
   572 START_TESTCASE  SEC-CERTMAN-PKCS12-IV-0001
   571 START_TESTCASE 				SEC-CERTMAN-PKCS12-IV-0001
   573 
   572 
   574 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\iv001.ini
   573 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\iv001.ini
   575 
   574 
   576 END_TESTCASE    SEC-CERTMAN-PKCS12-IV-0001
   575 END_TESTCASE    			SEC-CERTMAN-PKCS12-IV-0001
   577 
   576 
   578 /////////////////////////////////////////////////////////////////////////////////////////////////////
   577 /////////////////////////////////////////////////////////////////////////////////////////////////////
   579 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-001
   578 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-0001
   580 //!@SYMTestCaseDependencies		TestData(pkcs12_unsupportedbag.p12),ini file(corruptedalgid.ini) 
   579 //!@SYMTestCaseDependencies		TestData(pkcs12_unsupportedbag.p12),ini file(corruptedalgid.ini) 
   581 //					containing the data.
   580 //					containing the data.
   582 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which authsafe contains 
   581 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which authsafe contains 
   583 //					content	type other than data and signedData.
   582 //					content	type other than data and signedData.
   584 //!@SYMPREQ                   		PREQ1054 
   583 //!@SYMPREQ                   		PREQ1054 
   588 //					2.Extract the authsafe structure.
   587 //					2.Extract the authsafe structure.
   589 //					3.Verify the error code with the expected error in the ini file.
   588 //					3.Verify the error code with the expected error in the ini file.
   590 //!@SYMTestExpectedResults		The authsafe should contain data or signedData.
   589 //!@SYMTestExpectedResults		The authsafe should contain data or signedData.
   591 //!@SYMTestType				UT
   590 //!@SYMTestType				UT
   592 /////////////////////////////////////////////////////////////////////////////////////////////////////
   591 /////////////////////////////////////////////////////////////////////////////////////////////////////
   593 START_TESTCASE  SEC-CERTMAN-PKCS12-AU-001
   592 START_TESTCASE 				SEC-CERTMAN-PKCS12-AU-0001
   594 
   593 
   595 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedalgid.ini
   594 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedalgid.ini
   596 
   595 
   597 END_TESTCASE    SEC-CERTMAN-PKCS12-AU-001
   596 END_TESTCASE    			SEC-CERTMAN-PKCS12-AU-0001
   598 
   597 
   599 /////////////////////////////////////////////////////////////////////////////////////////////////////
   598 /////////////////////////////////////////////////////////////////////////////////////////////////////
   600 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-002
   599 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-0002
   601 //!@SYMTestCaseDependencies		TestData(pkcs12_changetag.p12),ini file(changetag.ini) containing the data. 
   600 //!@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 
   601 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which authsafe contentdata 
   603 //					tag is otherthan OCTETSTRING.
   602 //					tag is otherthan OCTETSTRING.
   604 //!@SYMPREQ                   		PREQ1054 
   603 //!@SYMPREQ                   		PREQ1054 
   605 //!@SYMTestStatus			Implemented
   604 //!@SYMTestStatus			Implemented
   608 //					2.Extract the authsafe structure.
   607 //					2.Extract the authsafe structure.
   609 //					3.Verify the error code with the expected error in the ini file.
   608 //					3.Verify the error code with the expected error in the ini file.
   610 //!@SYMTestExpectedResults		The authsafe contentdata tag should be OCTETSTRING.
   609 //!@SYMTestExpectedResults		The authsafe contentdata tag should be OCTETSTRING.
   611 //!@SYMTestType				UT
   610 //!@SYMTestType				UT
   612 /////////////////////////////////////////////////////////////////////////////////////////////////////
   611 /////////////////////////////////////////////////////////////////////////////////////////////////////
   613 START_TESTCASE	SEC-CERTMAN-PKCS12-AU-002
   612 START_TESTCASE				SEC-CERTMAN-PKCS12-AU-0002
   614 
   613 
   615 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\changetag.ini
   614 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\changetag.ini
   616 
   615 
   617 END_TESTCASE	SEC-CERTMAN-PKCS12-AU-002
   616 END_TESTCASE				SEC-CERTMAN-PKCS12-AU-0002
   618 
   617 
   619 /////////////////////////////////////////////////////////////////////////////////////////////////////
   618 /////////////////////////////////////////////////////////////////////////////////////////////////////
   620 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-003
   619 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-0003
   621 //!@SYMTestCaseDependencies		TestData(pkcs12_authsafe_notasequence.p12),ini file(authsafe_notasequence.ini) 
   620 //!@SYMTestCaseDependencies		TestData(pkcs12_authsafe_notasequence.p12),ini file(authsafe_notasequence.ini) 
   622 //					containing the data. 
   621 //					containing the data. 
   623 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which authsafe structure tag 
   622 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which authsafe structure tag 
   624 //					otherthan Sequence.
   623 //					otherthan Sequence.
   625 //!@SYMPREQ                   		PREQ1054
   624 //!@SYMPREQ                   		PREQ1054
   629 //					2.Extract the authsafe structure.
   628 //					2.Extract the authsafe structure.
   630 //					3.Verify the error code with the expected error in the ini file.
   629 //					3.Verify the error code with the expected error in the ini file.
   631 //!@SYMTestExpectedResults		The authsafe contentdata tag should be OCTETSTRING.
   630 //!@SYMTestExpectedResults		The authsafe contentdata tag should be OCTETSTRING.
   632 //!@SYMTestType				UT
   631 //!@SYMTestType				UT
   633 /////////////////////////////////////////////////////////////////////////////////////////////////////
   632 /////////////////////////////////////////////////////////////////////////////////////////////////////
   634 START_TESTCASE	SEC-CERTMAN-PKCS12-AU-003
   633 START_TESTCASE				SEC-CERTMAN-PKCS12-AU-0003
   635 
   634 
   636 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_notasequence.ini
   635 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_notasequence.ini
   637 
   636 
   638 END_TESTCASE	SEC-CERTMAN-PKCS12-AU-003
   637 END_TESTCASE				SEC-CERTMAN-PKCS12-AU-0003
   639 
   638 
   640 /////////////////////////////////////////////////////////////////////////////////////////////////////
   639 /////////////////////////////////////////////////////////////////////////////////////////////////////
   641 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-004
   640 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-0004
   642 //!@SYMTestCaseDependencies		TestData(pkcs12_authsafe_oidnotoctetstring.p12),ini file
   641 //!@SYMTestCaseDependencies		TestData(pkcs12_authsafe_oidnotoctetstring.p12),ini file
   643 //					(authsafe_oidnotoctetstring.ini) containing the data. 
   642 //					(authsafe_oidnotoctetstring.ini) containing the data. 
   644 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which PFX structure 
   643 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which PFX structure 
   645 //					authsafe contentType tag is not a OctetString
   644 //					authsafe contentType tag is not a OctetString
   646 //!@SYMPREQ                   		PREQ1054
   645 //!@SYMPREQ                   		PREQ1054
   650 //					2.Extract the authsafe structure.
   649 //					2.Extract the authsafe structure.
   651 //					3.Verify the Error code with the Expected Error in the ini file.
   650 //					3.Verify the Error code with the Expected Error in the ini file.
   652 //!@SYMTestExpectedResults		The authsafe contentType tag should be Object ID.
   651 //!@SYMTestExpectedResults		The authsafe contentType tag should be Object ID.
   653 //!@SYMTestType				UT
   652 //!@SYMTestType				UT
   654 /////////////////////////////////////////////////////////////////////////////////////////////////////
   653 /////////////////////////////////////////////////////////////////////////////////////////////////////
   655 START_TESTCASE	SEC-CERTMAN-PKCS12-AU-004
   654 START_TESTCASE				SEC-CERTMAN-PKCS12-AU-0004
   656 
   655 
   657 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_oidnotoctetstring.ini
   656 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_oidnotoctetstring.ini
   658 
   657 
   659 END_TESTCASE	SEC-CERTMAN-PKCS12-AU-004
   658 END_TESTCASE				SEC-CERTMAN-PKCS12-AU-0004
   660 
   659 
   661 /////////////////////////////////////////////////////////////////////////////////////////////////////
   660 /////////////////////////////////////////////////////////////////////////////////////////////////////
   662 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-005
   661 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-0005
   663 //!@SYMTestCaseDependencies		TestData(pkcs12_authsafe_contentnotoctetstring.p12),ini file
   662 //!@SYMTestCaseDependencies		TestData(pkcs12_authsafe_contentnotoctetstring.p12),ini file
   664 //					(authsafe_contentnotoctetstring.ini) containing the data. 
   663 //					(authsafe_contentnotoctetstring.ini) containing the data. 
   665 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which PFX structure 
   664 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which PFX structure 
   666 //					authsafe contentData is not a OctetString.
   665 //					authsafe contentData is not a OctetString.
   667 //!@SYMPREQ                   		PREQ1054
   666 //!@SYMPREQ                   		PREQ1054
   671 //					2.Extract the authsafe structure.
   670 //					2.Extract the authsafe structure.
   672 //					3.Verify the Error code with the Expected Error in the INI file.
   671 //					3.Verify the Error code with the Expected Error in the INI file.
   673 //!@SYMTestExpectedResults		The authsafe contentType tag should be Object ID.
   672 //!@SYMTestExpectedResults		The authsafe contentType tag should be Object ID.
   674 //!@SYMTestType				UT
   673 //!@SYMTestType				UT
   675 /////////////////////////////////////////////////////////////////////////////////////////////////////
   674 /////////////////////////////////////////////////////////////////////////////////////////////////////
   676 START_TESTCASE	SEC-CERTMAN-PKCS12-AU-005
   675 START_TESTCASE				SEC-CERTMAN-PKCS12-AU-0005
   677 
   676 
   678 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_contentnotoctetstring.ini
   677 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_contentnotoctetstring.ini
   679 
   678 
   680 END_TESTCASE	SEC-CERTMAN-PKCS12-AU-005
   679 END_TESTCASE				SEC-CERTMAN-PKCS12-AU-0005
   681 
   680 
   682 
   681 
   683 /////////////////////////////////////////////////////////////////////////////////////////////////////
   682 /////////////////////////////////////////////////////////////////////////////////////////////////////
   684 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-006
   683 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-0006
   685 //!@SYMTestCaseDependencies		TestData(pkcs12_authsafe_contentnotsequence.p12),ini file
   684 //!@SYMTestCaseDependencies		TestData(pkcs12_authsafe_contentnotsequence.p12),ini file
   686 //					(authsafe_contentnotsequence.ini) containing the data. 
   685 //					(authsafe_contentnotsequence.ini) containing the data. 
   687 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which PFX structure 
   686 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which PFX structure 
   688 //					authSafe contentinfo not a sequence
   687 //					authSafe contentinfo not a sequence
   689 //!@SYMPREQ                   		PREQ1054
   688 //!@SYMPREQ                   		PREQ1054
   693 //					2.Extract the authsafe structure.
   692 //					2.Extract the authsafe structure.
   694 //					3.Verify the Error code with the Expected Error in the INI file.
   693 //					3.Verify the Error code with the Expected Error in the INI file.
   695 //!@SYMTestExpectedResults		The authsafe contentinfo tag should be Sequence.
   694 //!@SYMTestExpectedResults		The authsafe contentinfo tag should be Sequence.
   696 //!@SYMTestType				UT
   695 //!@SYMTestType				UT
   697 /////////////////////////////////////////////////////////////////////////////////////////////////////
   696 /////////////////////////////////////////////////////////////////////////////////////////////////////
   698 START_TESTCASE	SEC-CERTMAN-PKCS12-AU-006
   697 START_TESTCASE				SEC-CERTMAN-PKCS12-AU-0006
   699 
   698 
   700 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_contentnotsequence.ini
   699 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\authsafe_contentnotsequence.ini
   701 
   700 
   702 END_TESTCASE	SEC-CERTMAN-PKCS12-AU-006
   701 END_TESTCASE				SEC-CERTMAN-PKCS12-AU-0006
   703 
   702 
   704 /////////////////////////////////////////////////////////////////////////////////////////////////////
   703 /////////////////////////////////////////////////////////////////////////////////////////////////////
   705 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-007
   704 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-AU-0007
   706 //!@SYMTestCaseDependencies		TestData(pkcs12_unsupported_contenttype.p12),ini file
   705 //!@SYMTestCaseDependencies		TestData(pkcs12_unsupported_contenttype.p12),ini file
   707 //					(unsupported_contenttype.ini) containing the data.
   706 //					(unsupported_contenttype.ini) containing the data.
   708 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   707 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   709 //					invalid encoded PKCS12 data in which the PFX structure contains 
   708 //					invalid encoded PKCS12 data in which the PFX structure contains 
   710 //					other than public and password integrity mode.
   709 //					other than public and password integrity mode.
   716 //					3.Check whether the content Type is Plain Data or SignedData.
   715 //					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.
   716 //					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.
   717 //!@SYMTestExpectedResults		The content type must be plain data or signed data.
   719 //!@SYMTestType				UT
   718 //!@SYMTestType				UT
   720 /////////////////////////////////////////////////////////////////////////////////////////////////////
   719 /////////////////////////////////////////////////////////////////////////////////////////////////////
   721 START_TESTCASE	SEC-CERTMAN-PKCS12-AU-007
   720 START_TESTCASE				SEC-CERTMAN-PKCS12-AU-0007
   722 
   721 
   723 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\unsupported_contenttype.ini
   722 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\unsupported_contenttype.ini
   724 
   723 
   725 END_TESTCASE	SEC-CERTMAN-PKCS12-AU-007
   724 END_TESTCASE				SEC-CERTMAN-PKCS12-AU-0007
   726 
   725 
   727 /////////////////////////////////////////////////////////////////////////////////////////////////////
   726 /////////////////////////////////////////////////////////////////////////////////////////////////////
   728 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-001
   727 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0001
   729 //!@SYMTestCaseDependencies		TestData(pkcs12_digestalg1.p12),ini file(corruptdigestalg_case1.ini) 
   728 //!@SYMTestCaseDependencies		TestData(pkcs12_digestalg1.p12),ini file(corruptdigestalg_case1.ini) 
   730 //					containing the data.
   729 //					containing the data.
   731 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data which contains algorithm OID 
   730 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data which contains algorithm OID 
   732 //					MD5,But SHA1 is used to get the Digest.
   731 //					MD5,But SHA1 is used to get the Digest.
   733 //!@SYMPREQ                   		PREQ1054
   732 //!@SYMPREQ                   		PREQ1054
   740 //					4.Verify the Error code with the Expected Error in the INI file.
   739 //					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
   740 //!@SYMTestExpectedResults		The macData structure should contain digest algorithm SHA1 and for verify
   742 //					integrity only SHA1 is supported.
   741 //					integrity only SHA1 is supported.
   743 //!@SYMTestType				UT
   742 //!@SYMTestType				UT
   744 /////////////////////////////////////////////////////////////////////////////////////////////////////
   743 /////////////////////////////////////////////////////////////////////////////////////////////////////
   745 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-001
   744 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0001
   746 
   745 
   747 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptdigestalg_case1.ini
   746 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptdigestalg_case1.ini
   748 
   747 
   749 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-001
   748 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0001
   750 
   749 
   751 /////////////////////////////////////////////////////////////////////////////////////////////////////
   750 /////////////////////////////////////////////////////////////////////////////////////////////////////
   752 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-002
   751 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0002
   753 //!@SYMTestCaseDependencies		TestData(pkcs12_digestalg2.p12),ini file(corruptdigestalg_case2.ini) 
   752 //!@SYMTestCaseDependencies		TestData(pkcs12_digestalg2.p12),ini file(corruptdigestalg_case2.ini) 
   754 //					containing the data.
   753 //					containing the data.
   755 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data which contains the digest
   754 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data which contains the digest
   756 //					algorithm which is not supported.
   755 //					algorithm which is not supported.
   757 //!@SYMPREQ                   		PREQ1054
   756 //!@SYMPREQ                   		PREQ1054
   763 //					  PKCS12 file.
   762 //					  PKCS12 file.
   764 //					4.Verify the Error code with the Expected Error in the INI file.
   763 //					4.Verify the Error code with the Expected Error in the INI file.
   765 //!@SYMTestExpectedResults		The macData structure should contain digest algorithm SHA1.
   764 //!@SYMTestExpectedResults		The macData structure should contain digest algorithm SHA1.
   766 //!@SYMTestType				UT
   765 //!@SYMTestType				UT
   767 /////////////////////////////////////////////////////////////////////////////////////////////////////
   766 /////////////////////////////////////////////////////////////////////////////////////////////////////
   768 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-002
   767 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0002
   769 
   768 
   770 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptdigestalg_case2.ini
   769 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptdigestalg_case2.ini
   771 
   770 
   772 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-002
   771 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0002
   773 
   772 
   774 /////////////////////////////////////////////////////////////////////////////////////////////////////
   773 /////////////////////////////////////////////////////////////////////////////////////////////////////
   775 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-003
   774 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0003
   776 //!@SYMTestCaseDependencies		TestData(pkcs12_emptydigest.p12),ini file(emptydigest.ini) containing the 
   775 //!@SYMTestCaseDependencies		TestData(pkcs12_emptydigest.p12),ini file(emptydigest.ini) containing the 
   777 //					data.
   776 //					data.
   778 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which digest is not present.
   777 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which digest is not present.
   779 //!@SYMPREQ                   		PREQ1054
   778 //!@SYMPREQ                   		PREQ1054
   780 //!@SYMTestStatus			Implemented
   779 //!@SYMTestStatus			Implemented
   784 //					3.Extract the DigestInfo structure and Check whether the digest is present.
   783 //					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.
   784 //					4.Verify the Error code with the Expected Error in the INI file.
   786 //!@SYMTestExpectedResults		The DigestInfo struture should contain the digest.
   785 //!@SYMTestExpectedResults		The DigestInfo struture should contain the digest.
   787 //!@SYMTestType				UT
   786 //!@SYMTestType				UT
   788 /////////////////////////////////////////////////////////////////////////////////////////////////////
   787 /////////////////////////////////////////////////////////////////////////////////////////////////////
   789 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-003
   788 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0003
   790 
   789 
   791 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\emptydigest.ini
   790 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\emptydigest.ini
   792 
   791 
   793 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-003
   792 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0003
   794 
   793 
   795 /////////////////////////////////////////////////////////////////////////////////////////////////////
   794 /////////////////////////////////////////////////////////////////////////////////////////////////////
   796 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-004
   795 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0004
   797 //!@SYMTestCaseDependencies		TestData(pkcs12_digestcorrupted.p12),ini file
   796 //!@SYMTestCaseDependencies		TestData(pkcs12_digestcorrupted.p12),ini file
   798 //					(digestcorrupted.ini) containing the data.
   797 //					(digestcorrupted.ini) containing the data.
   799 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an invalid 
   798 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an invalid 
   800 //					encoded PKCS12 data in which the PKCS7 contentinfo digest is 
   799 //					encoded PKCS12 data in which the PKCS7 contentinfo digest is 
   801 //					corrupted.
   800 //					corrupted.
   810 //					5.Verify the Error code with the Expected Error in the INI file.
   809 //					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
   810 //!@SYMTestExpectedResults		The DigestInfo struture should contain digest to verify the integrity of
   812 //					the PKCS12 file.
   811 //					the PKCS12 file.
   813 //!@SYMTestType				UT
   812 //!@SYMTestType				UT
   814 /////////////////////////////////////////////////////////////////////////////////////////////////////
   813 /////////////////////////////////////////////////////////////////////////////////////////////////////
   815 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-004
   814 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0004
   816 
   815 
   817 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\digestcorrupted.ini
   816 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\digestcorrupted.ini
   818 
   817 
   819 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-004
   818 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0004
   820 
   819 
   821 /////////////////////////////////////////////////////////////////////////////////////////////////////
   820 /////////////////////////////////////////////////////////////////////////////////////////////////////
   822 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-005
   821 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0005
   823 //!@SYMTestCaseDependencies		TestData(pkcs12_macdatanotasequence.p12),ini file
   822 //!@SYMTestCaseDependencies		TestData(pkcs12_macdatanotasequence.p12),ini file
   824 //					(macdatanotasequence.ini) containing the data.
   823 //					(macdatanotasequence.ini) containing the data.
   825 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   824 //!@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.
   825 //					invalid encoded PKCS12 data in which the macdata is not a sequence.
   827 //!@SYMPREQ                   		PREQ1054
   826 //!@SYMPREQ                   		PREQ1054
   832 //					3.Check whether the macData is a Sequence.
   831 //					3.Check whether the macData is a Sequence.
   833 //					4.Verify the Error code with the Expected Error in the INI file.
   832 //					4.Verify the Error code with the Expected Error in the INI file.
   834 //!@SYMTestExpectedResults		The MacData struture must be a sequence.
   833 //!@SYMTestExpectedResults		The MacData struture must be a sequence.
   835 //!@SYMTestType				UT
   834 //!@SYMTestType				UT
   836 /////////////////////////////////////////////////////////////////////////////////////////////////////
   835 /////////////////////////////////////////////////////////////////////////////////////////////////////
   837 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-005
   836 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0005
   838 
   837 
   839 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdatanotasequence.ini
   838 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdatanotasequence.ini
   840 
   839 
   841 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-005
   840 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0005
   842 
   841 
   843 /////////////////////////////////////////////////////////////////////////////////////////////////////
   842 /////////////////////////////////////////////////////////////////////////////////////////////////////
   844 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-006
   843 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0006
   845 //!@SYMTestCaseDependencies		TestData(pkcs12_macsaltnotoctetstring.p12),ini file
   844 //!@SYMTestCaseDependencies		TestData(pkcs12_macsaltnotoctetstring.p12),ini file
   846 //					(macsaltnotasequence.ini) containing the data.
   845 //					(macsaltnotasequence.ini) containing the data.
   847 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   846 //!@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.
   847 //					invalid encoded PKCS12 data in which the macSalt is not a sequence.
   849 //!@SYMPREQ                   		PREQ1054
   848 //!@SYMPREQ                   		PREQ1054
   854 //					3.Check whether the macSalt present in the macData is a sequence.
   853 //					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.
   854 //					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.
   855 //!@SYMTestExpectedResults		The MacSalt present in the MacData struture must be a sequence.
   857 //!@SYMTestType				UT
   856 //!@SYMTestType				UT
   858 /////////////////////////////////////////////////////////////////////////////////////////////////////
   857 /////////////////////////////////////////////////////////////////////////////////////////////////////
   859 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-006
   858 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0006
   860 
   859 
   861 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macsaltnotasequence.ini
   860 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macsaltnotasequence.ini
   862 
   861 
   863 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-006
   862 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0006
   864 
   863 
   865 /////////////////////////////////////////////////////////////////////////////////////////////////////
   864 /////////////////////////////////////////////////////////////////////////////////////////////////////
   866 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-007
   865 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0007
   867 //!@SYMTestCaseDependencies		TestData(pkcs12_digestalgorithmnotasequence.p12),ini file
   866 //!@SYMTestCaseDependencies		TestData(pkcs12_digestalgorithmnotasequence.p12),ini file
   868 //					(digestalgorithmnotasequence.ini) containing the data.
   867 //					(digestalgorithmnotasequence.ini) containing the data.
   869 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   868 //!@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 
   869 //					invalid encoded PKCS12 data in which the PKCS7 digest algorithm is not 
   871 //					a sequence.
   870 //					a sequence.
   877 //					3.Check whether the digest algorithm present in the digestInfo is a sequence.
   876 //					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.
   877 //					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.
   878 //!@SYMTestExpectedResults		The digest algorithm present in the digestInfo structure must be a Sequence.
   880 //!@SYMTestType				UT
   879 //!@SYMTestType				UT
   881 /////////////////////////////////////////////////////////////////////////////////////////////////////
   880 /////////////////////////////////////////////////////////////////////////////////////////////////////
   882 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-007
   881 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0007
   883 
   882 
   884 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\digestalgorithmnotasequence.ini
   883 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\digestalgorithmnotasequence.ini
   885 
   884 
   886 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-007
   885 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0007
   887 
   886 
   888 /////////////////////////////////////////////////////////////////////////////////////////////////////
   887 /////////////////////////////////////////////////////////////////////////////////////////////////////
   889 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-008
   888 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0008
   890 //!@SYMTestCaseDependencies		TestData(pkcs12_digestinfonotasequence.p12),ini file
   889 //!@SYMTestCaseDependencies		TestData(pkcs12_digestinfonotasequence.p12),ini file
   891 //					(digestinfonotasequence.ini) containing the data.
   890 //					(digestinfonotasequence.ini) containing the data.
   892 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   891 //!@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 
   892 //					invalid encoded PKCS12 data in which the PKCS12 mac is not a 
   894 //					sequence.
   893 //					sequence.
   900 //					3.Check whether the digestinfo structure present in the macData is a sequence.
   899 //					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.
   900 //					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.
   901 //!@SYMTestExpectedResults		The digestinfo structure present in the macData must be a sequence.
   903 //!@SYMTestType				UT
   902 //!@SYMTestType				UT
   904 /////////////////////////////////////////////////////////////////////////////////////////////////////
   903 /////////////////////////////////////////////////////////////////////////////////////////////////////
   905 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-008
   904 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0008
   906 
   905 
   907 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\digestinfonotasequence.ini
   906 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\digestinfonotasequence.ini
   908 
   907 
   909 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-008
   908 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0008
   910 
   909 	
   911 /////////////////////////////////////////////////////////////////////////////////////////////////////
   910 /////////////////////////////////////////////////////////////////////////////////////////////////////
   912 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-009
   911 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0009
   913 //!@SYMTestCaseDependencies		TestData(pkcs12_macdata_nosalt_noiteration.p12),ini file
   912 //!@SYMTestCaseDependencies		TestData(pkcs12_macdata_nosalt_noiteration.p12),ini file
   914 //					(macdata_nosalt_noiteration.ini) containing the data.
   913 //					(macdata_nosalt_noiteration.ini) containing the data.
   915 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   914 //!@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 
   915 //					invalid encoded PKCS12 data in which the macdata is present with no 
   917 //					salt and iteration count.
   916 //					salt and iteration count.
   925 //					4.Verify the Error code with the Expected Error in the INI file.
   924 //					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 
   925 //!@SYMTestExpectedResults		The MacData struture must contain macSalt and iteration count to verify 
   927 //					the integrity of the PKCS12 file.
   926 //					the integrity of the PKCS12 file.
   928 //!@SYMTestType				UT
   927 //!@SYMTestType				UT
   929 /////////////////////////////////////////////////////////////////////////////////////////////////////
   928 /////////////////////////////////////////////////////////////////////////////////////////////////////
   930 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-009
   929 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0009
   931 
   930 
   932 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdata_nosalt_noiteration.ini
   931 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdata_nosalt_noiteration.ini
   933 
   932 
   934 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-009
   933 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0009
   935 
   934 
   936 /////////////////////////////////////////////////////////////////////////////////////////////////////
   935 /////////////////////////////////////////////////////////////////////////////////////////////////////
   937 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-010
   936 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0010
   938 //!@SYMTestCaseDependencies		TestData(pkcs12_digestalgnotsha1.p12),ini file
   937 //!@SYMTestCaseDependencies		TestData(pkcs12_digestalgnotsha1.p12),ini file
   939 //					(macdataverifyintegritydigestalgnotsha1.ini) containing the data.
   938 //					(macdataverifyintegritydigestalgnotsha1.ini) containing the data.
   940 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   939 //!@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 
   940 //					invalid encoded PKCS12 data in which the digest alg is other than 
   942 //					SHA1.
   941 //					SHA1.
   948 //					3.Extract the digestInfo structure and Check whether the digest algorithm is SHA1.
   947 //					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.
   948 //					4.Verify the Error code with the Expected Error in the INI file.
   950 //!@SYMTestExpectedResults		The digestInfo structure must contain SHA1 digest algorithm.
   949 //!@SYMTestExpectedResults		The digestInfo structure must contain SHA1 digest algorithm.
   951 //!@SYMTestType				UT
   950 //!@SYMTestType				UT
   952 /////////////////////////////////////////////////////////////////////////////////////////////////////
   951 /////////////////////////////////////////////////////////////////////////////////////////////////////
   953 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-010
   952 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0010
   954 
   953 
   955 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdataverifyintegritydigestalgnotsha1.ini
   954 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdataverifyintegritydigestalgnotsha1.ini
   956 
   955 
   957 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-010
   956 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0010
   958 
   957 
   959 /////////////////////////////////////////////////////////////////////////////////////////////////////
   958 /////////////////////////////////////////////////////////////////////////////////////////////////////
   960 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-011
   959 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0011
   961 //!@SYMTestCaseDependencies		TestData(pkcs12_macdata_iterationnotinteger.p12),ini file
   960 //!@SYMTestCaseDependencies		TestData(pkcs12_macdata_iterationnotinteger.p12),ini file
   962 //					(macdata_iterationnotinteger.ini) containing the data.
   961 //					(macdata_iterationnotinteger.ini) containing the data.
   963 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   962 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   964 //					invalid encoded PKCS12 data in which the macdata iteration count tag 
   963 //					invalid encoded PKCS12 data in which the macdata iteration count tag 
   965 //					is not a integer.
   964 //					is not a integer.
   971 //					3.Check whether the macdata iteration count tag type is Integer.
   970 //					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.
   971 //					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.
   972 //!@SYMTestExpectedResults		The MacData struture iteration count tag type should be Integer.
   974 //!@SYMTestType				UT
   973 //!@SYMTestType				UT
   975 /////////////////////////////////////////////////////////////////////////////////////////////////////
   974 /////////////////////////////////////////////////////////////////////////////////////////////////////
   976 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-011
   975 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0011
   977 
   976 
   978 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdata_iterationnotinteger.ini
   977 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdata_iterationnotinteger.ini
   979 
   978 
   980 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-011
   979 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0011
   981 
   980 
   982 /////////////////////////////////////////////////////////////////////////////////////////////////////
   981 /////////////////////////////////////////////////////////////////////////////////////////////////////
   983 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-012
   982 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-MA-0012
   984 //!@SYMTestCaseDependencies		TestData(pkcs12_macdata_negiteration.p12),ini file
   983 //!@SYMTestCaseDependencies		TestData(pkcs12_macdata_negiteration.p12),ini file
   985 //					(macdata_negiteration.ini) containing the data.
   984 //					(macdata_negiteration.ini) containing the data.
   986 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
   985 //!@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.
   986 //					invalid encoded PKCS12 data in which the macdata iteration count is 			//					negative.
   988 //!@SYMPREQ                   		PREQ1054
   987 //!@SYMPREQ                   		PREQ1054
   993 //					3.Check whether the macData iteration count is greater than 0.
   992 //					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.
   993 //					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.
   994 //!@SYMTestExpectedResults		The MacData struture iteration count should be greater than 0.
   996 //!@SYMTestType				UT
   995 //!@SYMTestType				UT
   997 /////////////////////////////////////////////////////////////////////////////////////////////////////
   996 /////////////////////////////////////////////////////////////////////////////////////////////////////
   998 START_TESTCASE	SEC-CERTMAN-PKCS12-MA-012
   997 START_TESTCASE				SEC-CERTMAN-PKCS12-MA-0012
   999 
   998 
  1000 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdata_negiteration.ini
   999 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\macdata_negiteration.ini
  1001 
  1000 
  1002 END_TESTCASE	SEC-CERTMAN-PKCS12-MA-012
  1001 END_TESTCASE				SEC-CERTMAN-PKCS12-MA-0012
  1003 
  1002 
  1004 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1003 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1005 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PFX-001
  1004 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PFX-0001
  1006 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedversion.p12),ini file(corruptedversion.ini) 
  1005 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedversion.p12),ini file(corruptedversion.ini) 
  1007 //					containing the data.
  1006 //					containing the data.
  1008 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data which contains wrong PFX version
  1007 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data which contains wrong PFX version
  1009 //					number.
  1008 //					number.
  1010 //!@SYMPREQ                   		PREQ1054
  1009 //!@SYMPREQ                   		PREQ1054
  1015 //					3.Check whether the PFX structure contains version number 3.
  1014 //					3.Check whether the PFX structure contains version number 3.
  1016 //					3.Verify the Error code with the Expected Error in the INI file.
  1015 //					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.
  1016 //!@SYMTestExpectedResults		The PFX structure version number must be equal to 3.
  1018 //!@SYMTestType				UT
  1017 //!@SYMTestType				UT
  1019 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1018 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1020 START_TESTCASE	SEC-CERTMAN-PKCS12-PFX-001
  1019 START_TESTCASE				SEC-CERTMAN-PKCS12-PFX-0001
  1021 
  1020 
  1022 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedversion.ini
  1021 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedversion.ini
  1023 
  1022 
  1024 END_TESTCASE	SEC-CERTMAN-PKCS12-PFX-001
  1023 END_TESTCASE				SEC-CERTMAN-PKCS12-PFX-0001
  1025 
  1024 
  1026 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1025 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1027 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PFX-002
  1026 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PFX-0002
  1028 //!@SYMTestCaseDependencies		TestData(pkcs12_pfx_notasequence.p12),ini file
  1027 //!@SYMTestCaseDependencies		TestData(pkcs12_pfx_notasequence.p12),ini file
  1029 //					(pfx_notasequence.ini) containing the data.
  1028 //					(pfx_notasequence.ini) containing the data.
  1030 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which the PFX structure 
  1029 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which the PFX structure 
  1031 //					is not a sequence.
  1030 //					is not a sequence.
  1032 //!@SYMPREQ                   		PREQ1054
  1031 //!@SYMPREQ                   		PREQ1054
  1036 //					2.Check whether the PFX structure is a sequence.
  1035 //					2.Check whether the PFX structure is a sequence.
  1037 //					3.Verify the Error code with the Expected Error in the INI file.
  1036 //					3.Verify the Error code with the Expected Error in the INI file.
  1038 //!@SYMTestExpectedResults		The PFX structure must be a sequence.
  1037 //!@SYMTestExpectedResults		The PFX structure must be a sequence.
  1039 //!@SYMTestType				UT
  1038 //!@SYMTestType				UT
  1040 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1039 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1041 START_TESTCASE	SEC-CERTMAN-PKCS12-PFX-002
  1040 START_TESTCASE				SEC-CERTMAN-PKCS12-PFX-0002
  1042 
  1041 
  1043 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pfx_notasequence.ini
  1042 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pfx_notasequence.ini
  1044 
  1043 
  1045 END_TESTCASE	SEC-CERTMAN-PKCS12-PFX-002
  1044 END_TESTCASE				SEC-CERTMAN-PKCS12-PFX-0002
  1046 
  1045 
  1047 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1046 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1048 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PFX-003
  1047 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PFX-0003
  1049 //!@SYMTestCaseDependencies		TestData(pkcs12_version_notinteger.p12),ini file
  1048 //!@SYMTestCaseDependencies		TestData(pkcs12_version_notinteger.p12),ini file
  1050 //					(version_notinteger.ini) containing the data.
  1049 //					(version_notinteger.ini) containing the data.
  1051 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which the PFX structure 
  1050 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data in which the PFX structure 
  1052 //					version not a Integer.
  1051 //					version not a Integer.
  1053 //!@SYMPREQ                   		PREQ1054
  1052 //!@SYMPREQ                   		PREQ1054
  1058 //					3.Check whether the PFX structure contains version number 3.
  1057 //					3.Check whether the PFX structure contains version number 3.
  1059 //					3.Verify the Error code with the Expected Error in the INI file.
  1058 //					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.
  1059 //!@SYMTestExpectedResults		The PFX structure version number must be equal to 3.
  1061 //!@SYMTestType				UT
  1060 //!@SYMTestType				UT
  1062 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1061 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1063 START_TESTCASE	SEC-CERTMAN-PKCS12-PFX-003
  1062 START_TESTCASE				SEC-CERTMAN-PKCS12-PFX-0003
  1064 
  1063 
  1065 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\version_notinteger.ini
  1064 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\version_notinteger.ini
  1066 
  1065 
  1067 END_TESTCASE	SEC-CERTMAN-PKCS12-PFX-003
  1066 END_TESTCASE				SEC-CERTMAN-PKCS12-PFX-0003
  1068 
  1067 
  1069 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1068 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1070 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PFX-004
  1069 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-PFX-0004
  1071 //!@SYMTestCaseDependencies		TestData(pkcs12_pfx_missingcontents1.p12),ini file
  1070 //!@SYMTestCaseDependencies		TestData(pkcs12_pfx_missingcontents1.p12),ini file
  1072 //					(pfx_missingcontents1.ini) containing the data.
  1071 //					(pfx_missingcontents1.ini) containing the data.
  1073 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data which contains only PFX version
  1072 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data which contains only PFX version
  1074 //					number.
  1073 //					number.
  1075 //!@SYMPREQ                   		PREQ1054
  1074 //!@SYMPREQ                   		PREQ1054
  1081 //					  structure.
  1080 //					  structure.
  1082 //					4.Verify the Error code with the Expected Error in the INI file.
  1081 //					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.
  1082 //!@SYMTestExpectedResults		The PFX structure must contain version number, authsafe and macdata structure.
  1084 //!@SYMTestType				UT
  1083 //!@SYMTestType				UT
  1085 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1084 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1086 START_TESTCASE	SEC-CERTMAN-PKCS12-PFX-004
  1085 START_TESTCASE				SEC-CERTMAN-PKCS12-PFX-0004
  1087 
  1086 
  1088 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pfx_missingcontents1.ini
  1087 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\pfx_missingcontents1.ini
  1089 
  1088 
  1090 END_TESTCASE	SEC-CERTMAN-PKCS12-PFX-004
  1089 END_TESTCASE				SEC-CERTMAN-PKCS12-PFX-0004
  1091 
  1090 
  1092 
  1091 
  1093 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1092 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1094 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-001
  1093 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-0001
  1095 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedcontentiteration1.p12),ini file 				
  1094 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedcontentiteration1.p12),ini file 				
  1096 //					(corruptedencryptedconiteration_case1.ini) containing the data.
  1095 //					(corruptedencryptedconiteration_case1.ini) containing the data.
  1097 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an invalid encoded 
  1096 //!@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 
  1097 //					PKCS12 data in which iteration Count present in the EncryptedContent Info 
  1099 //					Sequence is 0.
  1098 //					Sequence is 0.
  1107 //					4.Verify the Error code with the Expected Error in the INI file.
  1106 //					4.Verify the Error code with the Expected Error in the INI file.
  1108 //!@SYMTestExpectedResults		The teration count present in the EncryptedContent info
  1107 //!@SYMTestExpectedResults		The teration count present in the EncryptedContent info
  1109 //					structure must be greater than 0.
  1108 //					structure must be greater than 0.
  1110 //!@SYMTestType				UT
  1109 //!@SYMTestType				UT
  1111 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1110 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1112 START_TESTCASE	SEC-CERTMAN-PKCS12-ED-001
  1111 START_TESTCASE				SEC-CERTMAN-PKCS12-ED-0001
  1113 
  1112 
  1114 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedconiteration_case1.ini
  1113 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedconiteration_case1.ini
  1115 
  1114 
  1116 END_TESTCASE	SEC-CERTMAN-PKCS12-ED-001
  1115 END_TESTCASE				SEC-CERTMAN-PKCS12-ED-0001
  1117 
  1116 
  1118 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1117 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1119 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-002
  1118 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-0002
  1120 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedcontentiteration2.p12),ini file 				
  1119 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedcontentiteration2.p12),ini file 				
  1121 //					(corruptedencryptedconiteration_case2.ini) containing the data.
  1120 //					(corruptedencryptedconiteration_case2.ini) containing the data.
  1122 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an invalid encoded 
  1121 //!@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 
  1122 //					PKCS12 data in which iteration Count present in the EncryptedContent Info 
  1124 //					Sequence is -ve.
  1123 //					Sequence is -ve.
  1132 //					4.Verify the Error code with the Expected Error in the INI file.
  1131 //					4.Verify the Error code with the Expected Error in the INI file.
  1133 //!@SYMTestExpectedResults		The teration count present in the EncryptedContent info
  1132 //!@SYMTestExpectedResults		The teration count present in the EncryptedContent info
  1134 //					structure must be greater than 0.
  1133 //					structure must be greater than 0.
  1135 //!@SYMTestType				UT
  1134 //!@SYMTestType				UT
  1136 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1135 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1137 START_TESTCASE	SEC-CERTMAN-PKCS12-ED-002
  1136 START_TESTCASE				SEC-CERTMAN-PKCS12-ED-0002
  1138 
  1137 
  1139 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedconiteration_case2.ini
  1138 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedconiteration_case2.ini
  1140 
  1139 
  1141 END_TESTCASE	SEC-CERTMAN-PKCS12-ED-002
  1140 END_TESTCASE				SEC-CERTMAN-PKCS12-ED-0002
  1142 
  1141 
  1143 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1142 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1144 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-003
  1143 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-0003
  1145 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedcontentversion.p12),ini file 				
  1144 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedcontentversion.p12),ini file 				
  1146 //					(corruptedencryptedconversion.ini) containing the data.
  1145 //					(corruptedencryptedconversion.ini) containing the data.
  1147 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1146 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1148 //					invalid encoded PKCS12 data in which version present in the EncryptedContent 
  1147 //					invalid encoded PKCS12 data in which version present in the EncryptedContent 
  1149 //					Info Sequence is not 0.
  1148 //					Info Sequence is not 0.
  1157 //					4.Verify the Error code with the Expected Error in the INI file.
  1156 //					4.Verify the Error code with the Expected Error in the INI file.
  1158 //!@SYMTestExpectedResults		The version number present in the EncryptedContent info
  1157 //!@SYMTestExpectedResults		The version number present in the EncryptedContent info
  1159 //					structure must be equal to 0.
  1158 //					structure must be equal to 0.
  1160 //!@SYMTestType				UT
  1159 //!@SYMTestType				UT
  1161 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1160 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1162 START_TESTCASE	SEC-CERTMAN-PKCS12-ED-003
  1161 START_TESTCASE				SEC-CERTMAN-PKCS12-ED-0003
  1163 
  1162 
  1164 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedconversion.ini
  1163 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedconversion.ini
  1165 
  1164 
  1166 END_TESTCASE	SEC-CERTMAN-PKCS12-ED-003
  1165 END_TESTCASE				SEC-CERTMAN-PKCS12-ED-0003
  1167 
  1166 
  1168 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1167 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1169 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-004
  1168 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-0004
  1170 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedusingdifferentAlg.p12),ini file 				
  1169 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedusingdifferentAlg.p12),ini file 				
  1171 //					(encryptedusingdifferentalg.ini) containing the data. 
  1170 //					(encryptedusingdifferentalg.ini) containing the data. 
  1172 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1171 //!@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 
  1172 //					invalid encoded PKCS12 data in which the algorithm used for encryption is 
  1174 //					not supported.
  1173 //					not supported.
  1180 //					3.Check whether the algorithm used for encryption is PKCS12 ides.
  1179 //					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.
  1180 //					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.
  1181 //!@SYMTestExpectedResults		The algorithm used for encryption must be supported PKCS12 ides.
  1183 //!@SYMTestType				UT
  1182 //!@SYMTestType				UT
  1184 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1183 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1185 START_TESTCASE	SEC-CERTMAN-PKCS12-ED-004
  1184 START_TESTCASE				SEC-CERTMAN-PKCS12-ED-0004
  1186 
  1185 
  1187 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encryptedusingdifferentalg.ini
  1186 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encryptedusingdifferentalg.ini
  1188 
  1187 
  1189 END_TESTCASE	SEC-CERTMAN-PKCS12-ED-004
  1188 END_TESTCASE				SEC-CERTMAN-PKCS12-ED-0004
  1190 
  1189 
  1191 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1190 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1192 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-005
  1191 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-0005
  1193 //!@SYMTestCaseDependencies		TestData(pkcs12_encrypteddataabsent.p12),ini file(encrypteddataabsent.ini) 	
  1192 //!@SYMTestCaseDependencies		TestData(pkcs12_encrypteddataabsent.p12),ini file(encrypteddataabsent.ini) 	
  1194 //					containing the data.
  1193 //					containing the data.
  1195 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an invalid encoded PKCS12 
  1194 //!@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.
  1195 //					data in which the encrypted contentdata is not present.
  1197 //!@SYMTestStatus			Implemented
  1196 //!@SYMTestStatus			Implemented
  1201 //					2.Check whether the encrypted data is present.
  1200 //					2.Check whether the encrypted data is present.
  1202 //					3.Verify the Error code with the Expected Error in the INI file.
  1201 //					3.Verify the Error code with the Expected Error in the INI file.
  1203 //!@SYMTestExpectedResults		The encrypted data must be present.
  1202 //!@SYMTestExpectedResults		The encrypted data must be present.
  1204 //!@SYMTestType				UT
  1203 //!@SYMTestType				UT
  1205 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1204 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1206 START_TESTCASE	SEC-CERTMAN-PKCS12-ED-005
  1205 START_TESTCASE				SEC-CERTMAN-PKCS12-ED-0005
  1207 
  1206 
  1208 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encrypteddataabsent.ini
  1207 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encrypteddataabsent.ini
  1209 
  1208 
  1210 END_TESTCASE	SEC-CERTMAN-PKCS12-ED-005
  1209 END_TESTCASE				SEC-CERTMAN-PKCS12-ED-0005
  1211 
  1210 
  1212 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1211 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1213 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-006
  1212 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-0006
  1214 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedSalt.p12),ini file(encrypteddatasaltcorrupted.ini) 	
  1213 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedSalt.p12),ini file(encrypteddatasaltcorrupted.ini) 	
  1215 //					containing the data.
  1214 //					containing the data.
  1216 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1215 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1217 //					invalid encoded PKCS12 data in which encrypted salt is corrupted.
  1216 //					invalid encoded PKCS12 data in which encrypted salt is corrupted.
  1218 //!@SYMTestStatus			Implemented
  1217 //!@SYMTestStatus			Implemented
  1223 //					3.Verify the Error code with the Expected Error in the INI file.
  1222 //					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 
  1223 //!@SYMTestExpectedResults		The encrypted salt present in the encrypted data structure must be correct 
  1225 //					in order to decrypt the data.
  1224 //					in order to decrypt the data.
  1226 //!@SYMTestType				UT
  1225 //!@SYMTestType				UT
  1227 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1226 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1228 START_TESTCASE	SEC-CERTMAN-PKCS12-ED-006
  1227 START_TESTCASE				SEC-CERTMAN-PKCS12-ED-0006
  1229 
  1228 
  1230 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encrypteddatasaltcorrupted.ini
  1229 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encrypteddatasaltcorrupted.ini
  1231 
  1230 
  1232 END_TESTCASE	SEC-CERTMAN-PKCS12-ED-006
  1231 END_TESTCASE				SEC-CERTMAN-PKCS12-ED-0006
  1233 
  1232 
  1234 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1233 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1235 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-007
  1234 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-0007
  1236 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedcontentabsent.p12),ini file
  1235 //!@SYMTestCaseDependencies		TestData(pkcs12_encryptedcontentabsent.p12),ini file
  1237 //					(encryptedcontentabsent.ini) containing the data.
  1236 //					(encryptedcontentabsent.ini) containing the data.
  1238 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1237 //!@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.
  1238 //					invalid encoded PKCS12 data in which the encrypted contentdata is not present.
  1240 //!@SYMTestStatus			Implemented
  1239 //!@SYMTestStatus			Implemented
  1246 //					  Structure.
  1245 //					  Structure.
  1247 //					4.Verify the Error code with the Expected Error in the INI file.
  1246 //					4.Verify the Error code with the Expected Error in the INI file.
  1248 //!@SYMTestExpectedResults		The encrypted content data is optional, Check for NULL.
  1247 //!@SYMTestExpectedResults		The encrypted content data is optional, Check for NULL.
  1249 //!@SYMTestType				UT
  1248 //!@SYMTestType				UT
  1250 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1249 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1251 START_TESTCASE	SEC-CERTMAN-PKCS12-ED-007
  1250 START_TESTCASE				SEC-CERTMAN-PKCS12-ED-0007
  1252 
  1251 
  1253 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encryptedcontentabsent.ini
  1252 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\encryptedcontentabsent.ini
  1254 
  1253 
  1255 END_TESTCASE	SEC-CERTMAN-PKCS12-ED-007
  1254 END_TESTCASE				SEC-CERTMAN-PKCS12-ED-0007
  1256 
  1255 
  1257 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1256 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1258 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-008
  1257 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-ED-0008
  1259 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedencryptedcontent.p12),ini file
  1258 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedencryptedcontent.p12),ini file
  1260 //					(corruptedencryptedcontent.ini) containing the data.
  1259 //					(corruptedencryptedcontent.ini) containing the data.
  1261 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1260 //!@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.
  1261 //					invalid encoded PKCS12 data in which the encrypted content data is corrupted.
  1263 //!@SYMTestStatus			Implemented
  1262 //!@SYMTestStatus			Implemented
  1269 //					  Structure. 
  1268 //					  Structure. 
  1270 //					4.Verify the Error code with the Expected Error in the INI file.
  1269 //					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.
  1270 //!@SYMTestExpectedResults		The Encrypted Content Data must be correct to decrypt the data.
  1272 //!@SYMTestType				UT
  1271 //!@SYMTestType				UT
  1273 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1272 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1274 START_TESTCASE	SEC-CERTMAN-PKCS12-ED-008
  1273 START_TESTCASE				SEC-CERTMAN-PKCS12-ED-0008
  1275 
  1274 
  1276 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedcontent.ini
  1275 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedencryptedcontent.ini
  1277 
  1276 
  1278 END_TESTCASE	SEC-CERTMAN-PKCS12-ED-008
  1277 END_TESTCASE				SEC-CERTMAN-PKCS12-ED-0008
  1279 
  1278 
  1280 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1279 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1281 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-001
  1280 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0001
  1282 //!@SYMTestCaseDependencies		TestData(pkcs12_unsupportedContentInfo.p12),ini file 				
  1281 //!@SYMTestCaseDependencies		TestData(pkcs12_unsupportedContentInfo.p12),ini file 				
  1283 //					(contentinfotypeunsupported.ini) containing the data.
  1282 //					(contentinfotypeunsupported.ini) containing the data.
  1284 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1283 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1285 //					invalid encoded PKCS12 data which contains the contentType 8 which is 
  1284 //					invalid encoded PKCS12 data which contains the contentType 8 which is 
  1286 //					not supported.
  1285 //					not supported.
  1293 //					4.Verify the Error code with the Expected Error in the INI file.
  1292 //					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
  1293 //!@SYMTestExpectedResults		The content Type present in the contentInfo structure must be Data
  1295 //					or SignedData.
  1294 //					or SignedData.
  1296 //!@SYMTestType				UT
  1295 //!@SYMTestType				UT
  1297 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1296 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1298 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-001
  1297 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0001
  1299 
  1298 
  1300 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\contentinfotypeunsupported.ini
  1299 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\contentinfotypeunsupported.ini
  1301 
  1300 
  1302 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-001
  1301 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0001
  1303 
  1302 
  1304 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1303 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1305 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-002
  1304 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0002
  1306 //!@SYMTestCaseDependencies		TestData(pkcs12_emptycontentinfo.p12),ini file(emptycontentinfo.ini) 
  1305 //!@SYMTestCaseDependencies		TestData(pkcs12_emptycontentinfo.p12),ini file(emptycontentinfo.ini) 
  1307 //					containing the data.
  1306 //					containing the data.
  1308 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1307 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1309 //					invalid encoded PKCS12 data in which the authsafe ContentData is not 
  1308 //					invalid encoded PKCS12 data in which the authsafe ContentData is not 
  1310 //					present.
  1309 //					present.
  1316 //					3.Check whether the content Data present in the PKCS7 ContentInfo structure.
  1315 //					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.
  1316 //					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.
  1317 //!@SYMTestExpectedResults		The ContentData must be present in the PKCS7 ContentInfo structure.
  1319 //!@SYMTestType				UT
  1318 //!@SYMTestType				UT
  1320 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1319 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1321 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-002
  1320 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0002
  1322 
  1321 
  1323 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\emptycontentinfo.ini
  1322 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\emptycontentinfo.ini
  1324 
  1323 
  1325 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-002
  1324 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0002
  1326 
  1325 
  1327 
  1326 
  1328 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1327 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1329 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-003
  1328 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0003
  1330 //!@SYMTestCaseDependencies		TestData(pkcs12_unsupportedbag.p12),ini file
  1329 //!@SYMTestCaseDependencies		TestData(pkcs12_unsupportedbag.p12),ini file
  1331 //					(corruptbagalgid.ini) containing the data.
  1330 //					(corruptbagalgid.ini) containing the data.
  1332 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1331 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1333 //					invalid encoded PKCS12 data in which the contentinfo contains unsupported bag.
  1332 //					invalid encoded PKCS12 data in which the contentinfo contains unsupported bag.
  1334 //!@SYMTestStatus			Implemented
  1333 //!@SYMTestStatus			Implemented
  1341 //					3.Verify the Error code with the Expected Error in the INI file.
  1340 //					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, 
  1341 //!@SYMTestExpectedResults		The ContentInfo structure must contain either one of the supported bags CRL, 
  1343 //					Secret,SafeBag,KeyBag,ShroudedKeyBag or SafeContentsBag.
  1342 //					Secret,SafeBag,KeyBag,ShroudedKeyBag or SafeContentsBag.
  1344 //!@SYMTestType				UT
  1343 //!@SYMTestType				UT
  1345 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1344 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1346 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-003
  1345 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0003
  1347 
  1346 
  1348 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptbagalgid.ini
  1347 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptbagalgid.ini
  1349 
  1348 
  1350 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-003
  1349 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0003
  1351 
  1350 
  1352 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1351 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1353 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-004
  1352 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0004
  1354 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedshroudediteration1.p12),ini file
  1353 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedshroudediteration1.p12),ini file
  1355 //					(corruptedshroudediteration_case1.ini) containing the data.
  1354 //					(corruptedshroudediteration_case1.ini) containing the data.
  1356 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1355 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1357 //					invalid encoded PKCS12 data in which the shroudedbag contains the 
  1356 //					invalid encoded PKCS12 data in which the shroudedbag contains the 
  1358 //					iteration count 0.
  1357 //					iteration count 0.
  1364 //					3.Check whether the iteration count present in shroudedBag.
  1363 //					3.Check whether the iteration count present in shroudedBag.
  1365 //					4.Verify the Error code with the Expected Error in the INI file.
  1364 //					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.
  1365 //!@SYMTestExpectedResults		The iteration count present in shroudedBag should be greater than 0.
  1367 //!@SYMTestType				UT
  1366 //!@SYMTestType				UT
  1368 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1367 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1369 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-004
  1368 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0004
  1370 
  1369 
  1371 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedshroudediteration_case1.ini
  1370 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedshroudediteration_case1.ini
  1372 
  1371 
  1373 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-004
  1372 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0004
  1374 
  1373 
  1375 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1374 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1376 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-005
  1375 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0005
  1377 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedshroudediteration2.p12),ini file
  1376 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedshroudediteration2.p12),ini file
  1378 //					(corruptedshroudediteration_case2.ini) containing the data.
  1377 //					(corruptedshroudediteration_case2.ini) containing the data.
  1379 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1378 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1380 //					invalid encoded PKCS12 data in which the shroudedbag contains the 
  1379 //					invalid encoded PKCS12 data in which the shroudedbag contains the 
  1381 //					iteration count -ve.
  1380 //					iteration count -ve.
  1387 //					3.Check whether the iteration count present in shroudedBag.
  1386 //					3.Check whether the iteration count present in shroudedBag.
  1388 //					4.Verify the Error code with the Expected Error in the INI file.
  1387 //					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.
  1388 //!@SYMTestExpectedResults		The iteration count present in shroudedBag should be greater than 0.
  1390 //!@SYMTestType				UT
  1389 //!@SYMTestType				UT
  1391 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1390 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1392 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-005
  1391 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0005
  1393 
  1392 
  1394 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedshroudediteration_case2.ini
  1393 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedshroudediteration_case2.ini
  1395 
  1394 
  1396 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-005
  1395 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0005
  1397 
  1396 
  1398 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1397 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1399 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-006
  1398 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0006
  1400 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedshroudedval.p12),ini file
  1399 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedshroudedval.p12),ini file
  1401 //					(corruptedshroudedval.ini) containing the data.
  1400 //					(corruptedshroudedval.ini) containing the data.
  1402 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1401 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1403 //					invalid encoded PKCS12 data in which the shroudedbag value is corrupted.
  1402 //					invalid encoded PKCS12 data in which the shroudedbag value is corrupted.
  1404 //!@SYMTestStatus			Implemented
  1403 //!@SYMTestStatus			Implemented
  1409 //					3.Check whether the shroudedKey BagValue is present.
  1408 //					3.Check whether the shroudedKey BagValue is present.
  1410 //					4.Verify the Error code with the Expected Error in the INI file.
  1409 //					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.
  1410 //!@SYMTestExpectedResults		The Shroudedkey BagValue must be correct to decrypt the data.
  1412 //!@SYMTestType				UT
  1411 //!@SYMTestType				UT
  1413 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1412 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1414 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-006
  1413 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0006
  1415 
  1414 
  1416 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedshroudedval.ini
  1415 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\corruptedshroudedval.ini
  1417 
  1416 
  1418 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-006
  1417 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0006
  1419 
  1418 
  1420 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1419 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1421 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-007
  1420 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0007
  1422 //!@SYMTestCaseDependencies		TestData(pkcs12_certbag_notasequence.p12),ini file
  1421 //!@SYMTestCaseDependencies		TestData(pkcs12_certbag_notasequence.p12),ini file
  1423 //					(certbag_notasequence.ini) containing the data.
  1422 //					(certbag_notasequence.ini) containing the data.
  1424 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1423 //!@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
  1424 //					invalid encoded PKCS12 data in which the certbag tag is not a
  1426 //					sequence.
  1425 //					sequence.
  1433 //					4.Verify the Error code with the Expected Error in the INI file.
  1432 //					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
  1433 //!@SYMTestExpectedResults		The CertBag Type present in the ContentInfo structure must be a
  1435 //					Sequence.
  1434 //					Sequence.
  1436 //!@SYMTestType				UT
  1435 //!@SYMTestType				UT
  1437 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1436 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1438 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-007
  1437 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0007
  1439 
  1438 
  1440 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_notasequence.ini
  1439 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_notasequence.ini
  1441 
  1440 
  1442 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-007
  1441 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0007
  1443 
  1442 
  1444 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1443 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1445 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-008
  1444 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0008
  1446 //!@SYMTestCaseDependencies		TestData(pkcs12_certbag_oidnotoctetstring.p12),ini file
  1445 //!@SYMTestCaseDependencies		TestData(pkcs12_certbag_oidnotoctetstring.p12),ini file
  1447 //					(certbag_oidnotoctetstring.ini) containing the data.
  1446 //					(certbag_oidnotoctetstring.ini) containing the data.
  1448 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1447 //!@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.
  1448 //					invalid encoded PKCS12 data in which the certbag OID type is not 			//					octetstring.
  1450 //!@SYMTestStatus			Implemented
  1449 //!@SYMTestStatus			Implemented
  1456 //					4.Verify the Error code with the Expected Error in the INI file.
  1455 //					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
  1456 //!@SYMTestExpectedResults		The CertBag OID Type present in the ContentInfo structure must be a
  1458 //					OCTETSTRING.
  1457 //					OCTETSTRING.
  1459 //!@SYMTestType				UT
  1458 //!@SYMTestType				UT
  1460 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1459 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1461 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-008
  1460 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0008
  1462 
  1461 
  1463 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_oidnotoctetstring.ini
  1462 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_oidnotoctetstring.ini
  1464 
  1463 
  1465 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-008
  1464 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0008
  1466 
  1465 
  1467 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1466 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1468 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-009
  1467 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0009
  1469 //!@SYMTestCaseDependencies		TestData(pkcs12_certbag_explicittagchanged.p12),ini file
  1468 //!@SYMTestCaseDependencies		TestData(pkcs12_certbag_explicittagchanged.p12),ini file
  1470 //					(certbag_explicittagchanged.ini) containing the data.
  1469 //					(certbag_explicittagchanged.ini) containing the data.
  1471 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1470 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1472 //					invalid encoded PKCS12 data in which the certbag explicittag is 
  1471 //					invalid encoded PKCS12 data in which the certbag explicittag is 
  1473 //					changed.
  1472 //					changed.
  1480 //					4.Verify the Error code with the Expected Error in the INI file.
  1479 //					4.Verify the Error code with the Expected Error in the INI file.
  1481 //!@SYMTestExpectedResults		The CertBag ExplicitTag present in the ContentInfo structure must 
  1480 //!@SYMTestExpectedResults		The CertBag ExplicitTag present in the ContentInfo structure must 
  1482 //					be a sequence
  1481 //					be a sequence
  1483 //!@SYMTestType				UT
  1482 //!@SYMTestType				UT
  1484 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1483 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1485 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-009
  1484 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0009
  1486 
  1485 
  1487 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_explicittagchanged.ini
  1486 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_explicittagchanged.ini
  1488 
  1487 
  1489 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-009
  1488 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0009
  1490 
  1489 
  1491 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1490 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1492 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-010
  1491 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0010
  1493 //!@SYMTestCaseDependencies		TestData(pkcs12_certbag_notoctetstring.p12),ini file
  1492 //!@SYMTestCaseDependencies		TestData(pkcs12_certbag_notoctetstring.p12),ini file
  1494 //					(certbag_notoctetstring.ini) containing the data.
  1493 //					(certbag_notoctetstring.ini) containing the data.
  1495 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1494 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1496 //					invalid encoded PKCS12 data in which the certbag value is not 
  1495 //					invalid encoded PKCS12 data in which the certbag value is not 
  1497 //					octetstring.
  1496 //					octetstring.
  1504 //					3.Verify the Error code with the Expected Error in the INI file.
  1503 //					3.Verify the Error code with the Expected Error in the INI file.
  1505 //!@SYMTestExpectedResults		The CertBag Value present in the ContentInfo structure must 
  1504 //!@SYMTestExpectedResults		The CertBag Value present in the ContentInfo structure must 
  1506 //					be a OCTETSTRING.
  1505 //					be a OCTETSTRING.
  1507 //!@SYMTestType				UT
  1506 //!@SYMTestType				UT
  1508 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1507 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1509 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-010
  1508 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0010
  1510 
  1509 
  1511 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_notoctetstring.ini
  1510 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\certbag_notoctetstring.ini
  1512 
  1511 
  1513 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-010
  1512 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0010
  1514 
  1513 	
  1515 
  1514 
  1516 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1515 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1517 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-011
  1516 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0011
  1518 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedattrval.p12),ini file
  1517 //!@SYMTestCaseDependencies		TestData(pkcs12_corruptedattrval.p12),ini file
  1519 //					(attributevaluechanged.ini) containing the data.
  1518 //					(attributevaluechanged.ini) containing the data.
  1520 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1519 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1521 //					invalid encoded PKCS12 data in which the attribute value is modified.
  1520 //					invalid encoded PKCS12 data in which the attribute value is modified.
  1522 //!@SYMTestStatus			Implemented
  1521 //!@SYMTestStatus			Implemented
  1528 //					  whether the value is corrupted.
  1527 //					  whether the value is corrupted.
  1529 //					4.Verify the Error code with the Expected Error in the INI file.
  1528 //					4.Verify the Error code with the Expected Error in the INI file.
  1530 //!@SYMTestExpectedResults		The Comparsion fails if the attribute value is modified.
  1529 //!@SYMTestExpectedResults		The Comparsion fails if the attribute value is modified.
  1531 //!@SYMTestType				UT
  1530 //!@SYMTestType				UT
  1532 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1531 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1533 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-011
  1532 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0011
  1534 
  1533 
  1535 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\attributevaluechanged.ini
  1534 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\attributevaluechanged.ini
  1536 
  1535 
  1537 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-011
  1536 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0011
  1538 
  1537 
  1539 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1538 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1540 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-012
  1539 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0012
  1541 //!@SYMTestCaseDependencies		TestData(pkcs12_bagattributenotaseq.p12),ini file
  1540 //!@SYMTestCaseDependencies		TestData(pkcs12_bagattributenotaseq.p12),ini file
  1542 //					(bagattributenotaseq.ini) containing the data.
  1541 //					(bagattributenotaseq.ini) containing the data.
  1543 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1542 //!@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.
  1543 //					invalid encoded PKCS12 data in which the bag attribute tag is not a sequence.
  1545 //!@SYMTestStatus			Implemented
  1544 //!@SYMTestStatus			Implemented
  1550 //					3.Check whether the Attribute set tag present in the bag is Sequence.
  1549 //					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.
  1550 //					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.
  1551 //!@SYMTestExpectedResults		The Attribute set tag present in the bag must be a Sequence.
  1553 //!@SYMTestType				UT
  1552 //!@SYMTestType				UT
  1554 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1553 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1555 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-012
  1554 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0012
  1556 
  1555 
  1557 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\bagattributenotaseq.ini
  1556 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\bagattributenotaseq.ini
  1558 
  1557 
  1559 END_TESTCASE	SEC-CERTMAN-PKCS12-CI-012
  1558 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0012
  1560 
  1559 
  1561 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1560 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1562 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-013
  1561 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0013
  1563 //!@SYMTestCaseDependencies		TestData(pkcs12_bagattributeoid_notoctet.p12),ini file
  1562 //!@SYMTestCaseDependencies		TestData(pkcs12_bagattributeoid_notoctet.p12),ini file
  1564 //					(bagattributeoid_notoctet.ini) containing the data.
  1563 //					(bagattributeoid_notoctet.ini) containing the data.
  1565 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1564 //!@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 
  1565 //					invalid encoded PKCS12 data in which the bag attribute oid tag is 
  1567 //					not octet string.
  1566 //					not octet string.
  1575 //					4.Verify the Error code with the Expected Error in the INI file.
  1574 //					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 
  1575 //!@SYMTestExpectedResults		The bag attribute OID tag present in the Attribute Set must be a 
  1577 //					OCTETSTRING.
  1576 //					OCTETSTRING.
  1578 //!@SYMTestType				UT
  1577 //!@SYMTestType				UT
  1579 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1578 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1580 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-013
  1579 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0013
  1581 
  1580 
  1582 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\bagattributeoid_notoctet.ini
  1581 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\bagattributeoid_notoctet.ini
  1583 
  1582 
  1584 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-013
  1583 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0013
  1585 
  1584 
  1586 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1585 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1587 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-014
  1586 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-CI-0014
  1588 //!@SYMTestCaseDependencies		TestData(pkcs12_bagattributeval_notset.p12),ini file
  1587 //!@SYMTestCaseDependencies		TestData(pkcs12_bagattributeval_notset.p12),ini file
  1589 //					(bagattributeval_notset.ini) containing the data.
  1588 //					(bagattributeval_notset.ini) containing the data.
  1590 //!@SYMTestCaseDesc			This test case is for decoding the PKCS12 data from an 
  1589 //!@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 
  1590 //					invalid encoded PKCS12 data in which the bag attribute value tag is 
  1592 //					not a ASN set.
  1591 //					not a ASN set.
  1600 //					4.Verify the Error code with the Expected Error in the INI file.
  1599 //					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
  1600 //!@SYMTestExpectedResults		The bag Attribute value tag present in the attribute Set must be a
  1602 //					ASN SET.
  1601 //					ASN SET.
  1603 //!@SYMTestType				UT
  1602 //!@SYMTestType				UT
  1604 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1603 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1605 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-014
  1604 START_TESTCASE				SEC-CERTMAN-PKCS12-CI-0014
  1606 
  1605 
  1607 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\bagattributeval_notset.ini
  1606 RUN_TEST_STEP   100 tpkcs12libtest PKCS12LibTestStep c:\tpkcs12intg\data\ini\bagattributeval_notset.ini
  1608 
  1607 
  1609 START_TESTCASE	SEC-CERTMAN-PKCS12-CI-014
  1608 END_TESTCASE				SEC-CERTMAN-PKCS12-CI-0014
  1610 
  1609 
  1611 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1610 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1612 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-OOM-001
  1611 //!@SYMTestCaseID			SEC-CERTMAN-PKCS12-OOM-0001
  1613 //!@SYMTestCaseDependencies		INI file (oomtest.ini) containing the test data path for 
  1612 //!@SYMTestCaseDependencies		INI file (oomtest.ini) containing the test data path for 
  1614 //					the OOM tests.
  1613 //					the OOM tests.
  1615 //!@SYMTestCaseDesc			Below test cases perform out of memory tests for the pkcs12 library.
  1614 //!@SYMTestCaseDesc			Below test cases perform out of memory tests for the pkcs12 library.
  1616 //!@SYMTestStatus			Implemented
  1615 //!@SYMTestStatus			Implemented
  1617 //!@SYMPREQ                   		PREQ1054
  1616 //!@SYMPREQ                   		PREQ1054
  1620 //					2.Extract the Data.
  1619 //					2.Extract the Data.
  1621 //					3.Call the Exported NEWL methods to DeSequence the structure.
  1620 //					3.Call the Exported NEWL methods to DeSequence the structure.
  1622 //!@SYMTestExpectedResults		The KErrNoMemory must be returned.
  1621 //!@SYMTestExpectedResults		The KErrNoMemory must be returned.
  1623 //!@SYMTestType				UT
  1622 //!@SYMTestType				UT
  1624 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1623 /////////////////////////////////////////////////////////////////////////////////////////////////////
  1625 START_TESTCASE	SEC-CERTMAN-PKCS12-OOM-001
  1624 START_TESTCASE				SEC-CERTMAN-PKCS12-OOM-0001
  1626 
  1625 
  1627 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep	c:\tpkcs12intg\data\ini\oomtest.ini OOMPKCS12Test
  1626 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
  1627 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
  1628 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
  1629 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep	c:\tpkcs12intg\data\ini\oomtest.ini OOMATTRIBUTETEST
  1636 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep	c:\tpkcs12intg\data\ini\oomtest.ini OOMCRLBAGTEST
  1635 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
  1636 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
  1637 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
  1638 RUN_TEST_STEP !OOM 100 tpkcs12libtest PKCS12OOMTestStep	c:\tpkcs12intg\data\ini\oomtest.ini OOMSAFECONTENTENCRYPTEDDATATEST
  1640 
  1639 
  1641 END_TESTCASE	SEC-CERTMAN-PKCS12-OOM-001
  1640 END_TESTCASE				SEC-CERTMAN-PKCS12-OOM-0001
       
  1641