cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/tkeystore_authentication2.ini
branchRCL_3
changeset 61 641f389e9157
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptoservices/filebasedcertificateandkeystores/test/tkeystore/scripts/tkeystore_authentication2.ini	Tue Aug 31 17:00:08 2010 +0300
@@ -0,0 +1,530 @@
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-002]
+
+<actionbody>
+
+	<mode>manager</mode>
+
+	<CheckKeyStoreLabel>1</CheckKeyStoreLabel>
+
+	<keystoreindex>2</keystoreindex>
+
+	<keystorelabel>Dummy KeyStore Manager1</keystorelabel>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-004]
+
+<actionbody>
+
+	<mode>manager</mode>
+
+	<CheckKeyStoreLabel>1</CheckKeyStoreLabel>
+
+	<keystoreindex>4</keystoreindex>
+
+	<keystorelabel>Dummy KeyStore Manager1</keystorelabel>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-006]
+
+<actionbody>
+
+	<mode>manager</mode>
+
+	<CheckStoreCount>1</CheckStoreCount>
+
+	<KeyStoreCount>4</KeyStoreCount>
+
+	<KeyStoreManagerCount>3</KeyStoreManagerCount>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-007]
+
+<actionbody>
+
+	<mode>manager</mode>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-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_AUTHENTICATION2-0001-009]
+
+<actionbody>
+
+	<authmode>set</authmode>
+
+	<keylabel>cheeku</keylabel>
+
+	<authexpression>strong</authexpression>
+
+	<negativefreshness>1</negativefreshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-010]
+
+<actionbody>
+
+	<keyusage>Derive</keyusage>
+
+	<keysize>512</keysize>
+
+	<keylabel>cheeku</keylabel>
+
+	<keyalgorithm>DH</keyalgorithm>
+
+	<keyaccesstype>Extractable</keyaccesstype>
+
+	<keyaccesstype>Local</keyaccesstype>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-011]
+
+<actionbody>
+
+	<ImportData>pkcs8rsa.001</ImportData>
+
+	<keyusage>allusagesbutNR</keyusage>
+
+	<keylabel>user2Key</keylabel>
+
+	<keyaccesstype>Extractable</keyaccesstype>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-012]
+
+<actionbody>
+
+		<foundkey>cheeku</foundkey>
+
+	<foundkey>user2Key</foundkey>
+
+		<foundkey>cheeku</foundkey>
+
+	<foundkey>user2Key</foundkey>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-013]
+
+<actionbody>
+
+	<ExportFile>export_pkcs8rsa_0.001</ExportFile>
+
+	<keyusage>allusagesbutNR</keyusage>
+
+	<keylabel>gm0</keylabel>
+
+	<keyalgorithm>RSA</keyalgorithm>
+
+	<encrypted>0</encrypted>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-014]
+
+<actionbody>
+
+	<keyalgorithm>RSA</keyalgorithm>
+
+	<deletecount>1</deletecount>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-015]
+
+<actionbody>
+
+	<keylabel>*IMPORTED* encrypted raddicio</keylabel>
+
+	<deletecount>0</deletecount>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-016]
+
+<actionbody>
+
+	<authmode>set</authmode>
+
+	<keylabel>*IMPORTED* encrypted raddicio</keylabel>
+
+	<authexpression>medium</authexpression>
+
+	<freshness>21</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-017]
+
+<actionbody>
+
+	<authmode>get</authmode>
+
+	<keylabel>*IMPORTED* encrypted raddicio</keylabel>
+
+	<expectedexpression>medium</expectedexpression>
+
+	<expectedfreshness>21</expectedfreshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-018]
+
+<actionbody>
+
+	<keyusage>Derive</keyusage>
+
+	<keysize>512</keysize>
+
+	<keylabel>negativefreshness</keylabel>
+
+	<keyalgorithm>DH</keyalgorithm>
+
+	<keyaccesstype>Extractable</keyaccesstype>
+
+	<keystore>0</keystore>
+
+	<authexpression>strong</authexpression>
+
+	<negativefreshness>1</negativefreshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-019]
+
+<actionbody>
+
+	<keyusage>Derive</keyusage>
+
+	<keysize>512</keysize>
+
+	<keylabel>negativefreshness</keylabel>
+
+	<keyalgorithm>DH</keyalgorithm>
+
+	<keyaccesstype>Extractable</keyaccesstype>
+
+	<keystore>0</keystore>
+
+	<authexpression>strong</authexpression>
+
+	<freshness>2147483648</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-020]
+
+<actionbody>
+
+	<keyusage>Derive</keyusage>
+
+	<keysize>512</keysize>
+
+	<keylabel>invalidaliasvalue</keylabel>
+
+	<keyalgorithm>DH</keyalgorithm>
+
+	<keyaccesstype>Extractable</keyaccesstype>
+
+	<keystore>0</keystore>
+
+	<authexpression>invalid</authexpression>
+
+	<freshness>10</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-021]
+
+<actionbody>
+
+	<keyusage>Derive</keyusage>
+
+	<keysize>512</keysize>
+
+	<keylabel>verybigexpression</keylabel>
+
+	<keyalgorithm>DH</keyalgorithm>
+
+	<keyaccesstype>Extractable</keyaccesstype>
+
+	<keystore>0</keystore>
+
+	<authexpression>
+
+To be, or not to be: that is the question:
+
+Whether 'tis nobler in the mind to suffer
+
+The slings and arrows of outrageous fortune,
+
+Or to take arms against a sea of troubles,
+
+And by opposing end them? To die: to sleep;
+
+No more; and by a sleep to say we end
+
+The heart-ache and the thousand natural shocks
+
+That flesh is heir to, 'tis a consummation
+
+Devoutly to be wish'd. To die, to sleep;
+
+To sleep: perchance to dream: ay, there's the rub;
+
+For in that sleep of death what dreams may come
+
+When we have shuffled off this mortal coil,
+
+Must give us pause: there's the respect
+
+That makes calamity of so long life;
+
+For who would bear the whips and scorns of time,
+
+The oppressor's wrong, the proud man's contumely,
+
+The pangs of despised love, the law's delay,
+
+The insolence of office and the spurns
+
+That patient merit of the unworthy takes,
+
+When he himself might his quietus make
+
+With a bare bodkin? Who would fardels bear,
+
+To grunt and sweat under a weary life,
+
+But that the dread of something after death,
+
+The undiscover'd country from whose bourn
+
+No traveller returns, puzzles the will
+
+And makes us rather bear those ills we have
+
+Than fly to others that we know not of?
+
+Thus conscience does make cowards of us all;
+
+And thus the native hue of resolution
+
+Is sicklied o'er with the pale cast of thought,
+
+And enterprises of great pith and moment
+
+With this regard their currents turn awry,
+
+And lose the name of action.--Soft you now!
+
+The fair Ophelia! Nymph, in thy orisons
+
+Be all my sins remember'd. 
+
+	</authexpression>
+
+	<freshness>10</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-022]
+
+<actionbody>
+
+	<ImportData>pkcs8rsa.001</ImportData>
+
+	<keyusage>allusagesbutNR</keyusage>
+
+	<keylabel>gm0</keylabel>
+
+	<keyaccesstype>Extractable</keyaccesstype>
+
+	<authexpression>strong</authexpression>
+
+	<negativefreshness>1</negativefreshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-023]
+
+<actionbody>
+
+	<ImportData>pkcs8rsa.001</ImportData>
+
+	<keyusage>allusagesbutNR</keyusage>
+
+	<keylabel>gm0</keylabel>
+
+	<keyaccesstype>Extractable</keyaccesstype>
+
+	<authexpression>strong</authexpression>
+
+	<freshness>2147483648</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-024]
+
+<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>
+
+	<disabledialogcheck>1</disabledialogcheck>	
+
+	<authexpression>strong</authexpression>
+
+	<negativefreshness>1</negativefreshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-025]
+
+<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>
+
+	<disabledialogcheck>1</disabledialogcheck>
+
+	<authexpression>strong</authexpression>
+
+	<freshness>2147483648</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-026]
+
+<actionbody>
+
+	<authmode>set</authmode>
+
+	<keylabel>cheeku</keylabel>
+
+	<authexpression>strong</authexpression>
+
+	<negativefreshness>1</negativefreshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-027]
+
+<actionbody>
+
+	<authmode>set</authmode>
+
+	<keylabel>cheeku</keylabel>
+
+	<authexpression>strong</authexpression>
+
+	<freshness>2147483648</freshness>
+
+</actionbody>
+
+
+
+[SEC-TKEYSTORE_AUTHENTICATION2-0001-030]
+
+<actionbody>
+
+	<seconds>5</seconds>
+
+</actionbody>
+
+
+