os/security/cryptoservices/certificateandkeymgmt/tpkcs7/scripts/tcms.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 //
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of the License "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description: 
    15 //
    16 // tcms.script
    17 
    18 LOAD_SUITE tpkcs7server
    19 
    20 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0038
    21 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0038
    22 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
    23 //!				The signing key: RSA key
    24 //!				Signer identifier: issuer and serial number 
    25 //!				Signed data content: attached, 
    26 //!				Digest Algorithm: SHA1
    27 //!				Hash available: No
    28 //!				Muti-signature: No
    29 //!				Certificates provided by User: Yes
    30 //!				Certificates Set: Yes
    31 //! @SYMPREQ 			PREQ968
    32 //! @SYMTestPriority 		Critical
    33 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
    34 //! @SYMTestExpectedResults 	successfully validated
    35 //! @SYMTestType 		UT
    36 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST0
    37 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0038
    38 
    39 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0001
    40 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0001
    41 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
    42 //!				The signing key: RSA key
    43 //!				Signer identifier: issuer and serial number 
    44 //!				Signed data content: attached, 
    45 //!				Digest Algorithm: SHA1
    46 //!				Hash available: No
    47 //!				Muti-signature: No
    48 //!				Certificates provided by User: No
    49 //!				Certificates Set: Yes
    50 //! @SYMPREQ 			PREQ968
    51 //! @SYMTestPriority 		Critical
    52 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
    53 //! @SYMTestExpectedResults 	successfully validated
    54 //! @SYMTestType 		UT
    55 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST1
    56 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0001
    57 
    58 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0039
    59 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0039
    60 //! @SYMTestCaseDesc 		Test creation of a attached CMS object without given the data content 
    61 //!				The signing key: RSA key
    62 //!				Signer identifier: issuer and serial number 
    63 //!				Signed data content: attached, 
    64 //!				Digest Algorithm: SHA1
    65 //!				Hash available: No
    66 //!				Muti-signature: No
    67 //!				Certificates provided by User: No
    68 //!				Certificates Set: Yes
    69 //! @SYMPREQ 			PREQ968
    70 //! @SYMTestPriority 		Critical
    71 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
    72 //! @SYMTestExpectedResults 	KErrArgument
    73 //! @SYMTestType 		UT
    74 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST1_1
    75 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0039
    76 
    77 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0002
    78 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0002
    79 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
    80 //!				The signing key: RSA key
    81 //!				Signer identifier: issuer and serial number 
    82 //!				Signed data content: detached, 
    83 //!				Digest Algorithm: SHA1
    84 //!				Hash available: Yes
    85 //!				DataDetached: Yes
    86 //!				Muti-signature: No
    87 //!				Certificates provided by User: No
    88 //!				Certificates Set: Yes
    89 //! @SYMPREQ 			PREQ968
    90 //! @SYMTestPriority 		Critical
    91 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
    92 //! @SYMTestExpectedResults 	successfully validated
    93 //! @SYMTestType 		UT
    94 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST2
    95 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0002
    96 
    97 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0047
    98 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0047
    99 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation.
   100 //!				Test two step construction of signed data when hash is provided by user     
   101 //!				The signing key: RSA key
   102 //!				Signer identifier: issuer and serial number 
   103 //!				Signed data content: detached, 
   104 //!				Digest Algorithm: SHA1
   105 //!				Hash available: Yes
   106 //!				DataDetached: No
   107 //!				Muti-signature: No
   108 //!				Certificates provided by User: No
   109 //!				Certificates Set: Yes
   110 //!				TwoStepCreation: Yes
   111 //! @SYMPREQ 			PREQ968
   112 //! @SYMTestPriority 		Critical
   113 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   114 //! @SYMTestExpectedResults 	successfully validated
   115 //! @SYMTestType 		UT
   116 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST2_1
   117 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0047
   118 
   119 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0048
   120 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0048
   121 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation.
   122 //!				Test two step construction of signed data when hash is provided by user     
   123 //!				The signing key: RSA key
   124 //!				Signer identifier: issuer and serial number 
   125 //!				Signed data content: detached, 
   126 //!				Digest Algorithm: SHA1
   127 //!				Hash available: Yes
   128 //!				DataDetached: Yes
   129 //!				Muti-signature: No
   130 //!				Certificates provided by User: No
   131 //!				Certificates Set: Yes
   132 //!				TwoStepCreation: Yes
   133 //! @SYMPREQ 			PREQ968
   134 //! @SYMTestPriority 		Critical
   135 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   136 //! @SYMTestExpectedResults 	successfully validated
   137 //! @SYMTestType 		UT
   138 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST2_2
   139 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0048
   140 
   141 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0003
   142 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0003
   143 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   144 //!				The signing key: RSA key
   145 //!				Signer identifier: issuer and serial number 
   146 //!				Signed data content: detached, 
   147 //!				Digest Algorithm: SHA1
   148 //!				Hash available: No
   149 //!				Muti-signature: No
   150 //!				Certificates provided by User: No
   151 //!				Certificates Set: Yes
   152 //! @SYMPREQ 			PREQ968
   153 //! @SYMTestPriority 		Critical
   154 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   155 //! @SYMTestExpectedResults 	successfully validated
   156 //! @SYMTestType 		UT
   157 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3
   158 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0003
   159 
   160 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0049
   161 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0049
   162 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation when
   163 //!				no provided hash nor provided data content.
   164 //!				The signing key: RSA key
   165 //!				Signer identifier: issuer and serial number 
   166 //!				Signed data content: detached, 
   167 //!				Digest Algorithm: SHA1
   168 //!				Hash available: No
   169 //!				Muti-signature: No
   170 //!				Certificates provided by User: No
   171 //!				Certificates Set: Yes
   172 //! @SYMPREQ 			PREQ968
   173 //! @SYMTestPriority 		Critical
   174 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   175 //! @SYMTestExpectedResults 	KErrArgument
   176 //! @SYMTestType 		UT
   177 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_1
   178 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0049
   179 
   180 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0068
   181 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0068
   182 //! @SYMTestCaseDesc 		Test Validateion a detached CMS sign data without given data content or hash
   183 //!				The signing key: RSA key
   184 //!				Signer identifier: issuer and serial number 
   185 //!				Signed data content: detached, 
   186 //!				Digest Algorithm: SHA1
   187 //!				Hash available: No
   188 //!				Muti-signature: No
   189 //!				Certificates provided by User: No
   190 //!				Certificates Set: Yes
   191 //!				ValidationDetachedWithoutInput: Yes
   192 //! @SYMPREQ 			PREQ968
   193 //! @SYMTestPriority 		Critical
   194 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   195 //! @SYMTestExpectedResults KErrArgument
   196 //! @SYMTestType 		UT
   197 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_2
   198 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0068
   199 
   200 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0069
   201 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0069
   202 //! @SYMTestCaseDesc 		Test Validateion a detached CMS sign data without given data content or hash
   203 //!				The signing key: RSA key
   204 //!				Signer identifier: issuer and serial number 
   205 //!				Signed data content: detached, 
   206 //!				Digest Algorithm: SHA1
   207 //!				Hash available: No
   208 //!				Muti-signature: No
   209 //!				Certificates provided by User: Yes
   210 //!				Certificates Set: Yes
   211 //!				ValidationDetachedWithoutInput: Yes
   212 //! @SYMPREQ 			PREQ968
   213 //! @SYMTestPriority 		Critical
   214 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   215 //! @SYMTestExpectedResults 	KErrArgument
   216 //! @SYMTestType 		UT
   217 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_3
   218 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0069
   219 
   220 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0070
   221 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0070
   222 //! @SYMTestCaseDesc 		Test Validateion a detached CMS sign data without given data content or hash
   223 //!				The signing key: RSA key
   224 //!				Signer identifier: issuer and serial number 
   225 //!				Signed data content: detached, 
   226 //!				Digest Algorithm: SHA1
   227 //!				Hash available: No
   228 //!				Muti-signature: No
   229 //!				Certificates provided by User: Yes
   230 //!				Certificates Set: Yes
   231 //! @SYMPREQ 			PREQ968
   232 //! @SYMTestPriority 		Critical
   233 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   234 //! @SYMTestExpectedResults 	KErrArgument
   235 //! @SYMTestType 		UT
   236 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_4
   237 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0070
   238 
   239 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0071
   240 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0071
   241 //! @SYMTestCaseDesc 		Test Validateion a detached CMS sign data without given data content or hash
   242 //!				The signing key: RSA key
   243 //!				Signer identifier: issuer and serial number 
   244 //!				Signed data content: detached, 
   245 //!				Digest Algorithm: SHA1
   246 //!				Hash available: Yes
   247 //!				Muti-signature: No
   248 //!				Certificates provided by User: Yes
   249 //!				Certificates Set: Yes
   250 //! @SYMPREQ 			PREQ968
   251 //! @SYMTestPriority 		Critical
   252 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   253 //! @SYMTestExpectedResults 	KErrArgument
   254 //! @SYMTestType 		UT
   255 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST3_5
   256 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0071
   257 
   258 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0004
   259 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0004
   260 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   261 //!				The signing key: RSA key
   262 //!				Signer identifier: issuer and serial number 
   263 //!				Signed data content: attached, 
   264 //!				Digest Algorithm: MD5
   265 //!				Hash available: No
   266 //!				Muti-signature: No
   267 //!				Certificates provided by User: No
   268 //!				Certificates Set: Yes
   269 //! @SYMPREQ 			PREQ968
   270 //! @SYMTestPriority 		Critical
   271 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   272 //! @SYMTestExpectedResults 	successfully validated
   273 //! @SYMTestType 		UT
   274 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST4
   275 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0004
   276 
   277 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0005
   278 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0005
   279 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   280 //!				The signing key: RSA key
   281 //!				Signer identifier: issuer and serial number 
   282 //!				Signed data content: detached, 
   283 //!				Digest Algorithm: MD5
   284 //!				Hash available: Yes
   285 //!				Muti-signature: No
   286 //!				Certificates provided by User: No
   287 //!				Certificates Set: Yes
   288 //! @SYMPREQ 			PREQ968
   289 //! @SYMTestPriority 		Critical
   290 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   291 //! @SYMTestExpectedResults 	successfully validated
   292 //! @SYMTestType 		UT
   293 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST5
   294 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0005
   295 
   296 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0006
   297 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0006
   298 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   299 //!				The signing key: RSA key
   300 //!				Signer identifier: issuer and serial number 
   301 //!				Signed data content: detached, 
   302 //!				Digest Algorithm: MD5
   303 //!				Hash available: No
   304 //!				Muti-signature: No
   305 //!				Certificates provided by User: No
   306 //!				Certificates Set: Yes
   307 //! @SYMPREQ 			PREQ968
   308 //! @SYMTestPriority 		Critical
   309 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   310 //! @SYMTestExpectedResults 	successfully validated
   311 //! @SYMTestType 		UT
   312 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST6
   313 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0006
   314 
   315 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0007
   316 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0007
   317 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   318 //!				The signing key: RSA key
   319 //!				Signer identifier: issuer and serial number 
   320 //!				Signed data content: attached, 
   321 //!				Digest Algorithm: MD2
   322 //!				Hash available: No
   323 //!				Muti-signature: No
   324 //!				Certificates provided by User: No
   325 //!				Certificates Set: Yes
   326 //! @SYMPREQ 			PREQ968
   327 //! @SYMTestPriority 		Critical
   328 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   329 //! @SYMTestExpectedResults 	successfully validated
   330 //! @SYMTestType 		UT
   331 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST7
   332 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0007
   333 
   334 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0008
   335 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0008
   336 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   337 //!				The signing key: RSA key
   338 //!				Signer identifier: issuer and serial number 
   339 //!				Signed data content: detached, 
   340 //!				Digest Algorithm: MD2
   341 //!				Hash available: Yes
   342 //!				Muti-signature: No
   343 //!				Certificates provided by User: No
   344 //!				Certificates Set: Yes
   345 //! @SYMPREQ 			PREQ968
   346 //! @SYMTestPriority 		Critical
   347 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   348 //! @SYMTestExpectedResults 	successfully validated
   349 //! @SYMTestType 		UT
   350 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST8
   351 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0008
   352 
   353 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0009
   354 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0009
   355 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   356 //!				The signing key: RSA key
   357 //!				Signer identifier: issuer and serial number 
   358 //!				Signed data content: detached, 
   359 //!				Digest Algorithm: MD2
   360 //!				Hash available: No
   361 //!				Muti-signature: No
   362 //!				Certificates provided by User: No
   363 //!				Certificates Set: Yes
   364 //! @SYMPREQ 			PREQ968
   365 //! @SYMTestPriority 		Critical
   366 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   367 //! @SYMTestExpectedResults 	successfully validated
   368 //! @SYMTestType 		UT
   369 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST9
   370 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0009
   371 
   372 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0010
   373 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0010
   374 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   375 //!				The signing key: RSA key
   376 //!				Signer identifier: subject key Id Extension 
   377 //!				Signed data content: attached, 
   378 //!				Digest Algorithm: SHA1
   379 //!				Hash available: No
   380 //!				Muti-signature: No
   381 //!				Certificates provided by User: No
   382 //!				Certificates Set: Yes
   383 //! @SYMPREQ 			PREQ968
   384 //! @SYMTestPriority 		Critical
   385 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   386 //! @SYMTestExpectedResults 	successfully validated
   387 //! @SYMTestType 		UT
   388 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST10
   389 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0010
   390 
   391 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0011
   392 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0011
   393 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   394 //!				The signing key: RSA key
   395 //!				Signer identifier: subject key Id Extension 
   396 //!				Signed data content: detached, 
   397 //!				Digest Algorithm: SHA1
   398 //!				Hash available: Yes
   399 //!				Muti-signature: No
   400 //!				Certificates provided by User: No
   401 //!				Certificates Set: Yes
   402 //! @SYMPREQ 			PREQ968
   403 //! @SYMTestPriority 		Critical
   404 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   405 //! @SYMTestExpectedResults 	successfully validated
   406 //! @SYMTestType 		UT
   407 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST11
   408 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0011
   409 
   410 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0012
   411 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0012
   412 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   413 //!				The signing key: RSA key
   414 //!				Signer identifier: subject key Id Extension 
   415 //!				Signed data content: detached, 
   416 //!				Digest Algorithm: SHA1
   417 //!				Hash available: No
   418 //!				Muti-signature: No
   419 //!				Certificates provided by User: No
   420 //!				Certificates Set: Yes
   421 //! @SYMPREQ 			PREQ968
   422 //! @SYMTestPriority 		Critical
   423 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   424 //! @SYMTestExpectedResults 	successfully validated
   425 //! @SYMTestType 		UT
   426 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST12
   427 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0012
   428 
   429 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0013
   430 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0013
   431 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   432 //!				The signing key: RSA key
   433 //!				Signer identifier: subject key Id Extension
   434 //!				Signed data content: attached, 
   435 //!				Digest Algorithm: MD5
   436 //!				Hash available: No
   437 //!				Muti-signature: No
   438 //!				Certificates provided by User: No
   439 //!				Certificates Set: Yes
   440 //! @SYMPREQ 			PREQ968
   441 //! @SYMTestPriority 		Critical
   442 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   443 //! @SYMTestExpectedResults 	successfully validated
   444 //! @SYMTestType 		UT
   445 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST13
   446 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0013
   447 
   448 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0014
   449 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0014
   450 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   451 //!				The signing key: RSA key
   452 //!				Signer identifier: subject key Id Extension
   453 //!				Signed data content: detached, 
   454 //!				Digest Algorithm: MD5
   455 //!				Hash available: Yes
   456 //!				Muti-signature: No
   457 //!				Certificates provided by User: No
   458 //!				Certificates Set: Yes
   459 //! @SYMPREQ 			PREQ968
   460 //! @SYMTestPriority 		Critical
   461 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   462 //! @SYMTestExpectedResults 	successfully validated
   463 //! @SYMTestType 		UT
   464 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST14
   465 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0014
   466 
   467 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0015
   468 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0015
   469 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   470 //!				The signing key: RSA key
   471 //!				Signer identifier: subject key Id Extension
   472 //!				Signed data content: detached, 
   473 //!				Digest Algorithm: MD5
   474 //!				Hash available: No
   475 //!				Muti-signature: No
   476 //!				Certificates provided by User: No
   477 //!				Certificates Set: Yes
   478 //! @SYMPREQ 			PREQ968
   479 //! @SYMTestPriority 		Critical
   480 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   481 //! @SYMTestExpectedResults 	successfully validated
   482 //! @SYMTestType 		UT
   483 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST15
   484 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0015
   485 
   486 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0016
   487 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0016
   488 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   489 //!				The signing key: RSA key
   490 //!				Signer identifier: subject key Id Extension
   491 //!				Signed data content: attached, 
   492 //!				Digest Algorithm: MD2
   493 //!				Hash available: No
   494 //!				Muti-signature: No
   495 //!				Certificates provided by User: No
   496 //!				Certificates Set: Yes
   497 //! @SYMPREQ 			PREQ968
   498 //! @SYMTestPriority 		Critical
   499 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   500 //! @SYMTestExpectedResults 	successfully validated
   501 //! @SYMTestType 		UT
   502 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST16
   503 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0016
   504 
   505 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0017
   506 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0017
   507 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   508 //!				The signing key: RSA key
   509 //!				Signer identifier: subject key Id Extension
   510 //!				Signed data content: detached, 
   511 //!				Digest Algorithm: MD2
   512 //!				Hash available: Yes
   513 //!				Muti-signature: No
   514 //!				Certificates provided by User: No
   515 //!				Certificates Set: Yes
   516 //! @SYMPREQ 			PREQ968
   517 //! @SYMTestPriority 		Critical
   518 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   519 //! @SYMTestExpectedResults 	successfully validated
   520 //! @SYMTestType 		UT
   521 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST17
   522 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0017
   523 
   524 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0018
   525 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0018
   526 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   527 //!				The signing key: RSA key
   528 //!				Signer identifier: subject key Id Extension
   529 //!				Signed data content: detached, 
   530 //!				Digest Algorithm: MD2
   531 //!				Hash available: No
   532 //!				Muti-signature: No
   533 //!				Certificates provided by User: No
   534 //!				Certificates Set: Yes
   535 //! @SYMPREQ 			PREQ968
   536 //! @SYMTestPriority 		Critical
   537 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   538 //! @SYMTestExpectedResults
   539 //! @SYMTestType 		UT
   540 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST18
   541 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0018
   542 
   543 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0019
   544 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0019
   545 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   546 //!				The signing key: RSA key
   547 //!				Signer identifier: subject key Id Extension
   548 //!				Signed data content: detached, 
   549 //!				Digest Algorithm: MD2
   550 //!				Hash available: No
   551 //!				Muti-signature: No
   552 //!				Certificates provided by User: No
   553 //!				Certificates Set: Yes
   554 //!				Wrong root certificate
   555 //! @SYMPREQ 			PREQ968
   556 //! @SYMTestPriority 		Critical
   557 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   558 //! @SYMTestExpectedResults Validation Fail
   559 //! @SYMTestType 		UT
   560 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST19
   561 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0019
   562 
   563 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0020
   564 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0020
   565 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   566 //!				The signing key: RSA key
   567 //!				Signer identifier: issuer and serial number 
   568 //!				Signed data content: attached, 
   569 //!				Digest Algorithm: SHA1
   570 //!				Hash available: No
   571 //!				Muti-signature: No
   572 //!				Certificates provided by User: Yes
   573 //!				Certificates Set: No
   574 //! @SYMPREQ 			PREQ968
   575 //! @SYMTestPriority 		Critical
   576 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   577 //! @SYMTestExpectedResults 	successfully validated
   578 //! @SYMTestType 		UT
   579 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST20
   580 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0020
   581 
   582 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0072
   583 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0072
   584 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   585 //!				The signing key: RSA key
   586 //!				Signer identifier: issuer and serial number 
   587 //!				Signed data content: attached, 
   588 //!				Digest Algorithm: SHA1
   589 //!				Hash available: No
   590 //!				Muti-signature: No
   591 //!				Certificates provided by User: Yes
   592 //!				Certificates Set: No
   593 //! @SYMPREQ 			PREQ968
   594 //! @SYMTestPriority 		Critical
   595 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   596 //! @SYMTestExpectedResults KErrNotFound
   597 //! @SYMTestType 		UT
   598 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST20_1
   599 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0072
   600 
   601 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0077
   602 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0077
   603 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   604 //!				The signing key: RSA key
   605 //!				Signer identifier: issuer and serial number 
   606 //!				Signed data content: attached, 
   607 //!				Digest Algorithm: SHA1
   608 //!				Hash available: No
   609 //!				Muti-signature: No
   610 //!				Certificates provided by User: No
   611 //!				Certificates Set: No
   612 //!				No Signer Info
   613 //! @SYMPREQ 			PREQ968
   614 //! @SYMTestPriority 		Critical
   615 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   616 //! @SYMTestExpectedResults Encoding Check Successfully
   617 //! @SYMTestType 		UT
   618 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST20_2
   619 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0077
   620 
   621 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0021
   622 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0021
   623 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   624 //!				The signing key: DSA key
   625 //!				Signer identifier: subject key Id Extension
   626 //!				Signed data content: attached, 
   627 //!				Digest Algorithm: SHA1
   628 //!				Hash available: No
   629 //!				Muti-signature: No
   630 //!				Certificates provided by User: No
   631 //!				Certificates Set: Yes
   632 //! @SYMPREQ 			PREQ968
   633 //! @SYMTestPriority 		Critical
   634 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   635 //! @SYMTestExpectedResults 	successfully validated
   636 //! @SYMTestType 		UT
   637 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST21
   638 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0021
   639 
   640 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0022
   641 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0022
   642 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   643 //!				The signing key: DSA key
   644 //!				Signer identifier: subject key Id Extension
   645 //!				Signed data content: detached, 
   646 //!				Digest Algorithm: SHA1
   647 //!				Hash available: Yes
   648 //!				Muti-signature: No
   649 //!				Certificates provided by User: No
   650 //!				Certificates Set: Yes
   651 //! @SYMPREQ 			PREQ968
   652 //! @SYMTestPriority 		Critical
   653 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   654 //! @SYMTestExpectedResults 	successfully validated
   655 //! @SYMTestType 		UT
   656 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST22
   657 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0022
   658 
   659 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0023
   660 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0023
   661 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   662 //!				The signing key: DSA key
   663 //!				Signer identifier: subject key Id Extension
   664 //!				Signed data content: detached, 
   665 //!				Digest Algorithm: MD2
   666 //!				Hash available: No
   667 //!				Muti-signature: No
   668 //!				Certificates provided by User: No
   669 //!				Certificates Set: Yes
   670 //! @SYMPREQ 			PREQ968
   671 //! @SYMTestPriority 		Critical
   672 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   673 //! @SYMTestExpectedResults 	successfully validated
   674 //! @SYMTestType 		UT
   675 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST23
   676 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0023
   677 
   678 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0024
   679 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0024
   680 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   681 //!				The signing key: DSA key
   682 //!				Signer identifier: issuer and serial number 
   683 //!				Signed data content: attached, 
   684 //!				Digest Algorithm: SHA1
   685 //!				Hash available: No
   686 //!				Muti-signature: No
   687 //!				Certificates provided by User: No
   688 //!				Certificates Set: Yes
   689 //! @SYMPREQ 			PREQ968
   690 //! @SYMTestPriority 		Critical
   691 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   692 //! @SYMTestExpectedResults 	successfully validated
   693 //! @SYMTestType 		UT
   694 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST24
   695 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0024
   696 
   697 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0025
   698 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0025
   699 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   700 //!				The signing key: DSA key
   701 //!				Signer identifier: issuer and serial number 
   702 //!				Signed data content: detached, 
   703 //!				Digest Algorithm: SHA1
   704 //!				Hash available: Yes
   705 //!				Muti-signature: No
   706 //!				Certificates provided by User: No
   707 //!				Certificates Set: Yes
   708 //! @SYMPREQ 			PREQ968
   709 //! @SYMTestPriority 		Critical
   710 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   711 //! @SYMTestExpectedResults 	successfully validated
   712 //! @SYMTestType 		UT
   713 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST25
   714 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0025
   715 
   716 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0026
   717 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0026
   718 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   719 //!				The signing key: DSA key
   720 //!				Signer identifier: issuer and serial number 
   721 //!				Signed data content: detached, 
   722 //!				Digest Algorithm: MD2
   723 //!				Hash available: No
   724 //!				Muti-signature: No
   725 //!				Certificates provided by User: No
   726 //!				Certificates Set: Yes
   727 //! @SYMPREQ 			PREQ968
   728 //! @SYMTestPriority 		Critical
   729 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   730 //! @SYMTestExpectedResults 	successfully validated
   731 //! @SYMTestType 		UT
   732 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST26
   733 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0026
   734 
   735 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0027
   736 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0027
   737 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   738 //!				The signing key: DSA key, RSA key
   739 //!				Signer identifier: issuer and serial number, subject key Id Extension
   740 //!				Signed data content: detached, 
   741 //!				Digest Algorithm: SHA1, SHA1
   742 //!				Hash available: No
   743 //!				Muti-signature: YES
   744 //!				Certificates provided by User: No
   745 //!				Certificates Set: Yes
   746 //! @SYMPREQ 			PREQ968
   747 //! @SYMTestPriority 		Critical
   748 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   749 //! @SYMTestExpectedResults 	successfully validated
   750 //! @SYMTestType 		UT
   751 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST27
   752 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0027
   753 
   754 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0028
   755 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0028
   756 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   757 //!				The signing key: DSA key, RSA key
   758 //!				Signer identifier: issuer and serial number, subject key Id Extension
   759 //!				Signed data content: attached, 
   760 //!				Digest Algorithm: SHA1, SHA1
   761 //!				Hash available: No
   762 //!				Muti-signature: YES
   763 //!				Certificates provided by User: Yes
   764 //!				Certificates Set: Yes
   765 //! @SYMPREQ 			PREQ968
   766 //! @SYMTestPriority 		Critical
   767 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   768 //! @SYMTestExpectedResults 	successfully validated
   769 //! @SYMTestType 		UT
   770 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST28
   771 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0028
   772 
   773 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0029
   774 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0029
   775 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   776 //!				The signing key: RSA key, DSA key
   777 //!				Signer identifier: subject key Id Extension, issuer and serial number
   778 //!				Signed data content: attached, 
   779 //!				Digest Algorithm: SHA1, SHA1
   780 //!				Hash available: No
   781 //!				Muti-signature: YES
   782 //!				Certificates provided by User: No
   783 //!				Certificates Set: Yes
   784 //! @SYMPREQ 			PREQ968
   785 //! @SYMTestPriority 		Critical
   786 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   787 //! @SYMTestExpectedResults 	successfully validated
   788 //! @SYMTestType 		UT
   789 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST29
   790 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0029
   791 
   792 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0030
   793 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0030
   794 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   795 //!				The signing key: RSA key, DSA key
   796 //!				Signer identifier: subject key Id Extension, issuer and serial number
   797 //!				Signed data content: attached, 
   798 //!				Digest Algorithm: SHA1, SHA1
   799 //!				Hash available: No
   800 //!				Muti-signature: YES
   801 //!				Certificates provided by User: Yes
   802 //!				Certificates Set: Yes
   803 //! @SYMPREQ 			PREQ968
   804 //! @SYMTestPriority 		Critical
   805 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   806 //! @SYMTestExpectedResults 	successfully validated
   807 //! @SYMTestType 		UT
   808 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST30
   809 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0030
   810 
   811 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0031
   812 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0031
   813 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   814 //!				The signing key: RSA key, DSA key
   815 //!				Signer identifier: subject key Id Extension, issuer and serial number
   816 //!				Signed data content: attached, 
   817 //!				Digest Algorithm: Md5, SHA1
   818 //!				Hash available: No
   819 //!				Muti-signature: YES
   820 //!				Certificates provided by User: No
   821 //!				Certificates Set: Yes
   822 //! @SYMPREQ 			PREQ968
   823 //! @SYMTestPriority 		Critical
   824 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   825 //! @SYMTestExpectedResults 	successfully validated
   826 //! @SYMTestType 		UT
   827 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST31
   828 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0031
   829 
   830 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0032
   831 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0032
   832 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   833 //!				The signing key: RSA key, DSA key
   834 //!				Signer identifier: subject key Id Extension, issuer and serial number
   835 //!				Signed data content: attached, 
   836 //!				Digest Algorithm: Md5, SHA1
   837 //!				Hash available: No
   838 //!				Muti-signature: YES
   839 //!				Certificates provided by User: No
   840 //!				Certificates Set: Yes
   841 //!				Additional Certificate: Yes,  X509 certificate
   842 //! @SYMPREQ 			PREQ968
   843 //! @SYMTestPriority 		Critical
   844 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   845 //! @SYMTestExpectedResults 	successfully validated
   846 //! @SYMTestType 		UT
   847 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST32
   848 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0032
   849 
   850 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0033
   851 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0033
   852 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   853 //!				The signing key: RSA key, DSA key
   854 //!				Signer identifier: subject key Id Extension, issuer and serial number
   855 //!				Signed data content: attached, 
   856 //!				Digest Algorithm: Md5, SHA1
   857 //!				Hash available: No
   858 //!				Muti-signature: YES
   859 //!				Certificates provided by User: No
   860 //!				Certificates Set: Yes
   861 //!				Attribute Certificate: Yes 
   862 //! @SYMPREQ 			PREQ968
   863 //! @SYMTestPriority 		Critical
   864 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   865 //! @SYMTestExpectedResults 	successfully validated
   866 //! @SYMTestType 		UT
   867 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST33
   868 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0033
   869 
   870 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0034
   871 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0034
   872 //! @SYMTestCaseDesc 		Test CMS data Construction, encoding and decoding 
   873 //! @SYMPREQ 			PREQ968
   874 //! @SYMTestPriority 		Critical
   875 //! @SYMTestActions 		Test CMS data Construction, encoding and decoding 
   876 //! @SYMTestExpectedResults 	successfully Encoding and Decoding
   877 //! @SYMTestType 		UT
   878 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tcms.ini TEST34
   879 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0034
   880 
   881 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0035
   882 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0035
   883 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   884 //!				The signing key: RSA key, DSA key
   885 //!				Signer identifier: subject key Id Extension, issuer and serial number
   886 //!				Signed data content: attached, 
   887 //!				Digest Algorithm: Md5, SHA1
   888 //!				Hash available: No
   889 //!				Muti-signature: YES
   890 //!				Certificates provided by User: No
   891 //!				Certificates Set: Yes
   892 //!				Additional Certificate: Yes, duplicate cert
   893 //! @SYMPREQ 			PREQ968
   894 //! @SYMTestPriority 		Critical
   895 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation.
   896 //!			This test try to add an existing certificate to the certificate set. The 
   897 //!			adding is ignaored.
   898 //! @SYMTestExpectedResults 	successfully validated
   899 //! @SYMTestType 		UT
   900 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST35
   901 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0035
   902 
   903 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0036
   904 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0036
   905 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   906 //!				The signing key: RSA key, DSA key
   907 //!				Signer identifier: subject key Id Extension, issuer and serial number
   908 //!				Signed data content: attached, 
   909 //!				Digest Algorithm: Md5, SHA1
   910 //!				Hash available: No
   911 //!				Muti-signature: YES
   912 //!				Certificates provided by User: No
   913 //!				Certificates Set: Yes
   914 //!				Additional Certificate: Yes, , Encoded X509 certificate
   915 //! @SYMPREQ 			PREQ968
   916 //! @SYMTestPriority 		Critical
   917 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   918 //! @SYMTestExpectedResults 	successfully validated
   919 //! @SYMTestType 		UT
   920 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST36
   921 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0036
   922 
   923 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0037
   924 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0037
   925 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
   926 //!				The signing key: RSA key, DSA key
   927 //!				Signer identifier: subject key Id Extension, issuer and serial number
   928 //!				Signed data content: attached, 
   929 //!				Digest Algorithm: Md5, SHA1
   930 //!				Hash available: No
   931 //!				Muti-signature: YES
   932 //!				Certificates provided by User: No
   933 //!				Certificates Set: Yes
   934 //!				Additional Certificate: Yes, Encoded Extended certificate
   935 //! @SYMPREQ 			PREQ968
   936 //! @SYMTestPriority 		Critical
   937 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   938 //! @SYMTestExpectedResults 	KErrNotSupported
   939 //! @SYMTestType 		UT
   940 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST37
   941 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0037
   942 
   943 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0040
   944 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0040
   945 //! @SYMTestCaseDesc 		OOM Test CMS signed data construction, encoding, decoding and validation. 
   946 //!				The signing key: RSA key
   947 //!				Signer identifier: issuer and serial number
   948 //!				Signed data content: attached, 
   949 //!				Digest Algorithm: SHA1
   950 //!				Hash available: No
   951 //!				Muti-signature: YES
   952 //!				Certificates provided by User: No
   953 //!				Certificates Set: Yes
   954 //! @SYMPREQ 			PREQ968
   955 //! @SYMTestPriority 		Critical
   956 //! @SYMTestActions 		OOM Test CMS signed data construction, encoding, decoding and validation. 
   957 //! @SYMTestExpectedResults 	successfully validated
   958 //! @SYMTestType 		UT
   959 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST40
   960 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0040
   961 
   962 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0041
   963 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0041
   964 //! @SYMTestCaseDesc 		OOM Test CMS signed data construction, encoding, decoding and validation. 
   965 //!				The signing key: RSA key, DSA key
   966 //!				Signer identifier: subject key Id Extension, issuer and serial number
   967 //!				Signed data content: attached, 
   968 //!				Digest Algorithm: Md5, SHA1
   969 //!				Hash available: No
   970 //!				Muti-signature: YES
   971 //!				Certificates provided by User: No
   972 //!				Certificates Set: Yes
   973 //!				Additional Certificate: Yes
   974 //! @SYMPREQ 			PREQ968
   975 //! @SYMTestPriority 		Critical
   976 //! @SYMTestActions 		OOM Test CMS signed data construction, encoding, decoding and validation. 
   977 //! @SYMTestExpectedResults 	successfully validated
   978 //! @SYMTestType 		UT
   979 RUN_TEST_STEP 300 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST41
   980 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0041
   981 
   982 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0042
   983 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0042
   984 //! @SYMTestCaseDesc 		OOM Test CMS signed data construction, encoding, decoding and validation. 
   985 //!				The signing key: DSA key
   986 //!				Signer identifier: subject key Id Extension
   987 //!				Signed data content: detached, 
   988 //!				Digest Algorithm: SHA1
   989 //!				Hash available: Yes
   990 //!				Muti-signature: No
   991 //!				Certificates provided by User: No
   992 //!				Certificates Set: Yes
   993 //! @SYMPREQ 			PREQ968
   994 //! @SYMTestPriority 		Critical
   995 //! @SYMTestActions 		OOM Test CMS signed data construction, encoding, decoding and validation. 
   996 //! @SYMTestExpectedResults 	successfully validated
   997 //! @SYMTestType 		UT
   998 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST42
   999 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0042
  1000 
  1001 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0043
  1002 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0043
  1003 //! @SYMTestCaseDesc 		Test CMS signed data construction, encoding, decoding and validation. 
  1004 //!				The signing key: RSA key
  1005 //!				Signer identifier: issuer and serial number 
  1006 //!				Signed data content: detached, 
  1007 //!				Digest Algorithm: SHA1
  1008 //!				Hash available: No
  1009 //!				Muti-signature: No
  1010 //!				Certificates provided by User: No
  1011 //!				Certificates Set: Yes
  1012 //! @SYMPREQ 			PREQ968
  1013 //! @SYMTestPriority 		Critical
  1014 //! @SYMTestActions 		OOM Test CMS signed data construction, encoding, decoding and validation. 
  1015 //! @SYMTestExpectedResults 	successfully validated
  1016 //! @SYMTestType 		UT
  1017 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST43
  1018 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0043
  1019 
  1020 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0044
  1021 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0044
  1022 //! @SYMTestCaseDesc 		Test decoding and validation CMS Signed data contains unsigned attributes
  1023 //!				The signing key: RSA key
  1024 //!				Signer identifier: subject key id extension
  1025 //!				Signed data content: attached
  1026 //!				Digest Algorithm: SHA1
  1027 //!				Hash available: No
  1028 //!				Muti-signature: No
  1029 //!				Certificates provided by User: No
  1030 //!				Certificates Set: Yes
  1031 //! @SYMPREQ 			PREQ968
  1032 //! @SYMTestPriority 		Critical
  1033 //! @SYMTestActions 		Test decoding and validation CMS Signed data contains unsigned attributes
  1034 //! @SYMTestExpectedResults 	successfully validated
  1035 //! @SYMTestType 		UT
  1036 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST44
  1037 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0044
  1038 
  1039 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0045
  1040 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0045
  1041 //! @SYMTestCaseDesc 		Test decoding CMS Signed data contains signed and unsigned attributes
  1042 //!				The signing key: RSA key
  1043 //!				Signer identifier: subject key id extension
  1044 //!				Signed data content: attached
  1045 //!				Digest Algorithm: SHA1
  1046 //!				Hash available: No
  1047 //!				Muti-signature: No
  1048 //!				Certificates provided by User: No
  1049 //!				Certificates Set: Yes
  1050 //! @SYMPREQ 			PREQ968
  1051 //! @SYMTestPriority 		Critical
  1052 //! @SYMTestActions 		Test decoding and validation CMS Signed data contains unsigned attributes
  1053 //! @SYMTestExpectedResults 	successfully decoded
  1054 //! @SYMTestType 		UT
  1055 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST45
  1056 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0045
  1057 
  1058 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0046
  1059 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0046
  1060 //! @SYMTestCaseDesc 		OOM Test CMS data Construction, encoding and decoding 
  1061 //! @SYMPREQ 			PREQ968
  1062 //! @SYMTestPriority 		Critical
  1063 //! @SYMTestActions 		OOM Test CMS data Construction, encoding and decoding 
  1064 //! @SYMTestExpectedResults 	OOM Test pass
  1065 //! @SYMTestType 		UT
  1066 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tcms.ini TEST46
  1067 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0046
  1068 
  1069 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0050
  1070 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0050
  1071 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt Signature
  1072 //! @SYMPREQ 			PREQ968
  1073 //! @SYMTestPriority 		High
  1074 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1075 //! @SYMTestExpectedResults 	validation fails
  1076 //! @SYMTestType 		UT
  1077 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST50
  1078 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0050
  1079 
  1080 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0051
  1081 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0051
  1082 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt Content data type oid.
  1083 //! @SYMPREQ 			PREQ968
  1084 //! @SYMTestPriority 		High
  1085 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1086 //! @SYMTestExpectedResults 	KErrArgument
  1087 //! @SYMTestType 		UT
  1088 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST51
  1089 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0051
  1090 
  1091 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0052
  1092 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0052
  1093 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt Encapsulated Content data type oid.
  1094 //! @SYMPREQ 			PREQ968
  1095 //! @SYMTestPriority 		High
  1096 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1097 //! @SYMTestExpectedResults 	KErrArgument
  1098 //! @SYMTestType 		UT
  1099 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST52
  1100 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0052
  1101 
  1102 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0053
  1103 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0053
  1104 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt data content.
  1105 //! @SYMPREQ 			PREQ968
  1106 //! @SYMTestPriority 		High
  1107 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1108 //! @SYMTestExpectedResults 	KErrArgument
  1109 //! @SYMTestType 		UT
  1110 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST53
  1111 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0053
  1112 
  1113 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0054
  1114 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0054
  1115 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt signedata version.
  1116 //! @SYMPREQ 			PREQ968
  1117 //! @SYMTestPriority 		High
  1118 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1119 //! @SYMTestExpectedResults 	KErrArgument
  1120 //! @SYMTestType 		UT
  1121 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST54
  1122 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0054
  1123 
  1124 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0055
  1125 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0055
  1126 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt signerinfo version.
  1127 //! @SYMPREQ 			PREQ968
  1128 //! @SYMTestPriority 		High
  1129 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1130 //! @SYMTestExpectedResults 	KErrArgument
  1131 //! @SYMTestType 		UT
  1132 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST55
  1133 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0055
  1134 
  1135 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0056
  1136 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0056
  1137 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt excert set tag.
  1138 //! @SYMPREQ 			PREQ968
  1139 //! @SYMTestPriority 		High
  1140 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1141 //! @SYMTestExpectedResults 	KErrArgument
  1142 //! @SYMTestType 		UT
  1143 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST56
  1144 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0056
  1145 
  1146 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0057
  1147 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0057
  1148 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt certificate tag.
  1149 //! @SYMPREQ 			PREQ968
  1150 //! @SYMTestPriority 		High
  1151 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1152 //! @SYMTestExpectedResults 	KErrArgument
  1153 //! @SYMTestType 		UT
  1154 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST57
  1155 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0057
  1156 
  1157 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0058
  1158 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0058
  1159 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt algorithm OID.
  1160 //! @SYMPREQ 			PREQ968
  1161 //! @SYMTestPriority 		High
  1162 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1163 //! @SYMTestExpectedResults 	KErrNotSupported
  1164 //! @SYMTestType 		UT
  1165 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST58
  1166 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0058
  1167 
  1168 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0059
  1169 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0059
  1170 //! @SYMTestCaseDesc 		Test encoding a CMS signed object with a corrupt attribute certificate
  1171 //! @SYMPREQ 			PREQ968
  1172 //! @SYMTestPriority 		High
  1173 //! @SYMTestActions	 	builds and Encodes a CMS signed data object
  1174 //! @SYMTestExpectedResults 	KErrArgument
  1175 //! @SYMTestType 		UT
  1176 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST59
  1177 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0059
  1178 
  1179 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0060
  1180 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0060
  1181 //! @SYMTestCaseDesc 		Test encoding a CMS signed object with a corrupt attribute certificate
  1182 //! @SYMPREQ 			PREQ968
  1183 //! @SYMTestPriority 		High
  1184 //! @SYMTestActions 		builds and Encodes a CMS signed data object
  1185 //! @SYMTestExpectedResults 	KErrArgument
  1186 //! @SYMTestType 		UT
  1187 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tcms.ini TEST60
  1188 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0060
  1189 
  1190 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0061
  1191 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0061
  1192 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt data block CMS in the signed data.
  1193 //! @SYMPREQ 			PREQ968
  1194 //! @SYMTestPriority 		High
  1195 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1196 //! @SYMTestExpectedResults 	KErrArgument
  1197 //! @SYMTestType 		UT
  1198 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST61
  1199 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0061
  1200 
  1201 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0062
  1202 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0062
  1203 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt length.
  1204 //! @SYMPREQ 			PREQ968
  1205 //! @SYMTestPriority 		High
  1206 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1207 //! @SYMTestExpectedResults 	KErrArgument
  1208 //! @SYMTestType 		UT
  1209 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST62
  1210 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0062
  1211 
  1212 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0063
  1213 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0063
  1214 //! @SYMTestCaseDesc 		Test corrupt CMS data decoding. Corrupt Tag.
  1215 //! @SYMPREQ 			PREQ968
  1216 //! @SYMTestPriority 		High
  1217 //! @SYMTestActions 		Test corrupt CMS data decoding. 
  1218 //! @SYMTestExpectedResults 	KErrArgument
  1219 //! @SYMTestType 		UT
  1220 RUN_TEST_STEP 100 tpkcs7server CMSDataDecoding C:\tpkcs7\tcms.ini TEST63
  1221 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0063
  1222 
  1223 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0064
  1224 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0064
  1225 //! @SYMTestCaseDesc 		Test corrupt CMS data decoding. Corrupt class.
  1226 //! @SYMPREQ 			PREQ968
  1227 //! @SYMTestPriority 		High
  1228 //! @SYMTestActions 		Test corrupt CMS data decoding. 
  1229 //! @SYMTestExpectedResults 	KErrArgument
  1230 //! @SYMTestType 		UT
  1231 RUN_TEST_STEP 100 tpkcs7server CMSDataDecoding C:\tpkcs7\tcms.ini TEST64
  1232 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0064
  1233 
  1234 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0065
  1235 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0065
  1236 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt explicit tag of encapsulated content info.
  1237 //! @SYMPREQ 			PREQ968
  1238 //! @SYMTestPriority 		High
  1239 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1240 //! @SYMTestExpectedResults 	KErrArgument
  1241 //! @SYMTestType 		UT
  1242 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST65
  1243 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0065
  1244 
  1245 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0066
  1246 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0066
  1247 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt data content tag of encapsulated content info.
  1248 //! @SYMPREQ 			PREQ968
  1249 //! @SYMTestPriority 		High
  1250 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1251 //! @SYMTestExpectedResults 	KErrArgument
  1252 //! @SYMTestType 		UT
  1253 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST66
  1254 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0066
  1255 
  1256 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0067
  1257 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0067
  1258 //! @SYMTestCaseDesc 		Test corrupt CMS signed data decoding. Corrupt explicit tag of content info.
  1259 //! @SYMPREQ 			PREQ968
  1260 //! @SYMTestPriority 		High
  1261 //! @SYMTestActions 		Test corrupt CMS signed data decoding. 
  1262 //! @SYMTestExpectedResults 	KErrArgument
  1263 //! @SYMTestType 		UT
  1264 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tcms.ini TEST67
  1265 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0067
  1266 
  1267 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0073
  1268 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0073
  1269 //! @SYMTestCaseDesc 		Decode digested type in CMS content info
  1270 //! @SYMPREQ 			PREQ968
  1271 //! @SYMTestPriority 		High
  1272 //! @SYMTestActions 		Test decoding of digested data type
  1273 //! @SYMTestExpectedResults 	KErrArgument
  1274 //! @SYMTestType 		UT
  1275 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tcms.ini TEST73
  1276 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0073
  1277 
  1278 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0074
  1279 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0074
  1280 //! @SYMTestCaseDesc 		Decode enveloped type in CMS content info
  1281 //! @SYMPREQ 			PREQ968
  1282 //! @SYMTestPriority 		High
  1283 //! @SYMTestActions 		Test decoding of enveloped data type
  1284 //! @SYMTestExpectedResults 	KErrArgument
  1285 //! @SYMTestType 		UT
  1286 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tcms.ini TEST74
  1287 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0074
  1288 
  1289 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0075
  1290 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0075
  1291 //! @SYMTestCaseDesc 		Decode encrypted type in CMS content info
  1292 //! @SYMPREQ 			PREQ968
  1293 //! @SYMTestPriority 		High
  1294 //! @SYMTestActions 		Test decoding of encrypted data type
  1295 //! @SYMTestExpectedResults 	KErrArgument
  1296 //! @SYMTestType 		UT
  1297 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tcms.ini TEST75
  1298 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0075
  1299 
  1300 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0076
  1301 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS-0076
  1302 //! @SYMTestCaseDesc 		Decode authenticated type in CMS content info
  1303 //! @SYMPREQ 			PREQ968
  1304 //! @SYMTestPriority		High
  1305 //! @SYMTestActions 		Test decoding of authenticated data type
  1306 //! @SYMTestExpectedResults 	KErrArgument
  1307 //! @SYMTestType 		UT
  1308 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tcms.ini TEST76
  1309 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS-0076
  1310 
  1311 
  1312 
  1313