--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptoservices/asnpkcs/test/scripts/tasnpkcstests.txt Wed Jul 08 11:25:26 2009 +0100
@@ -0,0 +1,239 @@
+// 1. Test PKCS5 decoding/encoding
+
+<action>
+ <actionname>1.1 PKCS5 ASN Decoding Test 1 (DES) -- vector from pkcs page</actionname>
+ <actiontype>pkcs5</actiontype>
+ <actionbody>
+ <input>303D06092A864886F70D01050D3030301B06092A864886F70D01050C300E04087D60435F02E9E0AE02020800301106052B0E03020704089A085FC0BCE810E9</input>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+<action>
+ <actionname>1.2 PKCS5 ASN Decoding Test 2 (3DES) -- vector from pkcs page</actionname>
+ <actiontype>pkcs5</actiontype>
+ <actionbody>
+ <input>304006092A864886F70D01050D3033301B06092A864886F70D01050C300E040878578E5A5D63CB0602020800301406082A864886F70D03070408D4279786061406B5</input>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+<action>
+ <actionname>1.3 PKCS5 ASN Decoding Test 3 (RC2) -- vector from pkcs page</actionname>
+ <actiontype>pkcs5</actiontype>
+ <actionbody>
+ <input>304806092A864886F70D01050D303B301E06092A864886F70D01050C30110408AC7C903C166A58B502020800020110301906082A864886F70D0302300D02013A0408485B87B6192A23D2</input>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+// 2. Test PKCS8 recognition
+
+<action>
+ <actionname>2.1.1 PKCS8 Recognition test - garbage</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>binarygarbage.bin</filename>
+ <matches>noMatch</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.2.1 PKCS8 Recognition test - clear text RSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>pkcs8rsa1.001</filename>
+ <matches>pkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+
+<action>
+ <actionname>2.2.2 PKCS8 Recognition test - clear text RSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>pkcs8rsa2.001</filename>
+ <matches>pkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.2.3 PKCS8 Recognition test - clear text RSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>pkcs8rsa3.001</filename>
+ <matches>pkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.2.4 PKCS8 Recognition test - clear text RSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>pkcs8rsa4.001</filename>
+ <matches>pkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.3.1 PKCS8 Recognition test - clear text DSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>pkcs8dsa1.001</filename>
+ <matches>pkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.3.2 PKCS8 Recognition test - clear text DSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>pkcs8dsa2.001</filename>
+ <matches>pkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.3.3 PKCS8 Recognition test - clear text DSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>pkcs8dsa3.001</filename>
+ <matches>pkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.3.4 PKCS8 Recognition test - clear text DSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>pkcs8dsa4.001</filename>
+ <matches>pkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.4.1 PKCS8 Recognition test - encrypted RSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>encryptPK8rsa1DER.txt</filename>
+ <matches>encryptedPkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.4.2 PKCS8 Recognition test - encrypted RSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>encryptPK8rsa2DER.txt</filename>
+ <matches>encryptedPkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.4.3 PKCS8 Recognition test - encrypted RSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>encryptPK8rsa3DER.txt</filename>
+ <matches>encryptedPkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.4.4 PKCS8 Recognition test - encrypted RSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>encryptPK8rsa4DER.txt</filename>
+ <matches>encryptedPkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.5.1 PKCS8 Recognition test - encrypted DSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>encryptPK8dsa1DER.txt</filename>
+ <matches>encryptedPkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.5.2 PKCS8 Recognition test - encrypted DSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>encryptPK8dsa2DER.txt</filename>
+ <matches>encryptedPkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.5.3 PKCS8 Recognition test - encrypted DSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>encryptPK8dsa3DER.txt</filename>
+ <matches>encryptedPkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>
+
+<action>
+ <actionname>2.5.4 PKCS8 Recognition test - encrypted DSA</actionname>
+ <actiontype>testpkcs8</actiontype>
+ <actionbody>
+ <filename>encryptPK8dsa4DER.txt</filename>
+ <matches>encryptedPkcs8</matches>
+ </actionbody>
+ <actionresult>
+ <return>KErrNone</return>
+ </actionresult>
+</action>