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