<?xml version="1.0" encoding="UTF-8"?>
<test id="wae2/features/control/crypto/cryptorule/1" class="A" scope="wae2" 
	testtype="application" type="manual" source="wae2#7.10.3.2" device="both">
	<assertion>A WAP Proxy agent must be able to compile a script compilation
	unit that refers to the Crypto library.
	</assertion>
	<specnote>Get the user to load a document that contains a WMLScript that
	contains a crypto library function.  Make sure that the document is 
	displayed correctly with no errors.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card newcontext="true" id="main">
				<p>The script referenced by this 
					<a href="[[script1]]#main()">link</a> 
					uses the Crypto.signText function to sign a block of text.
				</p>
				<p>Is the document displayed with no error?
					<br />
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
	<scripts>
		<script id="1">
extern function main() {

	var texttosign = "This is a test";
	var options    = 0;
	var keytypeid  = 0;
	var keyid      = "";
	var text = Crypto.signText (texttosign,
	                            options,
	                            keytypeid,
	                            keyid);
}
		</script>
	</scripts>
</test>
