cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/tkeystore_authentication1.ini
--- a/cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/tkeystore_authentication1.ini Fri Oct 02 13:15:59 2009 +0300
+++ b/cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/tkeystore_authentication1.ini Mon Oct 12 10:17:04 2009 +0300
@@ -1,155 +1,306 @@
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-002]
-<actionbody>
- <mode>manager</mode>
- <CheckKeyStoreLabel>1</CheckKeyStoreLabel>
- <keystoreindex>2</keystoreindex>
- <keystorelabel>Dummy KeyStore Manager1</keystorelabel>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-004]
-<actionbody>
- <mode>manager</mode>
- <CheckKeyStoreLabel>1</CheckKeyStoreLabel>
- <keystoreindex>4</keystoreindex>
- <keystorelabel>Dummy KeyStore Manager1</keystorelabel>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-006]
-<actionbody>
- <mode>manager</mode>
- <CheckStoreCount>1</CheckStoreCount>
- <KeyStoreCount>4</KeyStoreCount>
- <KeyStoreManagerCount>3</KeyStoreManagerCount>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-007]
-<actionbody>
- <mode>manager</mode>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-008]
-<actionbody>
- <keyusage>Derive</keyusage>
- <keysize>512</keysize>
- <keylabel>cheeku</keylabel>
- <keyalgorithm>DH</keyalgorithm>
- <keyaccesstype>Extractable</keyaccesstype>
- <keystore>1</keystore>
- <authexpression>strong</authexpression>
- <freshness>0</freshness>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-009]
-<actionbody>
- <keyusage>Derive</keyusage>
- <keysize>512</keysize>
- <keylabel>cheeku</keylabel>
- <keyalgorithm>DH</keyalgorithm>
- <keyaccesstype>Extractable</keyaccesstype>
- <keyaccesstype>Local</keyaccesstype>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-010]
-<actionbody>
- <authmode>set</authmode>
- <keylabel>cheeku</keylabel>
- <authexpression>medium</authexpression>
- <freshness>21</freshness>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-011]
-<actionbody>
- <authmode>get</authmode>
- <keylabel>cheeku</keylabel>
- <expectedexpression>medium</expectedexpression>
- <expectedfreshness>21</expectedfreshness>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-012]
-<actionbody>
- <keyusage>Derive</keyusage>
- <keysize>512</keysize>
- <keylabel>cheeku</keylabel>
- <keyalgorithm>DH</keyalgorithm>
- <keyaccesstype>Extractable</keyaccesstype>
- <keyaccesstype>Local</keyaccesstype>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-013]
-<actionbody>
- <listcount>2</listcount>
- <foundkey>cheeku</foundkey>
- <foundkey>cheeku</foundkey>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-014]
-<actionbody>
- <ExportFile>export_DHkey.001</ExportFile>
- <keyusage>Derive</keyusage>
- <keylabel>cheeku</keylabel>
- <keyalgorithm>DH</keyalgorithm>
- <encrypted>0</encrypted>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-015]
-<actionbody>
- <ImportData>pkcs8rsa.001</ImportData>
- <keyusage>allusagesbutNR</keyusage>
- <keylabel>gm0</keylabel>
- <keyaccesstype>Extractable</keyaccesstype>
- <authexpression>strong</authexpression>
- <freshness>25</freshness>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-016]
-<actionbody>
- <ExportFile>export_pkcs8rsa_0.001</ExportFile>
- <keyusage>allusagesbutNR</keyusage>
- <keylabel>gm0</keylabel>
- <keyalgorithm>RSA</keyalgorithm>
- <encrypted>0</encrypted>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-017]
-<actionbody>
- <authmode>set</authmode>
- <keylabel>gm0</keylabel>
- <authexpression>medium</authexpression>
- <freshness>0</freshness>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-018]
-<actionbody>
- <ExportFile>export_pkcs8rsa_0.001</ExportFile>
- <keyusage>allusagesbutNR</keyusage>
- <keylabel>gm0</keylabel>
- <keyalgorithm>RSA</keyalgorithm>
- <encrypted>0</encrypted>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-019]
-<actionbody>
- <ImportData>export_pkcs8rsa_0_3DES_CBC.001</ImportData>
- <keyusage>allusagesbutNR</keyusage>
- <keylabel>gm_export_pkcs8rsa_0_3DES_CBC.001</keylabel>
- <keyalgorithm>RSA</keyalgorithm>
- <keyaccesstype>Extractable</keyaccesstype>
- <encrypted>1</encrypted>
- <passphrase>import clanger</passphrase>
- <authexpression>strong</authexpression>
- <freshness>50</freshness>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-020]
-<actionbody>
- <keyalgorithm>RSA</keyalgorithm>
- <listcount>2</listcount>
- <foundkey>gm0</foundkey>
- <foundkey>gm_export_pkcs8rsa_0_3DES_CBC.001</foundkey>
-</actionbody>
-
-[SEC-TKEYSTORE_AUTHENTICATION1-0001-023]
-<actionbody>
- <seconds>5</seconds>
-</actionbody>
-
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-002]
+
+<actionbody>
+
+ <mode>manager</mode>
+
+ <CheckKeyStoreLabel>1</CheckKeyStoreLabel>
+
+ <keystoreindex>2</keystoreindex>
+
+ <keystorelabel>Dummy KeyStore Manager1</keystorelabel>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-004]
+
+<actionbody>
+
+ <mode>manager</mode>
+
+ <CheckKeyStoreLabel>1</CheckKeyStoreLabel>
+
+ <keystoreindex>4</keystoreindex>
+
+ <keystorelabel>Dummy KeyStore Manager1</keystorelabel>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-006]
+
+<actionbody>
+
+ <mode>manager</mode>
+
+ <CheckStoreCount>1</CheckStoreCount>
+
+ <KeyStoreCount>4</KeyStoreCount>
+
+ <KeyStoreManagerCount>3</KeyStoreManagerCount>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-007]
+
+<actionbody>
+
+ <mode>manager</mode>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-008]
+
+<actionbody>
+
+ <keyusage>Derive</keyusage>
+
+ <keysize>512</keysize>
+
+ <keylabel>cheeku</keylabel>
+
+ <keyalgorithm>DH</keyalgorithm>
+
+ <keyaccesstype>Extractable</keyaccesstype>
+
+ <keystore>0</keystore>
+
+ <authexpression>strong</authexpression>
+
+ <freshness>0</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-009]
+
+<actionbody>
+
+ <keyusage>Derive</keyusage>
+
+ <keysize>512</keysize>
+
+ <keylabel>cheeku</keylabel>
+
+ <keyalgorithm>DH</keyalgorithm>
+
+ <keyaccesstype>Extractable</keyaccesstype>
+
+ <keyaccesstype>Local</keyaccesstype>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-010]
+
+<actionbody>
+
+ <authmode>set</authmode>
+
+ <keylabel>cheeku</keylabel>
+
+ <authexpression>medium</authexpression>
+
+ <freshness>21</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-011]
+
+<actionbody>
+
+ <authmode>get</authmode>
+
+ <keylabel>cheeku</keylabel>
+
+ <expectedexpression>medium</expectedexpression>
+
+ <expectedfreshness>21</expectedfreshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-012]
+
+<actionbody>
+
+ <keyusage>Derive</keyusage>
+
+ <keysize>512</keysize>
+
+ <keylabel>cheeku</keylabel>
+
+ <keyalgorithm>DH</keyalgorithm>
+
+ <keyaccesstype>Extractable</keyaccesstype>
+
+ <keyaccesstype>Local</keyaccesstype>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-013]
+
+<actionbody>
+
+ <foundkey>cheeku</foundkey>
+
+ <foundkey>cheeku</foundkey>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-014]
+
+<actionbody>
+
+ <ExportFile>export_DHkey.001</ExportFile>
+
+ <keyusage>Derive</keyusage>
+
+ <keylabel>cheeku</keylabel>
+
+ <keyalgorithm>DH</keyalgorithm>
+
+ <encrypted>0</encrypted>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-015]
+
+<actionbody>
+
+ <ImportData>pkcs8rsa.001</ImportData>
+
+ <keyusage>allusagesbutNR</keyusage>
+
+ <keylabel>gm0</keylabel>
+
+ <keyaccesstype>Extractable</keyaccesstype>
+
+ <authexpression>strong</authexpression>
+
+ <freshness>25</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-016]
+
+<actionbody>
+
+ <ExportFile>export_pkcs8rsa_0.001</ExportFile>
+
+ <keyusage>allusagesbutNR</keyusage>
+
+ <keylabel>gm0</keylabel>
+
+ <keyalgorithm>RSA</keyalgorithm>
+
+ <encrypted>0</encrypted>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-017]
+
+<actionbody>
+
+ <authmode>set</authmode>
+
+ <keylabel>gm0</keylabel>
+
+ <authexpression>medium</authexpression>
+
+ <freshness>0</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-018]
+
+<actionbody>
+
+ <ExportFile>export_pkcs8rsa_0.001</ExportFile>
+
+ <keyusage>allusagesbutNR</keyusage>
+
+ <keylabel>gm0</keylabel>
+
+ <keyalgorithm>RSA</keyalgorithm>
+
+ <encrypted>0</encrypted>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-019]
+
+<actionbody>
+
+ <ImportData>export_pkcs8rsa_0_3DES_CBC.001</ImportData>
+
+ <keyusage>allusagesbutNR</keyusage>
+
+ <keylabel>gm_export_pkcs8rsa_0_3DES_CBC.001</keylabel>
+
+ <keyalgorithm>RSA</keyalgorithm>
+
+ <keyaccesstype>Extractable</keyaccesstype>
+
+ <encrypted>1</encrypted>
+
+ <passphrase>import clanger</passphrase>
+
+ <authexpression>strong</authexpression>
+
+ <freshness>50</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-020]
+
+<actionbody>
+
+ <keyalgorithm>RSA</keyalgorithm>
+
+ <foundkey>gm0</foundkey>
+
+ <foundkey>gm_export_pkcs8rsa_0_3DES_CBC.001</foundkey>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION1-0001-023]
+
+<actionbody>
+
+ <seconds>5</seconds>
+
+</actionbody>
+
+
+