sl@0: // sl@0: // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: // tinteg_cms.script sl@0: // Integration tests for CMS (Cryptographic message sintax) sl@0: sl@0: LOAD_SUITE tpkcs7server sl@0: sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0001 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0001 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: RSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: Yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0001 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0001 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0002 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0002 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: RSA key sl@0: //! Digest Algorithm: MD2 sl@0: //! Signer identifier: suject Key ID extension sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: Not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0002 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0002 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0003 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0003 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: RSA key sl@0: //! Digest Algorithm: MD5 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: Yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0003 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0003 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0004 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0004 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: DSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: Yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0004 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0004 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0005 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0005 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: DSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: suject Key ID extension sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: Not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0005 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0005 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0006 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0006 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 (attribute certificate) sl@0: //! The signing key: DSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yet sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0006 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0006 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0007 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0007 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 (attribute certificate) sl@0: //! The signing key: DSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yet sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0006 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0007 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0008 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0008 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 (attribute certificate) sl@0: //! The signing key: RSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0007 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0008 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0009 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0009 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 sl@0: //! The signing key: All 3; DSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: suject Key ID extension sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0008 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0009 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0010 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0010 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 sl@0: //! The signing key: All 3; RSA key sl@0: //! Digest Algorithm: MD2 sl@0: //! Signer identifier: n1,n2 suject Key ID extension, n3 issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0009 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0010 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0011 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0011 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 sl@0: //! The signing key: n1 RSA, n2, n3 DSA sl@0: //! Digest Algorithm: n1,n2 RSA, n3 MD5 sl@0: //! Signer identifier: n1 suject Key ID extension, n2,n3 issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0010 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0011 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0012 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0012 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 sl@0: //! The signing key: n1 RSA, n2, n3 DSA sl@0: //! Digest Algorithm: n1,n2 RSA, n3 MD5 sl@0: //! Signer identifier: n1 suject Key ID extension, n2,n3 issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0011 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0012 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0013 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0013 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 sl@0: //! The signing key: n1,n2 RSA, n3 DSA sl@0: //! Digest Algorithm: All SHA1 sl@0: //! Signer identifier: All suject Key ID extension sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0012 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0013 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0014 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0014 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 sl@0: //! The signing key: all RSA sl@0: //! Digest Algorithm: All SHA1 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0013 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0014 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0015 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0015 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in single step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 (+1 attribute certificate) sl@0: //! The signing key: all DSA sl@0: //! Digest Algorithm: All SHA1 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-SINGLESTEP-0014 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0015 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0016 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0016 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: RSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0001 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0016 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0017 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0017 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: RSA key sl@0: //! Digest Algorithm: MD2 sl@0: //! Signer identifier: suject Key ID extension sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0002 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0017 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0018 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0018 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: RSA key sl@0: //! Digest Algorithm: MD5 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0003 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0018 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0019 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0019 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: DSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0004 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0019 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0020 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0020 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: DSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: suject Key ID extension sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0005 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0020 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0021 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0021 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 (+ 1 signature attribute) sl@0: //! The signing key: DSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0006 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0021 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0022 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0022 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 sl@0: //! The signing key: ALL RSA key sl@0: //! Digest Algorithm: All SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0007 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0022 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0023 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0023 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 sl@0: //! The signing key: All RSA sl@0: //! Digest Algorithm: n1 & n2 SHA1, n3 MD5 sl@0: //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0008 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0023 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0024 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0024 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 sl@0: //! The signing key: n1 RSA, n2 & n3 DSA sl@0: //! Digest Algorithm: All SHA1 sl@0: //! Signer identifier: n1 issuer and serial number, n2 & n3 suject Key ID extension sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0009 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0024 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0025 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0025 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 sl@0: //! The signing key: 3 DSA (+1 Attribute certificate) sl@0: //! Digest Algorithm: All SHA1 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-0010 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0025 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0026 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0026 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: RSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: Yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0001 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0026 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0027 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0027 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 sl@0: //! The signing key: DSA key sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: Yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0002 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0027 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0028 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0028 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:1 (+1 attribute certificate) sl@0: //! The signing key: DSA key sl@0: //! Digest Algorithm: sha1 sl@0: //! Signer identifier: suject Key ID extension sl@0: //! Signed data content: Dettached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0003 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0028 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0029 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0029 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 sl@0: //! The signing key: All RSA sl@0: //! Digest Algorithm: All MD5 sl@0: //! Signer identifier: n1 & n3 suject Key ID extension, n2 issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0004 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0029 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0030 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0030 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 sl@0: //! The signing key: n1 & n2 RSA, n3 DSA sl@0: //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 sl@0: //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0005 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0030 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0031 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0031 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 (+ 1 attribute certificate) sl@0: //! The signing key: all DSA sl@0: //! Digest Algorithm: All SHA1 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0006 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0031 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0032 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0032 sl@0: //! @SYMTestCaseDesc Test CMS Signed Data creation in two step with detached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures:3 (+ 1 attribute certificate) sl@0: //! The signing key: all DSA sl@0: //! Digest Algorithm: All SHA1 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Dettached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-DETACHED-TWOSTEP-NH-0006 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0032 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0033 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0033 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 1 sl@0: //! The signing key: RSA sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0001 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0033 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0034 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0034 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 1 sl@0: //! The signing key: RSA sl@0: //! Digest Algorithm: MD2 sl@0: //! Signer identifier: suject Key ID extension sl@0: //! Signed data content: Attached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0002 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0034 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0035 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0035 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 1 sl@0: //! The signing key: RSA sl@0: //! Digest Algorithm: MD5 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0003 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0035 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0036 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0036 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 1 sl@0: //! The signing key: DSA sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0004 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0036 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0037 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0037 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 1 (+a attribute certificate) sl@0: //! The signing key: DSA sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0005 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0037 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0038 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0038 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 sl@0: //! The signing key: RSA sl@0: //! Digest Algorithm: All MD2 sl@0: //! Signer identifier: All suject Key ID extension. sl@0: //! Signed data content: Attached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0006 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0038 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0039 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0039 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 sl@0: //! The signing key: RSA sl@0: //! Digest Algorithm: All MD5 sl@0: //! Signer identifier: n1 & n3 suject Key ID extension, n2 issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0007 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0039 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0040 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0040 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 sl@0: //! The signing key: n1 RSA, n2 & n3 DSA sl@0: //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 sl@0: //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0008 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0040 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0041 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0041 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data without providing hash, sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 (+1 X509 certificate) sl@0: //! The signing key: All DSA sl@0: //! Digest Algorithm: All SHA1 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: not sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-NH-0009 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0041 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0042 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0042 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 1 sl@0: //! The signing key: RSA sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0001 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0042 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0043 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0043 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 1 sl@0: //! The signing key: RSA sl@0: //! Digest Algorithm: MD5 sl@0: //! Signer identifier: issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: Yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0002 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0043 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0044 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0044 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 1 sl@0: //! The signing key: DSA sl@0: //! Digest Algorithm: SHA1 sl@0: //! Signer identifier: suject Key ID extension sl@0: //! Signed data content: Attached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: not sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0003 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0044 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0045 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0045 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 sl@0: //! The signing key: All 3 RSA sl@0: //! Digest Algorithm: All 3 SHA1 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: not sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0004 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0045 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0046 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0046 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 (+1 attribute certificate) sl@0: //! The signing key: All 3 RSA sl@0: //! Digest Algorithm: n1 SHA1, n2 MD2, n3 MD5 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: not sl@0: //! Certificates attached: not sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0005 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0046 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0047 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0047 sl@0: //! @SYMTestCaseDesc Test CMS Test CMS Signed Data creation in two step with attached data (providing hash), sl@0: //! encoding, decoding and validation. sl@0: //! Number of signatures: 3 sl@0: //! The signing key: All 3 RSA sl@0: //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Hash available: yes sl@0: //! Certificates provided by User: yes sl@0: //! Certificates attached: yes sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation. sl@0: //! @SYMTestExpectedResults successfully validated sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SIGNED-ATTACHED-TWOSTEP-0006 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0047 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0001 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0001 sl@0: //! @SYMTestCaseDesc Test to ensure that CCmsContentInfo can deal with small amount of unsigned data. sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Call CCmsContentInfo providing only 4 bytes of data for the aContentData content value. sl@0: //! @SYMTestExpectedResults Object is constructed without error, and is equal to expected result sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-UNSIGNED-0001 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0001 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0002 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0002 sl@0: //! @SYMTestCaseDesc Test to ensure that CCmsContentInfo can deal with small amount of unsigned data. sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Call CCmsContentInfo providing only 500 Kbytes of data for the aContentData content value. sl@0: //! @SYMTestExpectedResults Object is constructed without error, and is equal to expected result sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-UNSIGNED-0002 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_UNSIGNED-0002 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0001 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0001 sl@0: //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory sl@0: //! conditions gracefully sl@0: //! Number of signatures: 1 sl@0: //! The signing key: RSA sl@0: //! Digest Algorithm: MD2 sl@0: //! Signer identifier: suject Key ID extension sl@0: //! Signed data content: Detached sl@0: //! Certificates provided by User: not sl@0: //! Certificates attached: not sl@0: //! Construction method: Single Step sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. sl@0: //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0001 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0001 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0002 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0002 sl@0: //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory sl@0: //! conditions gracefully sl@0: //! Number of signatures: 3 sl@0: //! The signing key: RSA sl@0: //! Digest Algorithm: n1 & n2 SHA1, n3 MD5 sl@0: //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number sl@0: //! Signed data content: Detached sl@0: //! Certificates provided by User: not sl@0: //! Certificates attached: not sl@0: //! Construction method: two Steps sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. sl@0: //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0002 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0002 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0003 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0003 sl@0: //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory sl@0: //! conditions gracefully sl@0: //! Number of signatures: 3 sl@0: //! The signing key: n1 & n2 RSA, n3 DSA sl@0: //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 sl@0: //! Signer identifier: n1 suject Key ID extension, n2 & n3 issuer and serial number sl@0: //! Signed data content: Detached sl@0: //! Certificates provided by User: not sl@0: //! Certificates attached: not sl@0: //! Construction method: two Steps & no hash provided sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. sl@0: //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0003 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0003 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0004 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0004 sl@0: //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory sl@0: //! conditions gracefully sl@0: //! Number of signatures: 3 sl@0: //! The signing key: All RSA sl@0: //! Digest Algorithm: All MD2 sl@0: //! Signer identifier: All suject Key ID extension sl@0: //! Signed data content: Attached sl@0: //! Certificates provided by User: yes sl@0: //! Certificates attached: yes sl@0: //! Construction method: two Steps & no hash provided sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. sl@0: //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0004 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0004 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0005 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_OOM-0005 sl@0: //! @SYMTestCaseDesc Test to To ensure that Symbian a CCmsSignedObject can handle out of memory sl@0: //! conditions gracefully sl@0: //! Number of signatures: 3 sl@0: //! The signing key: All RSA sl@0: //! Digest Algorithm: n1 MD2, n2 MD5, n3 SHA1 sl@0: //! Signer identifier: All issuer and serial number sl@0: //! Signed data content: Attached sl@0: //! Certificates provided by User: yes sl@0: //! Certificates attached: yes sl@0: //! Construction method: two Steps sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Test CMS signed data construction, encoding, decoding and validation in OOM conditions. sl@0: //! @SYMTestExpectedResults Constructor Should return KErrNoMemory, No memory leak is created sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 800 tpkcs7server CMSSignedData C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-OOM-0005 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_OOM-0005 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0048 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0048 sl@0: //! @SYMTestCaseDesc To ensure that CCmsSignedObject returns the appropriate leave error code when the sl@0: //! two stage constructor is used incorrectly; data and hash are null. sl@0: //! sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions 1. A.- Call the constructor: sl@0: //! CCmsSignedObject* NewL(TCmsContentInfoType aType, TBool aIsDetached, sl@0: //! const TDesC8& aContentData) providing a NULL for the aContentData value. sl@0: //! 2. Call SignL method with a NULL hash value. sl@0: //! @SYMTestExpectedResults KErrArgument returned sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0001 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0048 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0049 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0049 sl@0: //! @SYMTestCaseDesc To ensure that CCmsSignedObject returns the appropriate leave error code when the sl@0: //! single stage constructor for detached data is used incorrectly; hash is null. . sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions CCmsSignedObject* NewLC(TCmsContentInfoType aType, const TDesC8& aHashValue, sl@0: //! TAlgorithmId aDigestAlgorithm, const CRSAPrivateKey& aKey, const CX509Certificate& sl@0: //! aCert, TBool aAddCertificate) providing a NULL for the aHashValue value. sl@0: //! @SYMTestExpectedResults KErrArgument returned sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0002 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0049 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0050 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0050 sl@0: //! @SYMTestCaseDesc To ensure that CCmsSignedObject will reject any raw non supported content type with sl@0: //! the appropriate leave error, the type to test for this case sl@0: //! is unsupported attribute certificate tag value. sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the attribute certificate sl@0: //! tag has a value of 2. No sl@0: //! @SYMTestExpectedResults KErrArgument returned sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CMSSignedDataDecoding C:\tpkcs7\tinteg_cms.ini SIGNED-NEGATIVE-0003 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_SIGNED-0050 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0001 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0001 sl@0: //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: Data. sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data sl@0: //! is raw is of type data (plain) sl@0: //! sl@0: //! sl@0: //! @SYMTestExpectedResults type data returned sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0001 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0001 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0002 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0002 sl@0: //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: Enveloped. sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data sl@0: //! is raw is of type Enveloped data sl@0: //! sl@0: //! sl@0: //! @SYMTestExpectedResults type Enveloped data sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0002 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0002 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0003 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0003 sl@0: //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: digested. sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data sl@0: //! is raw is of type digested data sl@0: //! sl@0: //! sl@0: //! @SYMTestExpectedResults digested data sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0003 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0003 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0004 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0004 sl@0: //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: Encrypted. sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data sl@0: //! is raw is of type encrypted sl@0: //! sl@0: //! sl@0: //! @SYMTestExpectedResults type encrypted returned sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0004 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0004 sl@0: sl@0: START_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0005 sl@0: //! @SYMTestCaseID SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0005 sl@0: //! @SYMTestCaseDesc To ensure that CCmsContentInfowill can recognise content of type: signed and enveloped. sl@0: //! @SYMPREQ PREQ968 sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions TCall the constructor CCmsSignedObject(aContentInfo) where the where the intput data sl@0: //! is raw is of type signed and enveloped sl@0: //! sl@0: //! sl@0: //! @SYMTestExpectedResults type signed and enveloped returned sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tpkcs7server CmsContentInfoDecoding C:\tpkcs7\tinteg_cms.ini SEC-CMS-IT-CONTENTINFO-0005 sl@0: END_TESTCASE SEC-CERTMAN-PKCS7-CMS_IT_CONTENTINFO-0005 sl@0: sl@0: