<?xml version="1.0" encoding="UTF-8"?>
<test id="crypto/signtext/3" class="A" scope="crypto" testtype="application" type="manual" source="cyrp#5.1.2" device="both">
  <assertion>When the Operator is presented with the text to sign after a call to the WML Script Library function Crypto.signText, the Operator may choose to approve the signing operation and the call to the function proceedes.
</assertion>
  <specnote>New for June 2000.</specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<p>
The script referenced by this &nbsp; <a href="<script1>#main()">link</a> &nbsp; uses the Crypto.signText function to sign a block of text.
</p>
<p mode="wrap">Did the script ask for approval for the signing operation?
<br />
<yesno>
</p>
</card>]]>
  </method>
  <scripts>
    <script id="1">
      <![CDATA[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>

