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