diff -r 000000000000 -r 2c201484c85f cryptoservices/asnpkcs/test/scripts/tasnpkcstests.txt
--- /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
+
+
+ 1.1 PKCS5 ASN Decoding Test 1 (DES) -- vector from pkcs page
+ pkcs5
+
+ 303D06092A864886F70D01050D3030301B06092A864886F70D01050C300E04087D60435F02E9E0AE02020800301106052B0E03020704089A085FC0BCE810E9
+
+
+ KErrNone
+
+
+
+ 1.2 PKCS5 ASN Decoding Test 2 (3DES) -- vector from pkcs page
+ pkcs5
+
+ 304006092A864886F70D01050D3033301B06092A864886F70D01050C300E040878578E5A5D63CB0602020800301406082A864886F70D03070408D4279786061406B5
+
+
+ KErrNone
+
+
+
+ 1.3 PKCS5 ASN Decoding Test 3 (RC2) -- vector from pkcs page
+ pkcs5
+
+ 304806092A864886F70D01050D303B301E06092A864886F70D01050C30110408AC7C903C166A58B502020800020110301906082A864886F70D0302300D02013A0408485B87B6192A23D2
+
+
+ KErrNone
+
+
+
+// 2. Test PKCS8 recognition
+
+
+ 2.1.1 PKCS8 Recognition test - garbage
+ testpkcs8
+
+ binarygarbage.bin
+ noMatch
+
+
+ KErrNone
+
+
+
+
+ 2.2.1 PKCS8 Recognition test - clear text RSA
+ testpkcs8
+
+ pkcs8rsa1.001
+ pkcs8
+
+
+ KErrNone
+
+
+
+
+
+ 2.2.2 PKCS8 Recognition test - clear text RSA
+ testpkcs8
+
+ pkcs8rsa2.001
+ pkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.2.3 PKCS8 Recognition test - clear text RSA
+ testpkcs8
+
+ pkcs8rsa3.001
+ pkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.2.4 PKCS8 Recognition test - clear text RSA
+ testpkcs8
+
+ pkcs8rsa4.001
+ pkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.3.1 PKCS8 Recognition test - clear text DSA
+ testpkcs8
+
+ pkcs8dsa1.001
+ pkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.3.2 PKCS8 Recognition test - clear text DSA
+ testpkcs8
+
+ pkcs8dsa2.001
+ pkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.3.3 PKCS8 Recognition test - clear text DSA
+ testpkcs8
+
+ pkcs8dsa3.001
+ pkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.3.4 PKCS8 Recognition test - clear text DSA
+ testpkcs8
+
+ pkcs8dsa4.001
+ pkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.4.1 PKCS8 Recognition test - encrypted RSA
+ testpkcs8
+
+ encryptPK8rsa1DER.txt
+ encryptedPkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.4.2 PKCS8 Recognition test - encrypted RSA
+ testpkcs8
+
+ encryptPK8rsa2DER.txt
+ encryptedPkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.4.3 PKCS8 Recognition test - encrypted RSA
+ testpkcs8
+
+ encryptPK8rsa3DER.txt
+ encryptedPkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.4.4 PKCS8 Recognition test - encrypted RSA
+ testpkcs8
+
+ encryptPK8rsa4DER.txt
+ encryptedPkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.5.1 PKCS8 Recognition test - encrypted DSA
+ testpkcs8
+
+ encryptPK8dsa1DER.txt
+ encryptedPkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.5.2 PKCS8 Recognition test - encrypted DSA
+ testpkcs8
+
+ encryptPK8dsa2DER.txt
+ encryptedPkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.5.3 PKCS8 Recognition test - encrypted DSA
+ testpkcs8
+
+ encryptPK8dsa3DER.txt
+ encryptedPkcs8
+
+
+ KErrNone
+
+
+
+
+ 2.5.4 PKCS8 Recognition test - encrypted DSA
+ testpkcs8
+
+ encryptPK8dsa4DER.txt
+ encryptedPkcs8
+
+
+ KErrNone
+
+