cryptoservices/asnpkcs/test/scripts/tasnpkcstests.txt
changeset 0 2c201484c85f
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 // 1. Test PKCS5 decoding/encoding
       
     2 
       
     3 <action>
       
     4 	<actionname>1.1 PKCS5 ASN Decoding Test 1 (DES) -- vector from pkcs page</actionname>
       
     5 	<actiontype>pkcs5</actiontype>
       
     6 	<actionbody>
       
     7 		<input>303D06092A864886F70D01050D3030301B06092A864886F70D01050C300E04087D60435F02E9E0AE02020800301106052B0E03020704089A085FC0BCE810E9</input>
       
     8 	</actionbody>
       
     9 	<actionresult>
       
    10 		<return>KErrNone</return>
       
    11 	</actionresult>
       
    12 </action>
       
    13 <action>
       
    14 	<actionname>1.2 PKCS5 ASN Decoding Test 2 (3DES) -- vector from pkcs page</actionname>
       
    15 	<actiontype>pkcs5</actiontype>
       
    16 	<actionbody>
       
    17 		<input>304006092A864886F70D01050D3033301B06092A864886F70D01050C300E040878578E5A5D63CB0602020800301406082A864886F70D03070408D4279786061406B5</input>
       
    18 	</actionbody>
       
    19 	<actionresult>
       
    20 		<return>KErrNone</return>
       
    21 	</actionresult>
       
    22 </action> 
       
    23 <action>
       
    24 	<actionname>1.3 PKCS5 ASN Decoding Test 3 (RC2) -- vector from pkcs page</actionname>
       
    25 	<actiontype>pkcs5</actiontype>
       
    26 	<actionbody>
       
    27 		<input>304806092A864886F70D01050D303B301E06092A864886F70D01050C30110408AC7C903C166A58B502020800020110301906082A864886F70D0302300D02013A0408485B87B6192A23D2</input>
       
    28 	</actionbody>
       
    29 	<actionresult>
       
    30 		<return>KErrNone</return>
       
    31 	</actionresult>
       
    32 </action> 
       
    33 
       
    34 // 2. Test PKCS8 recognition
       
    35 
       
    36 <action>
       
    37 	<actionname>2.1.1 PKCS8 Recognition test - garbage</actionname>
       
    38 	<actiontype>testpkcs8</actiontype>
       
    39 	<actionbody>
       
    40 		<filename>binarygarbage.bin</filename>
       
    41 		<matches>noMatch</matches>
       
    42 	</actionbody>
       
    43 	<actionresult>
       
    44 		<return>KErrNone</return>
       
    45 	</actionresult>
       
    46 </action> 
       
    47 
       
    48 <action>
       
    49 	<actionname>2.2.1 PKCS8 Recognition test - clear text RSA</actionname>
       
    50 	<actiontype>testpkcs8</actiontype>
       
    51 	<actionbody>
       
    52 		<filename>pkcs8rsa1.001</filename>
       
    53 		<matches>pkcs8</matches>
       
    54 	</actionbody>
       
    55 	<actionresult>
       
    56 		<return>KErrNone</return>
       
    57 	</actionresult>
       
    58 </action> 
       
    59 
       
    60 
       
    61 <action>
       
    62 	<actionname>2.2.2 PKCS8 Recognition test - clear text RSA</actionname>
       
    63 	<actiontype>testpkcs8</actiontype>
       
    64 	<actionbody>
       
    65 		<filename>pkcs8rsa2.001</filename>
       
    66 		<matches>pkcs8</matches>
       
    67 	</actionbody>
       
    68 	<actionresult>
       
    69 		<return>KErrNone</return>
       
    70 	</actionresult>
       
    71 </action> 
       
    72 
       
    73 <action>
       
    74 	<actionname>2.2.3 PKCS8 Recognition test - clear text RSA</actionname>
       
    75 	<actiontype>testpkcs8</actiontype>
       
    76 	<actionbody>
       
    77 		<filename>pkcs8rsa3.001</filename>
       
    78 		<matches>pkcs8</matches>
       
    79 	</actionbody>
       
    80 	<actionresult>
       
    81 		<return>KErrNone</return>
       
    82 	</actionresult>
       
    83 </action> 
       
    84 
       
    85 <action>
       
    86 	<actionname>2.2.4 PKCS8 Recognition test - clear text RSA</actionname>
       
    87 	<actiontype>testpkcs8</actiontype>
       
    88 	<actionbody>
       
    89 		<filename>pkcs8rsa4.001</filename>
       
    90 		<matches>pkcs8</matches>
       
    91 	</actionbody>
       
    92 	<actionresult>
       
    93 		<return>KErrNone</return>
       
    94 	</actionresult>
       
    95 </action> 
       
    96 
       
    97 <action>
       
    98 	<actionname>2.3.1 PKCS8 Recognition test - clear text DSA</actionname>
       
    99 	<actiontype>testpkcs8</actiontype>
       
   100 	<actionbody>
       
   101 		<filename>pkcs8dsa1.001</filename>
       
   102 		<matches>pkcs8</matches>
       
   103 	</actionbody>
       
   104 	<actionresult>
       
   105 		<return>KErrNone</return>
       
   106 	</actionresult>
       
   107 </action> 
       
   108 
       
   109 <action>
       
   110 	<actionname>2.3.2 PKCS8 Recognition test - clear text DSA</actionname>
       
   111 	<actiontype>testpkcs8</actiontype>
       
   112 	<actionbody>
       
   113 		<filename>pkcs8dsa2.001</filename>
       
   114 		<matches>pkcs8</matches>
       
   115 	</actionbody>
       
   116 	<actionresult>
       
   117 		<return>KErrNone</return>
       
   118 	</actionresult>
       
   119 </action> 
       
   120 
       
   121 <action>
       
   122 	<actionname>2.3.3 PKCS8 Recognition test - clear text DSA</actionname>
       
   123 	<actiontype>testpkcs8</actiontype>
       
   124 	<actionbody>
       
   125 		<filename>pkcs8dsa3.001</filename>
       
   126 		<matches>pkcs8</matches>
       
   127 	</actionbody>
       
   128 	<actionresult>
       
   129 		<return>KErrNone</return>
       
   130 	</actionresult>
       
   131 </action> 
       
   132 
       
   133 <action>
       
   134 	<actionname>2.3.4 PKCS8 Recognition test - clear text DSA</actionname>
       
   135 	<actiontype>testpkcs8</actiontype>
       
   136 	<actionbody>
       
   137 		<filename>pkcs8dsa4.001</filename>
       
   138 		<matches>pkcs8</matches>
       
   139 	</actionbody>
       
   140 	<actionresult>
       
   141 		<return>KErrNone</return>
       
   142 	</actionresult>
       
   143 </action> 
       
   144 
       
   145 <action>
       
   146 	<actionname>2.4.1 PKCS8 Recognition test - encrypted RSA</actionname>
       
   147 	<actiontype>testpkcs8</actiontype>
       
   148 	<actionbody>
       
   149 		<filename>encryptPK8rsa1DER.txt</filename>
       
   150 		<matches>encryptedPkcs8</matches>
       
   151 	</actionbody>
       
   152 	<actionresult>
       
   153 		<return>KErrNone</return>
       
   154 	</actionresult>
       
   155 </action> 
       
   156 
       
   157 <action>
       
   158 	<actionname>2.4.2 PKCS8 Recognition test - encrypted RSA</actionname>
       
   159 	<actiontype>testpkcs8</actiontype>
       
   160 	<actionbody>
       
   161 		<filename>encryptPK8rsa2DER.txt</filename>
       
   162 		<matches>encryptedPkcs8</matches>
       
   163 	</actionbody>
       
   164 	<actionresult>
       
   165 		<return>KErrNone</return>
       
   166 	</actionresult>
       
   167 </action> 
       
   168 
       
   169 <action>
       
   170 	<actionname>2.4.3 PKCS8 Recognition test - encrypted RSA</actionname>
       
   171 	<actiontype>testpkcs8</actiontype>
       
   172 	<actionbody>
       
   173 		<filename>encryptPK8rsa3DER.txt</filename>
       
   174 		<matches>encryptedPkcs8</matches>
       
   175 	</actionbody>
       
   176 	<actionresult>
       
   177 		<return>KErrNone</return>
       
   178 	</actionresult>
       
   179 </action> 
       
   180 
       
   181 <action>
       
   182 	<actionname>2.4.4 PKCS8 Recognition test - encrypted RSA</actionname>
       
   183 	<actiontype>testpkcs8</actiontype>
       
   184 	<actionbody>
       
   185 		<filename>encryptPK8rsa4DER.txt</filename>
       
   186 		<matches>encryptedPkcs8</matches>
       
   187 	</actionbody>
       
   188 	<actionresult>
       
   189 		<return>KErrNone</return>
       
   190 	</actionresult>
       
   191 </action> 
       
   192 
       
   193 <action>
       
   194 	<actionname>2.5.1 PKCS8 Recognition test - encrypted DSA</actionname>
       
   195 	<actiontype>testpkcs8</actiontype>
       
   196 	<actionbody>
       
   197 		<filename>encryptPK8dsa1DER.txt</filename>
       
   198 		<matches>encryptedPkcs8</matches>
       
   199 	</actionbody>
       
   200 	<actionresult>
       
   201 		<return>KErrNone</return>
       
   202 	</actionresult>
       
   203 </action> 
       
   204 
       
   205 <action>
       
   206 	<actionname>2.5.2 PKCS8 Recognition test - encrypted DSA</actionname>
       
   207 	<actiontype>testpkcs8</actiontype>
       
   208 	<actionbody>
       
   209 		<filename>encryptPK8dsa2DER.txt</filename>
       
   210 		<matches>encryptedPkcs8</matches>
       
   211 	</actionbody>
       
   212 	<actionresult>
       
   213 		<return>KErrNone</return>
       
   214 	</actionresult>
       
   215 </action> 
       
   216 
       
   217 <action>
       
   218 	<actionname>2.5.3 PKCS8 Recognition test - encrypted DSA</actionname>
       
   219 	<actiontype>testpkcs8</actiontype>
       
   220 	<actionbody>
       
   221 		<filename>encryptPK8dsa3DER.txt</filename>
       
   222 		<matches>encryptedPkcs8</matches>
       
   223 	</actionbody>
       
   224 	<actionresult>
       
   225 		<return>KErrNone</return>
       
   226 	</actionresult>
       
   227 </action> 
       
   228 
       
   229 <action>
       
   230 	<actionname>2.5.4 PKCS8 Recognition test - encrypted DSA</actionname>
       
   231 	<actiontype>testpkcs8</actiontype>
       
   232 	<actionbody>
       
   233 		<filename>encryptPK8dsa4DER.txt</filename>
       
   234 		<matches>encryptedPkcs8</matches>
       
   235 	</actionbody>
       
   236 	<actionresult>
       
   237 		<return>KErrNone</return>
       
   238 	</actionresult>
       
   239 </action>