cryptoservices/asnpkcs/test/scripts/tasnpkcstests.script
changeset 8 35751d3474b7
child 19 ece3df019add
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptoservices/asnpkcs/test/scripts/tasnpkcstests.script	Thu Sep 10 14:01:51 2009 +0300
@@ -0,0 +1,120 @@
+//
+// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of the License "Symbian Foundation License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+START_TESTCASE                SEC-ASNPKCS-TASNPKCSTESTS-0001
+
+//! @SYMTestCaseID            SEC-ASNPKCS-TASNPKCSTESTS-0001
+
+//! @SYMTestCaseDesc          1. Test PKCS5 decoding/encoding
+
+//! @SYMTestActions           1) 1.1 PKCS5 ASN Decoding Test 1 (DES) -- vector from pkcs page
+
+//!                           2) 1.2 PKCS5 ASN Decoding Test 2 (3DES) -- vector from pkcs page
+
+//!                           3) 1.3 PKCS5 ASN Decoding Test 3 (RC2) -- vector from pkcs page
+
+RUN_TEST_STEP                 -1    CTestHandler        pkcs5                  tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0001-001
+
+RUN_TEST_STEP                 -1    CTestHandler        pkcs5                  tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0001-002
+
+RUN_TEST_STEP                 -1    CTestHandler        pkcs5                  tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0001-003
+
+END_TESTCASE                  SEC-ASNPKCS-TASNPKCSTESTS-0001
+
+
+
+
+
+START_TESTCASE                SEC-ASNPKCS-TASNPKCSTESTS-0002
+
+//! @SYMTestCaseID            SEC-ASNPKCS-TASNPKCSTESTS-0002
+
+//! @SYMTestCaseDesc          2. Test PKCS8 recognition
+
+//! @SYMTestActions           1) 2.1.1 PKCS8 Recognition test - garbage
+
+//!                           2) 2.2.1 PKCS8 Recognition test - clear text RSA
+
+//!                           3) 2.2.2 PKCS8 Recognition test - clear text RSA
+
+//!                           4) 2.2.3 PKCS8 Recognition test - clear text RSA
+
+//!                           5) 2.2.4 PKCS8 Recognition test - clear text RSA
+
+//!                           6) 2.3.1 PKCS8 Recognition test - clear text DSA
+
+//!                           7) 2.3.2 PKCS8 Recognition test - clear text DSA
+
+//!                           8) 2.3.3 PKCS8 Recognition test - clear text DSA
+
+//!                           9) 2.3.4 PKCS8 Recognition test - clear text DSA
+
+//!                           10) 2.4.1 PKCS8 Recognition test - encrypted RSA
+
+//!                           11) 2.4.2 PKCS8 Recognition test - encrypted RSA
+
+//!                           12) 2.4.3 PKCS8 Recognition test - encrypted RSA
+
+//!                           13) 2.4.4 PKCS8 Recognition test - encrypted RSA
+
+//!                           14) 2.5.1 PKCS8 Recognition test - encrypted DSA
+
+//!                           15) 2.5.2 PKCS8 Recognition test - encrypted DSA
+
+//!                           16) 2.5.3 PKCS8 Recognition test - encrypted DSA
+
+//!                           17) 2.5.4 PKCS8 Recognition test - encrypted DSA
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-001
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-002
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-003
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-004
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-005
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-006
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-007
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-008
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-009
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-010
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-011
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-012
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-013
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-014
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-015
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-016
+
+RUN_TEST_STEP                 -1    CTestHandler        testpkcs8              tasnpkcstests.ini   SEC-ASNPKCS-TASNPKCSTESTS-0002-017
+
+END_TESTCASE                  SEC-ASNPKCS-TASNPKCSTESTS-0002
+
+
+
+
+