|
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 "Symbian Foundation License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 |
|
17 START_TESTCASE SEC-ASNPKCS-TASNPKCSTESTS-0001 |
|
18 |
|
19 //! @SYMTestCaseID SEC-ASNPKCS-TASNPKCSTESTS-0001 |
|
20 |
|
21 //! @SYMTestCaseDesc 1. Test PKCS5 decoding/encoding |
|
22 |
|
23 //! @SYMTestActions 1) 1.1 PKCS5 ASN Decoding Test 1 (DES) -- vector from pkcs page |
|
24 |
|
25 //! 2) 1.2 PKCS5 ASN Decoding Test 2 (3DES) -- vector from pkcs page |
|
26 |
|
27 //! 3) 1.3 PKCS5 ASN Decoding Test 3 (RC2) -- vector from pkcs page |
|
28 |
|
29 RUN_TEST_STEP -1 CTestHandler pkcs5 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0001-001 |
|
30 |
|
31 RUN_TEST_STEP -1 CTestHandler pkcs5 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0001-002 |
|
32 |
|
33 RUN_TEST_STEP -1 CTestHandler pkcs5 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0001-003 |
|
34 |
|
35 END_TESTCASE SEC-ASNPKCS-TASNPKCSTESTS-0001 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 START_TESTCASE SEC-ASNPKCS-TASNPKCSTESTS-0002 |
|
42 |
|
43 //! @SYMTestCaseID SEC-ASNPKCS-TASNPKCSTESTS-0002 |
|
44 |
|
45 //! @SYMTestCaseDesc 2. Test PKCS8 recognition |
|
46 |
|
47 //! @SYMTestActions 1) 2.1.1 PKCS8 Recognition test - garbage |
|
48 |
|
49 //! 2) 2.2.1 PKCS8 Recognition test - clear text RSA |
|
50 |
|
51 //! 3) 2.2.2 PKCS8 Recognition test - clear text RSA |
|
52 |
|
53 //! 4) 2.2.3 PKCS8 Recognition test - clear text RSA |
|
54 |
|
55 //! 5) 2.2.4 PKCS8 Recognition test - clear text RSA |
|
56 |
|
57 //! 6) 2.3.1 PKCS8 Recognition test - clear text DSA |
|
58 |
|
59 //! 7) 2.3.2 PKCS8 Recognition test - clear text DSA |
|
60 |
|
61 //! 8) 2.3.3 PKCS8 Recognition test - clear text DSA |
|
62 |
|
63 //! 9) 2.3.4 PKCS8 Recognition test - clear text DSA |
|
64 |
|
65 //! 10) 2.4.1 PKCS8 Recognition test - encrypted RSA |
|
66 |
|
67 //! 11) 2.4.2 PKCS8 Recognition test - encrypted RSA |
|
68 |
|
69 //! 12) 2.4.3 PKCS8 Recognition test - encrypted RSA |
|
70 |
|
71 //! 13) 2.4.4 PKCS8 Recognition test - encrypted RSA |
|
72 |
|
73 //! 14) 2.5.1 PKCS8 Recognition test - encrypted DSA |
|
74 |
|
75 //! 15) 2.5.2 PKCS8 Recognition test - encrypted DSA |
|
76 |
|
77 //! 16) 2.5.3 PKCS8 Recognition test - encrypted DSA |
|
78 |
|
79 //! 17) 2.5.4 PKCS8 Recognition test - encrypted DSA |
|
80 |
|
81 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-001 |
|
82 |
|
83 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-002 |
|
84 |
|
85 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-003 |
|
86 |
|
87 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-004 |
|
88 |
|
89 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-005 |
|
90 |
|
91 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-006 |
|
92 |
|
93 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-007 |
|
94 |
|
95 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-008 |
|
96 |
|
97 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-009 |
|
98 |
|
99 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-010 |
|
100 |
|
101 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-011 |
|
102 |
|
103 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-012 |
|
104 |
|
105 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-013 |
|
106 |
|
107 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-014 |
|
108 |
|
109 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-015 |
|
110 |
|
111 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-016 |
|
112 |
|
113 RUN_TEST_STEP -1 CTestHandler testpkcs8 tasnpkcstests.ini SEC-ASNPKCS-TASNPKCSTESTS-0002-017 |
|
114 |
|
115 END_TESTCASE SEC-ASNPKCS-TASNPKCSTESTS-0002 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |