os/security/cryptoservices/certificateandkeymgmt/tpkcs7/scripts/tinteg_cms.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 // tinteg_cms.script
    17 // Integration tests for CMS (Cryptographic message sintax)
    18 
    19 LOAD_SUITE tpkcs7server
    20 
    21 
    22 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0001
    23 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0001
    24 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
    25 //!                  		encoding, decoding and validation. 
    26 //!             		Number of signatures:1
    27 //!				The signing key: RSA key
    28 //!             		Digest Algorithm: SHA1
    29 //!				Signer identifier: issuer and serial number 
    30 //!				Signed data content: Dettached
    31 //!				Hash available: yes
    32 //!				Certificates provided by User: Yes
    33 //!				Certificates attached: Yes
    34 //! @SYMPREQ 			PREQ968
    35 //! @SYMTestPriority 		Critical
    36 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
    37 //! @SYMTestExpectedResults 	successfully validated
    38 //! @SYMTestType 		CIT
    39 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0001
    40 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0001
    41 
    42 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0002
    43 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0002
    44 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
    45 //!                  		encoding, decoding and validation. 
    46 //!             		Number of signatures:1
    47 //!				The signing key: RSA key
    48 //!             		Digest Algorithm: MD2
    49 //!				Signer identifier: suject Key ID extension 
    50 //!				Signed data content: Dettached
    51 //!				Hash available: yes
    52 //!				Certificates provided by User: Yes
    53 //!				Certificates attached: Not
    54 //! @SYMPREQ 			PREQ968
    55 //! @SYMTestPriority 		Critical
    56 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
    57 //! @SYMTestExpectedResults 	successfully validated
    58 //! @SYMTestType 		CIT
    59 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0002
    60 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0002
    61 
    62 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0003
    63 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0003
    64 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
    65 //!                  		encoding, decoding and validation. 
    66 //!             		Number of signatures:1
    67 //!				The signing key: RSA key
    68 //!             		Digest Algorithm: MD5
    69 //!				Signer identifier: issuer and serial number 
    70 //!				Signed data content: Dettached
    71 //!				Hash available: yes
    72 //!				Certificates provided by User: Yes
    73 //!				Certificates attached: Yes
    74 //! @SYMPREQ 			PREQ968
    75 //! @SYMTestPriority 		Critical
    76 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
    77 //! @SYMTestExpectedResults 	successfully validated
    78 //! @SYMTestType 		CIT
    79 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0003
    80 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0003
    81 
    82 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0004
    83 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0004
    84 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
    85 //!                  		encoding, decoding and validation. 
    86 //!             		Number of signatures:1
    87 //!				The signing key: DSA key
    88 //!             		Digest Algorithm: SHA1
    89 //!				Signer identifier: issuer and serial number 
    90 //!				Signed data content: Dettached
    91 //!				Hash available: yes
    92 //!				Certificates provided by User: Yes
    93 //!				Certificates attached: Yes
    94 //! @SYMPREQ 			PREQ968
    95 //! @SYMTestPriority 		Critical
    96 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
    97 //! @SYMTestExpectedResults 	successfully validated
    98 //! @SYMTestType 		CIT
    99 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0004
   100 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0004
   101 
   102 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0005
   103 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0005
   104 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   105 //!                  		encoding, decoding and validation. 
   106 //!             		Number of signatures:1
   107 //!				The signing key: DSA key
   108 //!             		Digest Algorithm: SHA1
   109 //!				Signer identifier: suject Key ID extension 
   110 //!				Signed data content: Dettached
   111 //!				Hash available: yes
   112 //!				Certificates provided by User: Yes
   113 //!				Certificates attached: Not
   114 //! @SYMPREQ 			PREQ968
   115 //! @SYMTestPriority 		Critical
   116 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   117 //! @SYMTestExpectedResults 	successfully validated
   118 //! @SYMTestType 		CIT
   119 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0005
   120 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0005
   121 
   122 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0006
   123 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0006
   124 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   125 //!                  		encoding, decoding and validation. 
   126 //!             		Number of signatures:1 (attribute certificate)
   127 //!				The signing key: DSA key
   128 //!             		Digest Algorithm: SHA1
   129 //!				Signer identifier: issuer and serial number 
   130 //!				Signed data content: Dettached
   131 //!				Hash available: yes
   132 //!				Certificates provided by User: Yes
   133 //!				Certificates attached: yet
   134 //! @SYMPREQ 			PREQ968
   135 //! @SYMTestPriority 		Critical
   136 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   137 //! @SYMTestExpectedResults 	successfully validated
   138 //! @SYMTestType 		CIT
   139 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0006
   140 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0006
   141 
   142 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0007
   143 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0007
   144 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   145 //!                  		encoding, decoding and validation. 
   146 //!             		Number of signatures:1 (attribute certificate)
   147 //!				The signing key: DSA key
   148 //!             		Digest Algorithm: SHA1
   149 //!				Signer identifier: issuer and serial number 
   150 //!				Signed data content: Dettached
   151 //!				Hash available: yes
   152 //!				Certificates provided by User: Yes
   153 //!				Certificates attached: yet
   154 //! @SYMPREQ 			PREQ968
   155 //! @SYMTestPriority 		Critical
   156 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   157 //! @SYMTestExpectedResults 	successfully validated
   158 //! @SYMTestType 		CIT
   159 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0006
   160 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0007
   161 
   162 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0008
   163 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0008
   164 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   165 //!                  		encoding, decoding and validation. 
   166 //!             		Number of signatures:1 (attribute certificate)
   167 //!				The signing key: RSA key
   168 //!             		Digest Algorithm: SHA1
   169 //!				Signer identifier: issuer and serial number 
   170 //!				Signed data content: Dettached
   171 //!				Hash available: yes
   172 //!				Certificates provided by User: Yes
   173 //!				Certificates attached: not
   174 //! @SYMPREQ 			PREQ968
   175 //! @SYMTestPriority 		Critical
   176 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   177 //! @SYMTestExpectedResults 	successfully validated
   178 //! @SYMTestType 		CIT
   179 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0007
   180 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0008
   181 
   182 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0009
   183 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0009
   184 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   185 //!                  		encoding, decoding and validation. 
   186 //!             		Number of signatures:3 
   187 //!				The signing key: All 3; DSA key
   188 //!             		Digest Algorithm: SHA1
   189 //!				Signer identifier: suject Key ID extension
   190 //!				Signed data content: Dettached
   191 //!				Hash available: yes
   192 //!				Certificates provided by User: Yes
   193 //!				Certificates attached: yes
   194 //! @SYMPREQ 			PREQ968
   195 //! @SYMTestPriority 		Critical
   196 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   197 //! @SYMTestExpectedResults 	successfully validated
   198 //! @SYMTestType 		CIT
   199 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0008
   200 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0009
   201 
   202 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0010
   203 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0010
   204 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   205 //!                  		encoding, decoding and validation. 
   206 //!             		Number of signatures:3 
   207 //!				The signing key: All 3; RSA key
   208 //!             		Digest Algorithm: MD2
   209 //!				Signer identifier: n1,n2 suject Key ID extension, n3 issuer and serial number 
   210 //!				Signed data content: Dettached
   211 //!				Hash available: yes
   212 //!				Certificates provided by User: Yes
   213 //!				Certificates attached: yes
   214 //! @SYMPREQ 			PREQ968
   215 //! @SYMTestPriority 		Critical
   216 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   217 //! @SYMTestExpectedResults 	successfully validated
   218 //! @SYMTestType 		CIT
   219 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0009
   220 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0010
   221 
   222 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0011
   223 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0011
   224 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   225 //!                  		encoding, decoding and validation. 
   226 //!             		Number of signatures:3 
   227 //!				The signing key: n1 RSA, n2, n3 DSA
   228 //!             		Digest Algorithm: n1,n2 RSA, n3 MD5
   229 //!				Signer identifier: n1 suject Key ID extension, n2,n3 issuer and serial number 
   230 //!				Signed data content: Dettached
   231 //!				Hash available: yes
   232 //!				Certificates provided by User: Yes
   233 //!				Certificates attached: yes
   234 //! @SYMPREQ 			PREQ968
   235 //! @SYMTestPriority 		Critical
   236 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   237 //! @SYMTestExpectedResults 	successfully validated
   238 //! @SYMTestType 		CIT
   239 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0010
   240 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0011
   241 
   242 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0012
   243 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0012
   244 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   245 //!                  		encoding, decoding and validation. 
   246 //!             		Number of signatures:3 
   247 //!				The signing key: n1 RSA, n2, n3 DSA
   248 //!             		Digest Algorithm: n1,n2 RSA, n3 MD5
   249 //!				Signer identifier: n1 suject Key ID extension, n2,n3 issuer and serial number 
   250 //!				Signed data content: Dettached
   251 //!				Hash available: yes
   252 //!				Certificates provided by User: Yes
   253 //!				Certificates attached: not
   254 //! @SYMPREQ 			PREQ968
   255 //! @SYMTestPriority 		Critical
   256 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   257 //! @SYMTestExpectedResults 	successfully validated
   258 //! @SYMTestType 		CIT
   259 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0011
   260 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0012
   261 
   262 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0013
   263 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0013
   264 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   265 //!                  		encoding, decoding and validation. 
   266 //!             		Number of signatures:3 
   267 //!				The signing key: n1,n2 RSA, n3 DSA
   268 //!             		Digest Algorithm: All SHA1
   269 //!				Signer identifier: All suject Key ID extension
   270 //!				Signed data content: Dettached
   271 //!				Hash available: yes
   272 //!				Certificates provided by User: Yes
   273 //!				Certificates attached: not
   274 //! @SYMPREQ 			PREQ968
   275 //! @SYMTestPriority 		Critical
   276 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   277 //! @SYMTestExpectedResults 	successfully validated
   278 //! @SYMTestType 		CIT
   279 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0012
   280 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0013
   281 
   282 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0014
   283 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0014
   284 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   285 //!                  		encoding, decoding and validation. 
   286 //!             		Number of signatures:3 
   287 //!				The signing key: all RSA
   288 //!             		Digest Algorithm: All SHA1
   289 //!				Signer identifier: All issuer and serial number
   290 //!				Signed data content: Dettached
   291 //!				Hash available: yes
   292 //!				Certificates provided by User: Yes
   293 //!				Certificates attached: yes
   294 //! @SYMPREQ 			PREQ968
   295 //! @SYMTestPriority 		Critical
   296 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   297 //! @SYMTestExpectedResults 	successfully validated
   298 //! @SYMTestType 		CIT
   299 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0013
   300 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0014
   301 
   302 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0015
   303 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0015
   304 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in single step with detached data,
   305 //!                  		encoding, decoding and validation. 
   306 //!             		Number of signatures:3 (+1 attribute certificate)
   307 //!				The signing key: all DSA
   308 //!             		Digest Algorithm: All SHA1
   309 //!				Signer identifier: All issuer and serial number
   310 //!				Signed data content: Dettached
   311 //!				Hash available: yes
   312 //!				Certificates provided by User: Yes
   313 //!				Certificates attached: yes
   314 //! @SYMPREQ 			PREQ968
   315 //! @SYMTestPriority 		Critical
   316 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   317 //! @SYMTestExpectedResults 	successfully validated
   318 //! @SYMTestType 		CIT
   319 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0014
   320 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0015
   321 
   322 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0016
   323 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0016
   324 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   325 //!                  		encoding, decoding and validation. 
   326 //!             		Number of signatures:1
   327 //!				The signing key: RSA key
   328 //!             		Digest Algorithm: SHA1
   329 //!				Signer identifier: issuer and serial number 
   330 //!				Signed data content: Dettached
   331 //!				Hash available: yes
   332 //!				Certificates provided by User: Yes
   333 //!				Certificates attached: yes
   334 //! @SYMPREQ 			PREQ968
   335 //! @SYMTestPriority 		Critical
   336 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   337 //! @SYMTestExpectedResults 	successfully validated
   338 //! @SYMTestType 		CIT
   339 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0001
   340 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0016
   341 
   342 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0017
   343 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0017
   344 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   345 //!                  		encoding, decoding and validation. 
   346 //!             		Number of signatures:1
   347 //!				The signing key: RSA key
   348 //!             		Digest Algorithm: MD2
   349 //!				Signer identifier: suject Key ID extension
   350 //!				Signed data content: Dettached
   351 //!				Hash available: yes
   352 //!				Certificates provided by User: Yes
   353 //!				Certificates attached: not
   354 //! @SYMPREQ 			PREQ968
   355 //! @SYMTestPriority 		Critical
   356 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   357 //! @SYMTestExpectedResults 	successfully validated
   358 //! @SYMTestType 		CIT
   359 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0002
   360 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0017
   361 
   362 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0018
   363 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0018
   364 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   365 //!                  		encoding, decoding and validation. 
   366 //!             		Number of signatures:1
   367 //!				The signing key: RSA key
   368 //!             		Digest Algorithm: MD5
   369 //!				Signer identifier: issuer and serial number 
   370 //!				Signed data content: Dettached
   371 //!				Hash available: yes
   372 //!				Certificates provided by User: Yes
   373 //!				Certificates attached: yes
   374 //! @SYMPREQ 			PREQ968
   375 //! @SYMTestPriority 		Critical
   376 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   377 //! @SYMTestExpectedResults 	successfully validated
   378 //! @SYMTestType 		CIT
   379 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0003
   380 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0018
   381 
   382 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0019
   383 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0019
   384 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   385 //!                  		encoding, decoding and validation. 
   386 //!             		Number of signatures:1
   387 //!				The signing key: DSA key
   388 //!             		Digest Algorithm: SHA1
   389 //!				Signer identifier: issuer and serial number 
   390 //!				Signed data content: Dettached
   391 //!				Hash available: yes
   392 //!				Certificates provided by User: Yes
   393 //!				Certificates attached: yes
   394 //! @SYMPREQ 			PREQ968
   395 //! @SYMTestPriority 		Critical
   396 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   397 //! @SYMTestExpectedResults 	successfully validated
   398 //! @SYMTestType 		CIT
   399 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0004
   400 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0019
   401 
   402 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0020
   403 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0020
   404 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   405 //!                  		encoding, decoding and validation. 
   406 //!             		Number of signatures:1
   407 //!				The signing key: DSA key
   408 //!             		Digest Algorithm: SHA1
   409 //!				Signer identifier: suject Key ID extension
   410 //!				Signed data content: Dettached
   411 //!				Hash available: yes
   412 //!				Certificates provided by User: Yes
   413 //!				Certificates attached: not
   414 //! @SYMPREQ 			PREQ968
   415 //! @SYMTestPriority 		Critical
   416 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   417 //! @SYMTestExpectedResults 	successfully validated
   418 //! @SYMTestType 		CIT
   419 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0005
   420 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0020
   421 
   422 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0021
   423 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0021
   424 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   425 //!                  		encoding, decoding and validation. 
   426 //!             		Number of signatures:1 (+ 1 signature attribute)
   427 //!				The signing key: DSA key
   428 //!             		Digest Algorithm: SHA1
   429 //!				Signer identifier: issuer and serial number 
   430 //!				Signed data content: Dettached
   431 //!				Hash available: yes
   432 //!				Certificates provided by User: Yes
   433 //!				Certificates attached: not
   434 //! @SYMPREQ 			PREQ968
   435 //! @SYMTestPriority 		Critical
   436 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   437 //! @SYMTestExpectedResults 	successfully validated
   438 //! @SYMTestType 		CIT
   439 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0006
   440 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0021
   441 
   442 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0022
   443 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0022
   444 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   445 //!                  		encoding, decoding and validation. 
   446 //!             		Number of signatures: 3
   447 //!				The signing key: ALL RSA key
   448 //!             		Digest Algorithm: All SHA1
   449 //!				Signer identifier: issuer and serial number 
   450 //!				Signed data content: Dettached
   451 //!				Hash available: yes
   452 //!				Certificates provided by User: Yes
   453 //!				Certificates attached: not
   454 //! @SYMPREQ 			PREQ968
   455 //! @SYMTestPriority 		Critical
   456 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   457 //! @SYMTestExpectedResults 	successfully validated
   458 //! @SYMTestType 		CIT
   459 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0007
   460 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0022
   461 
   462 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0023
   463 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0023
   464 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   465 //!                  		encoding, decoding and validation. 
   466 //!             		Number of signatures: 3
   467 //!				The signing key: All RSA
   468 //!             		Digest Algorithm: n1 & n2 SHA1, n3 MD5
   469 //!				Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number
   470 //!				Signed data content: Dettached
   471 //!				Hash available: yes
   472 //!				Certificates provided by User: Yes
   473 //!				Certificates attached: yes
   474 //! @SYMPREQ 			PREQ968
   475 //! @SYMTestPriority 		Critical
   476 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   477 //! @SYMTestExpectedResults 	successfully validated
   478 //! @SYMTestType 		CIT
   479 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0008
   480 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0023
   481 
   482 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0024
   483 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0024
   484 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   485 //!                  		encoding, decoding and validation. 
   486 //!             		Number of signatures: 3
   487 //!				The signing key: n1 RSA, n2 & n3 DSA
   488 //!             		Digest Algorithm: All SHA1
   489 //!				Signer identifier: n1 issuer and serial number, n2 & n3 suject Key ID extension
   490 //!				Signed data content: Dettached
   491 //!				Hash available: yes
   492 //!				Certificates provided by User: Yes
   493 //!				Certificates attached: yes
   494 //! @SYMPREQ 			PREQ968
   495 //! @SYMTestPriority 		Critical
   496 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   497 //! @SYMTestExpectedResults 	successfully validated
   498 //! @SYMTestType 		CIT
   499 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0009
   500 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0024
   501 
   502 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0025
   503 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0025
   504 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data,
   505 //!                  		encoding, decoding and validation. 
   506 //!             		Number of signatures: 3
   507 //!				The signing key: 3 DSA (+1 Attribute certificate)
   508 //!             		Digest Algorithm: All SHA1
   509 //!				Signer identifier: All issuer and serial number
   510 //!				Signed data content: Dettached
   511 //!				Hash available: yes
   512 //!				Certificates provided by User: Yes
   513 //!				Certificates attached: not
   514 //! @SYMPREQ 			PREQ968
   515 //! @SYMTestPriority 		Critical
   516 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   517 //! @SYMTestExpectedResults 	successfully validated
   518 //! @SYMTestType 		CIT
   519 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0010
   520 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0025
   521 
   522 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0026
   523 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0026
   524 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data without providing hash,
   525 //!                  		encoding, decoding and validation. 
   526 //!             		Number of signatures:1
   527 //!				The signing key: RSA key
   528 //!             		Digest Algorithm: SHA1
   529 //!				Signer identifier: issuer and serial number 
   530 //!				Signed data content: Dettached
   531 //!				Hash available: not
   532 //!				Certificates provided by User: Yes
   533 //!				Certificates attached: Yes
   534 //! @SYMPREQ 			PREQ968
   535 //! @SYMTestPriority 		Critical
   536 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   537 //! @SYMTestExpectedResults 	successfully validated
   538 //! @SYMTestType 		CIT
   539 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0001
   540 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0026
   541 
   542 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0027
   543 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0027
   544 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data without providing hash,
   545 //!                  		encoding, decoding and validation. 
   546 //!             		Number of signatures:1
   547 //!				The signing key: DSA key
   548 //!             		Digest Algorithm: SHA1
   549 //!				Signer identifier: issuer and serial number 
   550 //!				Signed data content: Dettached
   551 //!				Hash available: not
   552 //!				Certificates provided by User: Yes
   553 //!				Certificates attached: Yes
   554 //! @SYMPREQ 			PREQ968
   555 //! @SYMTestPriority 		Critical
   556 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   557 //! @SYMTestExpectedResults 	successfully validated
   558 //! @SYMTestType 		CIT
   559 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0002
   560 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0027
   561 
   562 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0028
   563 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0028
   564 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data without providing hash,
   565 //!                  		encoding, decoding and validation. 
   566 //!             		Number of signatures:1 (+1 attribute certificate)
   567 //!				The signing key: DSA key
   568 //!             		Digest Algorithm: sha1
   569 //!				Signer identifier: suject Key ID extension 
   570 //!				Signed data content: Dettached
   571 //!				Hash available: not
   572 //!				Certificates provided by User: Yes
   573 //!				Certificates attached: not
   574 //! @SYMPREQ 			PREQ968
   575 //! @SYMTestPriority 		Critical
   576 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   577 //! @SYMTestExpectedResults 	successfully validated
   578 //! @SYMTestType 		CIT
   579 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0003
   580 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0028
   581 
   582 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0029
   583 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0029
   584 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data without providing hash,
   585 //!                  		encoding, decoding and validation. 
   586 //!             		Number of signatures:3
   587 //!				The signing key: All RSA 
   588 //!             		Digest Algorithm: All MD5
   589 //!				Signer identifier: n1 & n3 suject Key ID extension, n2 issuer and serial number 
   590 //!				Signed data content: Dettached
   591 //!				Hash available: not
   592 //!				Certificates provided by User: Yes
   593 //!				Certificates attached: yes
   594 //! @SYMPREQ 			PREQ968
   595 //! @SYMTestPriority 		Critical
   596 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   597 //! @SYMTestExpectedResults 	successfully validated
   598 //! @SYMTestType 		CIT
   599 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0004
   600 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0029
   601 
   602 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0030
   603 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0030
   604 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data without providing hash,
   605 //!                  		encoding, decoding and validation. 
   606 //!             		Number of signatures:3
   607 //!				The signing key: n1 & n2 RSA, n3 DSA 
   608 //!             		Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
   609 //!				Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number 
   610 //!				Signed data content: Dettached
   611 //!				Hash available: not
   612 //!				Certificates provided by User: Yes
   613 //!				Certificates attached: not
   614 //! @SYMPREQ 			PREQ968
   615 //! @SYMTestPriority 		Critical
   616 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   617 //! @SYMTestExpectedResults 	successfully validated
   618 //! @SYMTestType 		CIT
   619 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0005
   620 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0030
   621 
   622 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0031
   623 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0031
   624 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data without providing hash,
   625 //!                  		encoding, decoding and validation. 
   626 //!             		Number of signatures:3 (+ 1 attribute certificate)
   627 //!				The signing key: all DSA 
   628 //!             		Digest Algorithm: All SHA1
   629 //!				Signer identifier: All issuer and serial number 
   630 //!				Signed data content: Dettached
   631 //!				Hash available: not
   632 //!				Certificates provided by User: Yes
   633 //!				Certificates attached: yes
   634 //! @SYMPREQ 			PREQ968
   635 //! @SYMTestPriority 		Critical
   636 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   637 //! @SYMTestExpectedResults 	successfully validated
   638 //! @SYMTestType 		CIT
   639 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0006
   640 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0031
   641 
   642 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0032
   643 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0032
   644 //! @SYMTestCaseDesc 		Test CMS Signed Data creation in two step with detached data without providing hash,
   645 //!                  		encoding, decoding and validation. 
   646 //!             		Number of signatures:3 (+ 1 attribute certificate)
   647 //!				The signing key: all DSA 
   648 //!             		Digest Algorithm: All SHA1
   649 //!				Signer identifier: All issuer and serial number 
   650 //!				Signed data content: Dettached
   651 //!				Hash available: not
   652 //!				Certificates provided by User: Yes
   653 //!				Certificates attached: yes
   654 //! @SYMPREQ 			PREQ968
   655 //! @SYMTestPriority 		Critical
   656 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   657 //! @SYMTestExpectedResults 	successfully validated
   658 //! @SYMTestType 		CIT
   659 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0006
   660 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0032
   661 
   662 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0033
   663 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0033
   664 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
   665 //!                  		encoding, decoding and validation. 
   666 //!             		Number of signatures: 1
   667 //!				The signing key: RSA 
   668 //!             		Digest Algorithm: SHA1
   669 //!				Signer identifier: issuer and serial number 
   670 //!				Signed data content: Attached
   671 //!				Hash available: not
   672 //!				Certificates provided by User: Yes
   673 //!				Certificates attached: yes
   674 //! @SYMPREQ 			PREQ968
   675 //! @SYMTestPriority 		Critical
   676 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   677 //! @SYMTestExpectedResults 	successfully validated
   678 //! @SYMTestType 		CIT
   679 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0001
   680 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0033
   681 
   682 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0034
   683 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0034
   684 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
   685 //!                  		encoding, decoding and validation. 
   686 //!             		Number of signatures: 1
   687 //!				The signing key: RSA 
   688 //!             		Digest Algorithm: MD2
   689 //!				Signer identifier: suject Key ID extension
   690 //!				Signed data content: Attached
   691 //!				Hash available: not
   692 //!				Certificates provided by User: Yes
   693 //!				Certificates attached: not
   694 //! @SYMPREQ 			PREQ968
   695 //! @SYMTestPriority 		Critical
   696 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   697 //! @SYMTestExpectedResults 	successfully validated
   698 //! @SYMTestType 		CIT
   699 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0002
   700 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0034
   701 
   702 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0035
   703 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0035
   704 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
   705 //!                  		encoding, decoding and validation. 
   706 //!             		Number of signatures: 1
   707 //!				The signing key: RSA 
   708 //!             		Digest Algorithm: MD5
   709 //!				Signer identifier: issuer and serial number 
   710 //!				Signed data content: Attached
   711 //!				Hash available: not
   712 //!				Certificates provided by User: Yes
   713 //!				Certificates attached: yes
   714 //! @SYMPREQ 			PREQ968
   715 //! @SYMTestPriority 		Critical
   716 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   717 //! @SYMTestExpectedResults 	successfully validated
   718 //! @SYMTestType 		CIT
   719 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0003
   720 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0035
   721 
   722 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0036
   723 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0036
   724 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
   725 //!                  		encoding, decoding and validation. 
   726 //!             		Number of signatures: 1
   727 //!				The signing key: DSA 
   728 //!             		Digest Algorithm: SHA1
   729 //!				Signer identifier: issuer and serial number 
   730 //!				Signed data content: Attached
   731 //!				Hash available: not
   732 //!				Certificates provided by User: Yes
   733 //!				Certificates attached: not
   734 //! @SYMPREQ 			PREQ968
   735 //! @SYMTestPriority 		Critical
   736 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   737 //! @SYMTestExpectedResults 	successfully validated
   738 //! @SYMTestType 		CIT
   739 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0004
   740 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0036
   741 
   742 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0037
   743 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0037
   744 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
   745 //!                  		encoding, decoding and validation. 
   746 //!             		Number of signatures: 1 (+a attribute certificate)
   747 //!				The signing key: DSA 
   748 //!             		Digest Algorithm: SHA1
   749 //!				Signer identifier: issuer and serial number 
   750 //!				Signed data content: Attached
   751 //!				Hash available: not
   752 //!				Certificates provided by User: Yes
   753 //!				Certificates attached: not
   754 //! @SYMPREQ 			PREQ968
   755 //! @SYMTestPriority 		Critical
   756 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   757 //! @SYMTestExpectedResults 	successfully validated
   758 //! @SYMTestType 		CIT
   759 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0005
   760 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0037
   761 
   762 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0038
   763 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0038
   764 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
   765 //!                  		encoding, decoding and validation. 
   766 //!             		Number of signatures: 3
   767 //!				The signing key: RSA 
   768 //!             		Digest Algorithm: All MD2
   769 //!				Signer identifier: All suject Key ID extension.
   770 //!				Signed data content: Attached
   771 //!				Hash available: not
   772 //!				Certificates provided by User: Yes
   773 //!				Certificates attached: yes
   774 //! @SYMPREQ 			PREQ968
   775 //! @SYMTestPriority 		Critical
   776 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   777 //! @SYMTestExpectedResults 	successfully validated
   778 //! @SYMTestType 		CIT
   779 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0006
   780 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0038
   781 
   782 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0039
   783 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0039
   784 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
   785 //!                  		encoding, decoding and validation. 
   786 //!             		Number of signatures: 3
   787 //!				The signing key: RSA 
   788 //!             		Digest Algorithm: All MD5
   789 //!				Signer identifier: n1 & n3 suject Key ID extension, n2 issuer and serial number 
   790 //!				Signed data content: Attached
   791 //!				Hash available: not
   792 //!				Certificates provided by User: Yes
   793 //!				Certificates attached: yes
   794 //! @SYMPREQ 			PREQ968
   795 //! @SYMTestPriority 		Critical
   796 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   797 //! @SYMTestExpectedResults 	successfully validated
   798 //! @SYMTestType 		CIT
   799 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0007
   800 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0039
   801 
   802 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0040
   803 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0040
   804 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
   805 //!                  		encoding, decoding and validation. 
   806 //!             		Number of signatures: 3
   807 //!				The signing key: n1 RSA, n2 & n3 DSA 
   808 //!             		Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
   809 //!				Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number 
   810 //!				Signed data content: Attached
   811 //!				Hash available: not
   812 //!				Certificates provided by User: Yes
   813 //!				Certificates attached: not
   814 //! @SYMPREQ 			PREQ968
   815 //! @SYMTestPriority 		Critical
   816 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   817 //! @SYMTestExpectedResults 	successfully validated
   818 //! @SYMTestType 		CIT
   819 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0008
   820 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0040
   821 
   822 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0041
   823 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0041
   824 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data without providing hash,
   825 //!                  		encoding, decoding and validation. 
   826 //!             		Number of signatures: 3 (+1 X509 certificate)
   827 //!				The signing key: All DSA 
   828 //!             		Digest Algorithm: All SHA1
   829 //!				Signer identifier: All issuer and serial number 
   830 //!				Signed data content: Attached
   831 //!				Hash available: not
   832 //!				Certificates provided by User: Yes
   833 //!				Certificates attached: not
   834 //! @SYMPREQ 			PREQ968
   835 //! @SYMTestPriority 		Critical
   836 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   837 //! @SYMTestExpectedResults 	successfully validated
   838 //! @SYMTestType 		CIT
   839 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0009
   840 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0041
   841 
   842 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0042
   843 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0042
   844 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
   845 //!                  		encoding, decoding and validation. 
   846 //!             		Number of signatures: 1
   847 //!				The signing key: RSA 
   848 //!             		Digest Algorithm: SHA1
   849 //!				Signer identifier: issuer and serial number 
   850 //!				Signed data content: Attached
   851 //!				Hash available: yes
   852 //!				Certificates provided by User: Yes
   853 //!				Certificates attached: yes
   854 //! @SYMPREQ 			PREQ968
   855 //! @SYMTestPriority 		Critical
   856 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   857 //! @SYMTestExpectedResults 	successfully validated
   858 //! @SYMTestType 		CIT
   859 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0001
   860 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0042
   861 
   862 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0043
   863 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0043
   864 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
   865 //!                  		encoding, decoding and validation. 
   866 //!             		Number of signatures: 1
   867 //!				The signing key: RSA 
   868 //!             		Digest Algorithm: MD5
   869 //!				Signer identifier: issuer and serial number 
   870 //!				Signed data content: Attached
   871 //!				Hash available: yes
   872 //!				Certificates provided by User: Yes
   873 //!				Certificates attached: yes
   874 //! @SYMPREQ 			PREQ968
   875 //! @SYMTestPriority 		Critical
   876 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   877 //! @SYMTestExpectedResults 	successfully validated
   878 //! @SYMTestType 		CIT
   879 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0002
   880 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0043
   881 
   882 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0044
   883 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0044
   884 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
   885 //!                  		encoding, decoding and validation. 
   886 //!             		Number of signatures: 1
   887 //!				The signing key: DSA 
   888 //!             		Digest Algorithm: SHA1
   889 //!				Signer identifier: suject Key ID extension
   890 //!				Signed data content: Attached
   891 //!				Hash available: yes
   892 //!				Certificates provided by User: not
   893 //!				Certificates attached: not
   894 //! @SYMPREQ 			PREQ968
   895 //! @SYMTestPriority 		Critical
   896 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   897 //! @SYMTestExpectedResults 	successfully validated
   898 //! @SYMTestType 		CIT
   899 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0003
   900 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0044
   901 
   902 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0045
   903 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0045
   904 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
   905 //!                  		encoding, decoding and validation. 
   906 //!             		Number of signatures: 3
   907 //!				The signing key: All 3 RSA 
   908 //!             		Digest Algorithm: All 3 SHA1
   909 //!				Signer identifier: All issuer and serial number 
   910 //!				Signed data content: Attached
   911 //!				Hash available: yes
   912 //!				Certificates provided by User: not
   913 //!				Certificates attached: not
   914 //! @SYMPREQ 			PREQ968
   915 //! @SYMTestPriority 		Critical
   916 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   917 //! @SYMTestExpectedResults 	successfully validated
   918 //! @SYMTestType 		CIT
   919 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0004
   920 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0045
   921 
   922 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0046
   923 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0046
   924 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
   925 //!                  		encoding, decoding and validation. 
   926 //!             		Number of signatures: 3 (+1 attribute certificate)
   927 //!				The signing key: All 3 RSA 
   928 //!             		Digest Algorithm: n1 SHA1, n2 MD2, n3 MD5
   929 //!				Signer identifier: All issuer and serial number 
   930 //!				Signed data content: Attached
   931 //!				Hash available: yes
   932 //!				Certificates provided by User: not
   933 //!				Certificates attached: not
   934 //! @SYMPREQ 			PREQ968
   935 //! @SYMTestPriority 		Critical
   936 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   937 //! @SYMTestExpectedResults 	successfully validated
   938 //! @SYMTestType 		CIT
   939 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0005
   940 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0046
   941 
   942 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0047
   943 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0047
   944 //! @SYMTestCaseDesc 		Test CMS Test CMS Signed Data creation in two step with attached data (providing hash),
   945 //!                  		encoding, decoding and validation. 
   946 //!             		Number of signatures: 3 
   947 //!				The signing key: All 3 RSA 
   948 //!             		Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
   949 //!				Signer identifier: All issuer and serial number 
   950 //!				Signed data content: Attached
   951 //!				Hash available: yes
   952 //!				Certificates provided by User: yes
   953 //!				Certificates attached: yes
   954 //! @SYMPREQ 			PREQ968
   955 //! @SYMTestPriority 		Critical
   956 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation. 
   957 //! @SYMTestExpectedResults 	successfully validated
   958 //! @SYMTestType 		CIT
   959 RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0006
   960 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0047
   961 
   962 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0001
   963 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0001
   964 //! @SYMTestCaseDesc 		Test to ensure that CCmsContentInfo can deal with small amount of unsigned data.
   965 //! @SYMPREQ 			PREQ968
   966 //! @SYMTestPriority 		Critical
   967 //! @SYMTestActions 		Call CCmsContentInfo providing only 4 bytes of data for the aContentData content value.
   968 //! @SYMTestExpectedResults 	Object is constructed without error, and is equal to expected result 
   969 //! @SYMTestType 		CIT
   970 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-UNSIGNED-0001
   971 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0001
   972 
   973 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0002
   974 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0002
   975 //! @SYMTestCaseDesc 		Test to ensure that CCmsContentInfo can deal with small amount of unsigned data.
   976 //! @SYMPREQ 			PREQ968
   977 //! @SYMTestPriority 		Critical
   978 //! @SYMTestActions 		Call CCmsContentInfo providing only 500 Kbytes of data for the aContentData content value.
   979 //! @SYMTestExpectedResults 	Object is constructed without error, and is equal to expected result 
   980 //! @SYMTestType 		CIT
   981 RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-UNSIGNED-0002
   982 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0002
   983 
   984 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0001
   985 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_OOM-0001
   986 //! @SYMTestCaseDesc 		Test to To ensure that Symbian a CCmsSignedObject can handle out of memory 
   987 //!                   		conditions gracefully
   988 //!             		Number of signatures: 1 
   989 //!				The signing key:  RSA 
   990 //!             		Digest Algorithm: MD2
   991 //!				Signer identifier: suject Key ID extension
   992 //!				Signed data content: Detached
   993 //!				Certificates provided by User: not
   994 //!				Certificates attached: not
   995 //!             		Construction method: Single Step
   996 //! @SYMPREQ 			PREQ968
   997 //! @SYMTestPriority 		Critical
   998 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation in OOM conditions. 
   999 //! @SYMTestExpectedResults 	Constructor Should return KErrNoMemory, No memory leak is created
  1000 //! @SYMTestType 		CIT
  1001 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0001
  1002 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0001
  1003 
  1004 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0002
  1005 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_OOM-0002
  1006 //! @SYMTestCaseDesc 		Test to To ensure that Symbian a CCmsSignedObject can handle out of memory 
  1007 //!                   		conditions gracefully
  1008 //!             		Number of signatures: 3 
  1009 //!				The signing key:  RSA 
  1010 //!             		Digest Algorithm: n1 & n2 SHA1, n3 MD5
  1011 //!				Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number 
  1012 //!				Signed data content: Detached
  1013 //!				Certificates provided by User: not
  1014 //!				Certificates attached: not
  1015 //!             		Construction method: two Steps
  1016 //! @SYMPREQ 			PREQ968
  1017 //! @SYMTestPriority 		Critical
  1018 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation in OOM conditions. 
  1019 //! @SYMTestExpectedResults 	Constructor Should return KErrNoMemory, No memory leak is created
  1020 //! @SYMTestType 		CIT
  1021 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0002
  1022 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0002
  1023 
  1024 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0003
  1025 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_OOM-0003
  1026 //! @SYMTestCaseDesc 		Test to To ensure that Symbian a CCmsSignedObject can handle out of memory 
  1027 //!                   		conditions gracefully
  1028 //!             		Number of signatures: 3 
  1029 //!				The signing key:  n1 & n2 RSA, n3 DSA 
  1030 //!             		Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
  1031 //!				Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number 
  1032 //!				Signed data content: Detached
  1033 //!				Certificates provided by User: not
  1034 //!				Certificates attached: not
  1035 //!             		Construction method: two Steps & no hash provided
  1036 //! @SYMPREQ 			PREQ968
  1037 //! @SYMTestPriority 		Critical
  1038 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation in OOM conditions. 
  1039 //! @SYMTestExpectedResults 	Constructor Should return KErrNoMemory, No memory leak is created
  1040 //! @SYMTestType 		CIT
  1041 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0003
  1042 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0003
  1043 
  1044 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0004
  1045 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_OOM-0004
  1046 //! @SYMTestCaseDesc 		Test to To ensure that Symbian a CCmsSignedObject can handle out of memory 
  1047 //!                  		 conditions gracefully
  1048 //!             		Number of signatures: 3 
  1049 //!				The signing key:  All RSA
  1050 //!             		Digest Algorithm: All MD2
  1051 //!				Signer identifier: All suject Key ID extension 
  1052 //!				Signed data content: Attached
  1053 //!				Certificates provided by User: yes
  1054 //!				Certificates attached: yes
  1055 //!             		Construction method: two Steps & no hash provided
  1056 //! @SYMPREQ 			PREQ968
  1057 //! @SYMTestPriority 		Critical
  1058 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation in OOM conditions. 
  1059 //! @SYMTestExpectedResults 	Constructor Should return KErrNoMemory, No memory leak is created
  1060 //! @SYMTestType 		CIT
  1061 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0004
  1062 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0004
  1063 
  1064 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0005
  1065 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_OOM-0005
  1066 //! @SYMTestCaseDesc 		Test to To ensure that Symbian a CCmsSignedObject can handle out of memory 
  1067 //!                   		conditions gracefully
  1068 //!             		Number of signatures: 3 
  1069 //!				The signing key:  All RSA
  1070 //!             		Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1
  1071 //!				Signer identifier: All issuer and serial number 
  1072 //!				Signed data content: Attached
  1073 //!				Certificates provided by User: yes
  1074 //!				Certificates attached: yes
  1075 //!             		Construction method: two Steps 
  1076 //! @SYMPREQ 			PREQ968
  1077 //! @SYMTestPriority 		Critical
  1078 //! @SYMTestActions 		Test CMS signed data construction, encoding, decoding and validation in OOM conditions. 
  1079 //! @SYMTestExpectedResults 	Constructor Should return KErrNoMemory, No memory leak is created
  1080 //! @SYMTestType 		CIT
  1081 RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0005
  1082 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_OOM-0005
  1083 
  1084 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0048
  1085 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0048
  1086 //! @SYMTestCaseDesc 		To ensure that CCmsSignedObject returns the appropriate leave error code when the 
  1087 //!                            two stage constructor is used incorrectly; data and hash are null. 
  1088 //!
  1089 //! @SYMPREQ 			PREQ968
  1090 //! @SYMTestPriority 		Critical
  1091 //! @SYMTestActions     	 1. A.- Call the constructor:
  1092 //!                     	CCmsSignedObject* NewL(TCmsContentInfoType aType, TBool aIsDetached,
  1093 //!                     	const TDesC8&  aContentData)  providing a NULL for the aContentData value.
  1094 //!                     	 2. Call SignL method with a NULL hash value.
  1095 //! @SYMTestExpectedResults 	KErrArgument returned
  1096 //! @SYMTestType 		CIT
  1097 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0001
  1098 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0048
  1099 
  1100 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0049
  1101 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0049
  1102 //! @SYMTestCaseDesc 		To ensure that CCmsSignedObject returns the appropriate leave error code when the 
  1103 //!                  		single stage constructor for detached data is used incorrectly; hash is null. . 
  1104 //! @SYMPREQ 			PREQ968
  1105 //! @SYMTestPriority 		Critical
  1106 //! @SYMTestActions 		CCmsSignedObject* NewLC(TCmsContentInfoType aType, const TDesC8& aHashValue, 
  1107 //!                 		TAlgorithmId aDigestAlgorithm, const CRSAPrivateKey& aKey, const CX509Certificate& 
  1108 //!                 		aCert, TBool aAddCertificate) providing a NULL for the aHashValue value.
  1109 //! @SYMTestExpectedResults 	KErrArgument returned
  1110 //! @SYMTestType 		CIT
  1111 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0002
  1112 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0049
  1113 
  1114 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0050
  1115 //! @SYMTestCaseID 		SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0050
  1116 //! @SYMTestCaseDesc 		To ensure that CCmsSignedObject will reject any raw non supported content type with 
  1117 //!                 	 	the appropriate leave error, the type to test for this case 
  1118 //!                  		is unsupported attribute certificate tag value. 
  1119 //! @SYMPREQ 			PREQ968
  1120 //! @SYMTestPriority 		Critical
  1121 //! @SYMTestActions 		TCall the constructor CCmsSignedObject(aContentInfo) where the attribute certificate 
  1122 //!                 		tag has a value of  2. No
  1123 //! @SYMTestExpectedResults	 KErrArgument returned
  1124 //! @SYMTestType 		CIT
  1125 RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0003
  1126 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0050
  1127 
  1128 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0001
  1129 //! @SYMTestCaseID  		SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0001
  1130 //! @SYMTestCaseDesc 		To ensure that CCmsContentInfowill can recognise content of type: Data.
  1131 //! @SYMPREQ 			PREQ968
  1132 //! @SYMTestPriority 		Critical
  1133 //! @SYMTestActions 		TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data 
  1134 //!                 		is raw is of type data (plain) 
  1135 //!
  1136 //!
  1137 //! @SYMTestExpectedResults 	type data returned
  1138 //! @SYMTestType 		CIT
  1139 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0001
  1140 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0001
  1141 
  1142 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0002
  1143 //! @SYMTestCaseID  		SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0002
  1144 //! @SYMTestCaseDesc 		To ensure that CCmsContentInfowill can recognise content of type:  Enveloped.
  1145 //! @SYMPREQ 			PREQ968
  1146 //! @SYMTestPriority 		Critical
  1147 //! @SYMTestActions 		TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data 
  1148 //!                 		is raw is of type Enveloped data 
  1149 //!
  1150 //!
  1151 //! @SYMTestExpectedResults type Enveloped data
  1152 //! @SYMTestType 		CIT
  1153 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0002
  1154 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0002
  1155 
  1156 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0003
  1157 //! @SYMTestCaseID  		SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0003
  1158 //! @SYMTestCaseDesc 		To ensure that CCmsContentInfowill can recognise content of type:  digested.
  1159 //! @SYMPREQ 			PREQ968
  1160 //! @SYMTestPriority 		Critical
  1161 //! @SYMTestActions		 TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data 
  1162 //!                 		is raw is of type digested data 
  1163 //!
  1164 //!
  1165 //! @SYMTestExpectedResults digested data
  1166 //! @SYMTestType 		CIT
  1167 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0003
  1168 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0003
  1169 
  1170 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0004
  1171 //! @SYMTestCaseID  		SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0004
  1172 //! @SYMTestCaseDesc 		To ensure that CCmsContentInfowill can recognise content of type: Encrypted.
  1173 //! @SYMPREQ 			PREQ968
  1174 //! @SYMTestPriority 		Critical
  1175 //! @SYMTestActions 		TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data 
  1176 //!                 		is raw is of type encrypted 
  1177 //!
  1178 //!
  1179 //! @SYMTestExpectedResults 	type encrypted  returned
  1180 //! @SYMTestType 		CIT
  1181 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0004
  1182 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0004
  1183 
  1184 START_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0005
  1185 //! @SYMTestCaseID  		SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0005
  1186 //! @SYMTestCaseDesc 		To ensure that CCmsContentInfowill can recognise content of type: signed and enveloped.
  1187 //! @SYMPREQ 			PREQ968
  1188 //! @SYMTestPriority 		Critical
  1189 //! @SYMTestActions 		TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data 
  1190 //!                 		is raw is of type signed and enveloped 
  1191 //!
  1192 //!
  1193 //! @SYMTestExpectedResults 	type signed and enveloped  returned
  1194 //! @SYMTestType 		CIT
  1195 RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0005
  1196 END_TESTCASE			SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0005
  1197 
  1198