cryptoservices/filebasedcertificateandkeystores/Inc/filetokenstests.iby
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 #ifndef __FILETOKENSTESTS_IBY__
       
    18 #define __FILETOKENSTESTS_IBY__
       
    19 
       
    20 // We need setcap for platsec tests
       
    21 #include "setcap.iby"
       
    22 
       
    23 REM Token filetokens tests
       
    24 define ZDRIVE \epoc32\winscw\c
       
    25 
       
    26 // Must put it where setcap will find it, and it must be RAM executable
       
    27 data=ABI_DIR\BUILD_DIR\t_keystore.exe	sys\bin\t_keystore.exe
       
    28 data=ABI_DIR\BUILD_DIR\keytool.exe	sys\bin\keytool.exe
       
    29 data=ABI_DIR\BUILD_DIR\certtool.exe	sys\bin\certtool.exe
       
    30 data=ABI_DIR\BUILD_DIR\ttesttools.exe	sys\bin\ttesttools.exe
       
    31 
       
    32 data=MULTI_LINGUIFY(RSC EPOCROOT##epoc32\data\Z\resource\Apps\keytool  resource\Apps\keytool)
       
    33 
       
    34 file=ABI_DIR\BUILD_DIR\tfiletokens.exe	System\Libs\tfiletokens.exe
       
    35 
       
    36 // tsecdlg is required to run tests without a passphrase dialog popping up.
       
    37 // SecDlg will also need to be removed
       
    38 // Note: If SecDlg and tsecdlg are both present the tests will crash
       
    39 // both on the emulator and on hardware! 
       
    40 ECOM_PLUGIN(tsecdlg.dll, 10204789.rsc)
       
    41 
       
    42 // Test plugins
       
    43 ECOM_PLUGIN(101faaa1.dll, 101faaa1.rsc)
       
    44 ECOM_PLUGIN(101faaa3.dll, 101faaa3.rsc)
       
    45 ECOM_PLUGIN(101faaa5.dll, 101faaa5.rsc)
       
    46 
       
    47 //scripts
       
    48 data = ZDRIVE\tkeystore\scripts\tkeystore.txt		tkeystore\scripts\tkeystore.txt
       
    49 data = ZDRIVE\tkeystore\scripts\cancel.txt		tkeystore\scripts\cancel.txt
       
    50 data = ZDRIVE\tkeystore\scripts\oom.txt			tkeystore\scripts\oom.txt
       
    51 data = ZDRIVE\tkeystore\scripts\servoom.txt		tkeystore\scripts\servoom.txt
       
    52 data = ZDRIVE\tkeystore\scripts\exportscript.txt	tkeystore\scripts\exportscript.txt
       
    53 data = ZDRIVE\tkeystore\scripts\authobjects.txt		tkeystore\scripts\authobjects.txt
       
    54 data = ZDRIVE\tkeystore\scripts\reload.txt		tkeystore\scripts\reload.txt
       
    55 
       
    56 //	test data
       
    57 data = ZDRIVE\tkeystore\data\pkcs8dh.001			tkeystore\data\pkcs8dh.001
       
    58 data = ZDRIVE\tkeystore\data\pkcs8rsa.001			tkeystore\data\pkcs8rsa.001
       
    59 data = ZDRIVE\tkeystore\data\pkcs8rsa1.001			tkeystore\data\pkcs8rsa1.001
       
    60 data = ZDRIVE\tkeystore\data\pkcs8rsa2.001			tkeystore\data\pkcs8rsa2.001
       
    61 data = ZDRIVE\tkeystore\data\pkcs8rsa3.001			tkeystore\data\pkcs8rsa3.001
       
    62 data = ZDRIVE\tkeystore\data\pkcs8rsa4.001			tkeystore\data\pkcs8rsa4.001
       
    63 data = ZDRIVE\tkeystore\data\pkcs8invalidrsa.001		tkeystore\data\pkcs8invalidrsa.001
       
    64 
       
    65 data = ZDRIVE\tkeystore\data\pkcs8dsa.001			tkeystore\data\pkcs8dsa.001
       
    66 data = ZDRIVE\tkeystore\data\pkcs8dsa1.001			tkeystore\data\pkcs8dsa1.001
       
    67 data = ZDRIVE\tkeystore\data\pkcs8dsa2.001			tkeystore\data\pkcs8dsa2.001
       
    68 data = ZDRIVE\tkeystore\data\pkcs8dsa3.001			tkeystore\data\pkcs8dsa3.001
       
    69 data = ZDRIVE\tkeystore\data\pkcs8dsa4.001			tkeystore\data\pkcs8dsa4.001
       
    70 data = ZDRIVE\tkeystore\data\pkcs8invaliddsa.001		tkeystore\data\pkcs8invaliddsa.001
       
    71 
       
    72 //	PKCS8 RSA keys for ImportEncryptedKeys test
       
    73 data = ZDRIVE\tkeystore\data\encryptPK8rsaDER.txt		tkeystore\data\encryptPK8rsaDER.txt
       
    74 data = ZDRIVE\tkeystore\data\encryptPK8rsa1DER.txt		tkeystore\data\encryptPK8rsa1DER.txt
       
    75 data = ZDRIVE\tkeystore\data\encryptPK8rsa2DER.txt		tkeystore\data\encryptPK8rsa2DER.txt
       
    76 data = ZDRIVE\tkeystore\data\encryptPK8rsa3DER.txt		tkeystore\data\encryptPK8rsa3DER.txt
       
    77 data = ZDRIVE\tkeystore\data\encryptPK8rsa4DER.txt		tkeystore\data\encryptPK8rsa4DER.txt
       
    78 
       
    79 //	PKCS8 DSA keys for ImportEncryptedKeys test
       
    80 data = ZDRIVE\tkeystore\data\encryptPK8dsaDER.txt		tkeystore\data\encryptPK8dsaDER.txt
       
    81 data = ZDRIVE\tkeystore\data\encryptPK8dsa1DER.txt		tkeystore\data\encryptPK8dsa1DER.txt
       
    82 data = ZDRIVE\tkeystore\data\encryptPK8dsa2DER.txt		tkeystore\data\encryptPK8dsa2DER.txt
       
    83 data = ZDRIVE\tkeystore\data\encryptPK8dsa3DER.txt		tkeystore\data\encryptPK8dsa3DER.txt
       
    84 data = ZDRIVE\tkeystore\data\encryptPK8dsa4DER.txt		tkeystore\data\encryptPK8dsa4DER.txt
       
    85 data = ZDRIVE\tkeystore\data\testvector1.bin			tkeystore\data\testvector1.bin
       
    86 data = ZDRIVE\tkeystore\data\binarygarbage.bin			tkeystore\data\binarygarbage.bin
       
    87 
       
    88 // Strange Pkcs8 Encrypted keys with variou ciphers
       
    89 data = ZDRIVE\tkeystore\data\pkcs8rsa1_3des.der			tkeystore\data\pkcs8rsa1_3des.der
       
    90 data = ZDRIVE\tkeystore\data\pkcs8rsa1_rc2.der			tkeystore\data\pkcs8rsa1_rc2.der
       
    91 data = ZDRIVE\tkeystore\data\pkcs8rsa1_rc4.der			tkeystore\data\pkcs8rsa1_rc4.der
       
    92 data = ZDRIVE\tkeystore\data\pkcs8dsa1_des3_nsdh.der		tkeystore\data\pkcs8dsa1_des3_nsdh.der
       
    93 data = ZDRIVE\tkeystore\data\pkcs8rsa1_des3_nooctet.der		tkeystore\data\pkcs8rsa1_des3_nooctet.der
       
    94 data = ZDRIVE\tkeystore\data\pkcs8dsa1_des3_embed.der		tkeystore\data\pkcs8dsa1_des3_embed.der
       
    95 
       
    96 // PKCS8 keys with optional PKCS8 attributes
       
    97 data = ZDRIVE\tkeystore\data\pkcs8rsa_attr.001			tkeystore\data\pkcs8rsa_attr.001
       
    98 data = ZDRIVE\tkeystore\data\pkcs8dsa_attr.001			tkeystore\data\pkcs8dsa_attr.001
       
    99 
       
   100 //	RSA key pairs from which to build PKCS8 data
       
   101 data = ZDRIVE\tkeystore\data\rsa1certkey.001		tkeystore\data\rsa1certkey.001
       
   102 data = ZDRIVE\tkeystore\data\rsa2certkey.001		tkeystore\data\rsa2certkey.001
       
   103 data = ZDRIVE\tkeystore\data\rsa3certkey.001		tkeystore\data\rsa3certkey.001
       
   104 data = ZDRIVE\tkeystore\data\nrkey.001			tkeystore\data\nrkey.001
       
   105 data = ZDRIVE\tkeystore\data\signkey2.001		tkeystore\data\signkey2.001
       
   106 data = ZDRIVE\tkeystore\data\enciphersignkey2.001	tkeystore\data\enciphersignkey2.001
       
   107 
       
   108 // RSA & DSA public key to test public key export
       
   109 data = ZDRIVE\tkeystore\data\rsapub.txt			tkeystore\data\rsapub.txt
       
   110 data = ZDRIVE\tkeystore\data\rsapub1.txt		tkeystore\data\rsapub1.txt
       
   111 data = ZDRIVE\tkeystore\data\rsapub2.txt		tkeystore\data\rsapub2.txt
       
   112 data = ZDRIVE\tkeystore\data\rsapub3.txt		tkeystore\data\rsapub3.txt
       
   113 data = ZDRIVE\tkeystore\data\rsapub4.txt		tkeystore\data\rsapub4.txt
       
   114 data = ZDRIVE\tkeystore\data\dsapub.txt			tkeystore\data\dsapub.txt
       
   115 data = ZDRIVE\tkeystore\data\dsapub1.txt		tkeystore\data\dsapub1.txt
       
   116 data = ZDRIVE\tkeystore\data\dsapub2.txt		tkeystore\data\dsapub2.txt
       
   117 data = ZDRIVE\tkeystore\data\dsapub3.txt		tkeystore\data\dsapub3.txt
       
   118 data = ZDRIVE\tkeystore\data\dsapub4.txt		tkeystore\data\dsapub4.txt
       
   119 
       
   120 // ttesttools data
       
   121 
       
   122 data = ZDRIVE\ttesttools\data\cert_addapps.txt		ttesttools\data\cert_addapps.txt
       
   123 data = ZDRIVE\ttesttools\data\cert_addappsfail1.txt	ttesttools\data\cert_addappsfail1.txt
       
   124 data = ZDRIVE\ttesttools\data\cert_addappsfail2.txt	ttesttools\data\cert_addappsfail2.txt
       
   125 data = ZDRIVE\ttesttools\data\cert_helpfail1.txt	ttesttools\data\cert_helpfail1.txt
       
   126 data = ZDRIVE\ttesttools\data\cert_helpfail2.txt	ttesttools\data\cert_helpfail2.txt
       
   127 data = ZDRIVE\ttesttools\data\cert_helpls.txt		ttesttools\data\cert_helpls.txt
       
   128 data = ZDRIVE\ttesttools\data\cert_import.txt		ttesttools\data\cert_import.txt
       
   129 data = ZDRIVE\ttesttools\data\cert_import1.txt		ttesttools\data\cert_import1.txt
       
   130 data = ZDRIVE\ttesttools\data\cert_import2.txt		ttesttools\data\cert_import2.txt
       
   131 data = ZDRIVE\ttesttools\data\cert_import3.txt		ttesttools\data\cert_import3.txt
       
   132 data = ZDRIVE\ttesttools\data\cert_import4.txt		ttesttools\data\cert_import4.txt
       
   133 data = ZDRIVE\ttesttools\data\cert_importfail1.txt	ttesttools\data\cert_importfail1.txt
       
   134 data = ZDRIVE\ttesttools\data\cert_importfail2.txt	ttesttools\data\cert_importfail2.txt
       
   135 data = ZDRIVE\ttesttools\data\cert_importfail3.txt	ttesttools\data\cert_importfail3.txt
       
   136 data = ZDRIVE\ttesttools\data\cert_importfail4.txt	ttesttools\data\cert_importfail4.txt
       
   137 data = ZDRIVE\ttesttools\data\cert_importfail5.txt	ttesttools\data\cert_importfail5.txt
       
   138 data = ZDRIVE\ttesttools\data\cert_list1.txt		ttesttools\data\cert_list1.txt
       
   139 data = ZDRIVE\ttesttools\data\cert_list2.txt		ttesttools\data\cert_list2.txt
       
   140 data = ZDRIVE\ttesttools\data\cert_list3.txt		ttesttools\data\cert_list3.txt
       
   141 data = ZDRIVE\ttesttools\data\cert_list4.txt		ttesttools\data\cert_list4.txt
       
   142 data = ZDRIVE\ttesttools\data\cert_listfail1.txt	ttesttools\data\cert_listfail1.txt
       
   143 data = ZDRIVE\ttesttools\data\cert_listfail2.txt	ttesttools\data\cert_listfail2.txt
       
   144 data = ZDRIVE\ttesttools\data\cert_listfail3.txt	ttesttools\data\cert_listfail3.txt
       
   145 data = ZDRIVE\ttesttools\data\cert_ls.txt		ttesttools\data\cert_ls.txt
       
   146 data = ZDRIVE\ttesttools\data\cert_lsfail.txt		ttesttools\data\cert_lsfail.txt
       
   147 data = ZDRIVE\ttesttools\data\cert_remove1.txt		ttesttools\data\cert_remove1.txt
       
   148 data = ZDRIVE\ttesttools\data\cert_remove2.txt		ttesttools\data\cert_remove2.txt
       
   149 data = ZDRIVE\ttesttools\data\cert_remove3.txt		ttesttools\data\cert_remove3.txt
       
   150 data = ZDRIVE\ttesttools\data\cert_removeapps.txt	ttesttools\data\cert_removeapps.txt
       
   151 data = ZDRIVE\ttesttools\data\cert_removeappsfail1.txt	ttesttools\data\cert_removeappsfail1.txt
       
   152 data = ZDRIVE\ttesttools\data\cert_removeappsfail2.txt	ttesttools\data\cert_removeappsfail2.txt
       
   153 data = ZDRIVE\ttesttools\data\cert_removefail.txt	ttesttools\data\cert_removefail.txt
       
   154 data = ZDRIVE\ttesttools\data\cert_setapps.txt		ttesttools\data\cert_setapps.txt
       
   155 data = ZDRIVE\ttesttools\data\cert_setapps1.txt		ttesttools\data\cert_setapps1.txt
       
   156 data = ZDRIVE\ttesttools\data\cert_setappsfail1.txt	ttesttools\data\cert_setappsfail1.txt
       
   157 data = ZDRIVE\ttesttools\data\cert_setappsfail2.txt	ttesttools\data\cert_setappsfail2.txt
       
   158 data = ZDRIVE\ttesttools\data\certfail.txt		ttesttools\data\certfail.txt
       
   159 data = ZDRIVE\ttesttools\data\certhelp.txt		ttesttools\data\certhelp.txt
       
   160 
       
   161 data = ZDRIVE\tkeystore\data\corrupt.001		tkeystore\data\corrupt.001
       
   162 data = ZDRIVE\tkeystore\data\empty.001			tkeystore\data\empty.001
       
   163 data = ZDRIVE\tcertstore\empty.cer			tcertstore\empty.cer
       
   164 data = ZDRIVE\tcertstore\corrupt.cer			tcertstore\corrupt.cer
       
   165 
       
   166 data = ZDRIVE\ttesttools\data\key_helpfail1.txt		ttesttools\data\key_helpfail1.txt
       
   167 data = ZDRIVE\ttesttools\data\key_helpfail2.txt		ttesttools\data\key_helpfail2.txt
       
   168 data = ZDRIVE\ttesttools\data\key_import1.txt		ttesttools\data\key_import1.txt
       
   169 data = ZDRIVE\ttesttools\data\key_import2.txt		ttesttools\data\key_import2.txt
       
   170 data = ZDRIVE\ttesttools\data\key_import3.txt		ttesttools\data\key_import3.txt
       
   171 data = ZDRIVE\ttesttools\data\key_import4.txt		ttesttools\data\key_import4.txt
       
   172 data = ZDRIVE\ttesttools\data\key_importfail1.txt	ttesttools\data\key_importfail1.txt
       
   173 data = ZDRIVE\ttesttools\data\key_importfail2.txt	ttesttools\data\key_importfail2.txt
       
   174 data = ZDRIVE\ttesttools\data\key_importfail3.txt	ttesttools\data\key_importfail3.txt
       
   175 data = ZDRIVE\ttesttools\data\key_importfail4.txt	ttesttools\data\key_importfail4.txt
       
   176 data = ZDRIVE\ttesttools\data\key_importfail5.txt	ttesttools\data\key_importfail5.txt
       
   177 data = ZDRIVE\ttesttools\data\key_list1.txt		ttesttools\data\key_list1.txt
       
   178 data = ZDRIVE\ttesttools\data\key_list2.txt		ttesttools\data\key_list2.txt
       
   179 data = ZDRIVE\ttesttools\data\key_list3.txt		ttesttools\data\key_list3.txt
       
   180 data = ZDRIVE\ttesttools\data\key_listfail1.txt		ttesttools\data\key_listfail1.txt
       
   181 data = ZDRIVE\ttesttools\data\key_listfail2.txt		ttesttools\data\key_listfail2.txt
       
   182 data = ZDRIVE\ttesttools\data\key_ls.txt		ttesttools\data\key_ls.txt
       
   183 data = ZDRIVE\ttesttools\data\key_remove.txt		ttesttools\data\key_remove.txt
       
   184 data = ZDRIVE\ttesttools\data\key_remove1.txt		ttesttools\data\key_remove1.txt
       
   185 data = ZDRIVE\ttesttools\data\key_removefail.txt	ttesttools\data\key_removefail.txt
       
   186 data = ZDRIVE\ttesttools\data\key_removeuser.txt	ttesttools\data\key_removeuser.txt
       
   187 data = ZDRIVE\ttesttools\data\key_removeuserfail1.txt	ttesttools\data\key_removeuserfail1.txt
       
   188 data = ZDRIVE\ttesttools\data\key_removeuserfail2.txt	ttesttools\data\key_removeuserfail2.txt
       
   189 data = ZDRIVE\ttesttools\data\key_setalluser.txt	ttesttools\data\key_setalluser.txt
       
   190 data = ZDRIVE\ttesttools\data\key_setalluserfail1.txt	ttesttools\data\key_setalluserfail1.txt
       
   191 data = ZDRIVE\ttesttools\data\key_setalluserfail2.txt	ttesttools\data\key_setalluserfail2.txt
       
   192 data = ZDRIVE\ttesttools\data\key_setmanager.txt	ttesttools\data\key_setmanager.txt
       
   193 data = ZDRIVE\ttesttools\data\key_setmanagerfail1.txt	ttesttools\data\key_setmanagerfail1.txt
       
   194 data = ZDRIVE\ttesttools\data\key_setmanagerfail2.txt	ttesttools\data\key_setmanagerfail2.txt
       
   195 data = ZDRIVE\ttesttools\data\key_setuser.txt		ttesttools\data\key_setuser.txt
       
   196 data = ZDRIVE\ttesttools\data\key_setuserfail1.txt	ttesttools\data\key_setuserfail1.txt
       
   197 data = ZDRIVE\ttesttools\data\key_setuserfail2.txt	ttesttools\data\key_setuserfail2.txt
       
   198 data = ZDRIVE\ttesttools\data\key_setuserhelp.txt	ttesttools\data\key_setuserhelp.txt
       
   199 data = ZDRIVE\ttesttools\data\keyfail.txt		ttesttools\data\keyfail.txt
       
   200 data = ZDRIVE\ttesttools\data\keyhelp.txt		ttesttools\data\keyhelp.txt
       
   201 data = ZDRIVE\ttesttools\data\certclients.dat		ttesttools\data\certclients.dat
       
   202 
       
   203 data = ZDRIVE\ttesttools\scripts\sec-filetokens-tools.script	ttesttools\scripts\sec-filetokens-tools.script
       
   204 data = ZDRIVE\ttesttools\scripts\sec-filetokens-tools.ini	ttesttools\scripts\sec-filetokens-tools.ini
       
   205 
       
   206 
       
   207 // Test keystore. Contains two keys, a DSA key (label gm0) and a RSA key (label gm1)
       
   208 // The passphrase timeout is set to 30
       
   209 data = ZPRIVATE\101F72A6\keys.dat          	private\101F72A6\keys.dat
       
   210 
       
   211 #endif